Package com.inductiveautomation.rm.text
Class RMTextUtils
java.lang.Object
com.inductiveautomation.rm.text.RMTextUtils
Some utility methods for text processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intindexAfterNewline(CharSequence aSequence, int aStart) Returns the index just beyond next newline (or carriage-return/newline) in given char sequence starting at given char index.static intindexOfNewline(CharSequence aSequence, int aStart) Returns the index of the next newline (or carriage-return/newline) in given char sequence starting at given char index.static booleanisAfterLineEnd(CharSequence aSequence, int anIndex) Returns whether the index in the given char sequence is at just after a line end.static booleanisLineEnd(CharSequence aSequence, int anIndex) Returns whether the index in the given char sequence is at a line end.static booleanisNewlineChar(CharSequence aSequence, int anIndex) Returns whether a char is a newline char.static intlastIndexAfterNewline(CharSequence aSequence, int aStart) Returns the index just beyond previous newline (or carriage-return/newline) in given char sequence starting at given char index.static intlastIndexOfNewline(CharSequence aSequence, int aStart) Returns the index of the previous newline (or carriage-return/newline) in given char sequence starting at given char index.
-
Constructor Details
-
RMTextUtils
public RMTextUtils()
-
-
Method Details
-
indexOfNewline
Returns the index of the next newline (or carriage-return/newline) in given char sequence starting at given char index. -
indexAfterNewline
Returns the index just beyond next newline (or carriage-return/newline) in given char sequence starting at given char index. -
lastIndexOfNewline
Returns the index of the previous newline (or carriage-return/newline) in given char sequence starting at given char index. -
lastIndexAfterNewline
Returns the index just beyond previous newline (or carriage-return/newline) in given char sequence starting at given char index. -
isLineEnd
Returns whether the index in the given char sequence is at a line end. -
isAfterLineEnd
Returns whether the index in the given char sequence is at just after a line end. -
isNewlineChar
Returns whether a char is a newline char.
-