java.lang.Object
io.cucumber.gherkin.StringUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleancontainsWhitespace(String input, int fromIndex, int toIndex) private static booleanisCharacterTypeSpace(char c) private static booleanisDirectionalitySpace(char c) (package private) static booleanisWhitespace(char c) An extended definition of Whitespace.(package private) static booleanisWhitespaceExcludingNewLine(char c) An extended definition of Whitespace minus new lines.(package private) static booleanisWhiteSpaceSlow(char c) (package private) static StringsubstringAndLeftTrim(String input, int beginIndex, int endIndex) (package private) static StringUtils.IndentedTexttrimAndIndent(String input) (package private) static StringUtils.IndentedText
-
Field Details
-
NO_INDENT_ENTRY
-
-
Constructor Details
-
StringUtils
private StringUtils()
-
-
Method Details
-
isWhitespaceExcludingNewLine
static boolean isWhitespaceExcludingNewLine(char c) An extended definition of Whitespace minus new lines.- Parameters:
c- character to test- Returns:
- true iff the
cis whitespace and not new line. - See Also:
-
isWhitespace
static boolean isWhitespace(char c) An extended definition of Whitespace.Characters in Unicode general category
Zsand directionality categoriesWS,B, andSare considered whitespace for this definition.- Parameters:
c- character to test- Returns:
- true iff the
cis whitespace.
-
isWhiteSpaceSlow
static boolean isWhiteSpaceSlow(char c) -
isCharacterTypeSpace
private static boolean isCharacterTypeSpace(char c) -
isDirectionalitySpace
private static boolean isDirectionalitySpace(char c) -
trimAndIndentKeepNewLines
-
trimAndIndent
-
containsWhitespace
-
substringAndLeftTrim
-