TakeSkipStringExtension extension
Methods
-
skip(int count)
→ String
-
Returns the string suffix without the first
count
characters. If count
is larger than length return the empty string.
-
skipLast(int count)
→ String
-
Returns the string prefix without the last
count
characters. If count
is larger than length return the empty string.
-
skipLastTo(Pattern pattern)
→ String
-
Returns the string prefix before the last occurrence of
pattern
. If the
pattern is not found return the empty string.
-
skipTo(Pattern pattern)
→ String
-
Returns the string suffix after the first occurrence of
pattern
. If the
pattern is not found return the empty string.
-
take(int count)
→ String
-
Returns the string prefix with
count
characters. If count
is larger
than length return the whole string.
-
takeLast(int count)
→ String
-
Returns the string suffix with
count
characters. If count
is larger
than length return the whole string.
-
takeLastTo(Pattern pattern)
→ String
-
Returns the string suffix after the last occurrence of
pattern
. If the
pattern is not found return the whole string.
-
takeTo(Pattern pattern)
→ String
-
Returns the string prefix up to the first occurrence of
pattern
. If the
pattern is not found return the whole string.