TakeSkipStringExtension extension
- on
Methods
-
skip(
int count) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string suffix without the firstcount
characters. Ifcount
is larger than length return the empty string. -
skipLast(
int count) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string prefix without the lastcount
characters. Ifcount
is larger than length return the empty string. -
skipLastTo(
Pattern pattern) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string prefix before the last occurrence ofpattern
. If the pattern is not found return the empty string. -
skipTo(
Pattern pattern) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string suffix after the first occurrence ofpattern
. If the pattern is not found return the empty string. -
take(
int count) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string prefix withcount
characters. Ifcount
is larger than length return the whole string. -
takeLast(
int count) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string suffix withcount
characters. Ifcount
is larger than length return the whole string. -
takeLastTo(
Pattern pattern) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string suffix after the last occurrence ofpattern
. If the pattern is not found return the whole string. -
takeTo(
Pattern pattern) → String -
Available on String, provided by the TakeSkipStringExtension extension
Returns the string prefix up to the first occurrence ofpattern
. If the pattern is not found return the whole string.