StringLowerExtensions extension
Lower priority string: truncate with ellipsis, pad, repeat, isWhitespaceOnly. Roadmap #231-234, 391-395.
- on
Properties
- isWhitespaceOnly → bool
-
Available on String, provided by the StringLowerExtensions extension
True if this string is non-empty and contains only whitespace.no setter
Methods
-
ensurePrefix(
String prefix) → String -
Available on String, provided by the StringLowerExtensions extension
Returns this string withprefixprepended if not already present. -
ensureSuffix(
String suffix) → String -
Available on String, provided by the StringLowerExtensions extension
Returns this string withsuffixappended if not already present. -
padLeftTo(
int length, [String pad = ' ']) → String -
Available on String, provided by the StringLowerExtensions extension
Pads this string on the left tolengthwithpad. -
padRightTo(
int length, [String pad = ' ']) → String -
Available on String, provided by the StringLowerExtensions extension
Pads this string on the right tolengthwithpad. -
removePrefix(
String prefix) → String -
Available on String, provided by the StringLowerExtensions extension
Removesprefixfrom the start if present; otherwise returns this. -
removeSuffix(
String suffix) → String -
Available on String, provided by the StringLowerExtensions extension
Removessuffixfrom the end if present; otherwise returns this. -
repeatTimes(
int n) → String -
Available on String, provided by the StringLowerExtensions extension
Returns this string repeatedntimes, or empty if n <= 0.