Package com.inductiveautomation.rm.text
Class RMTextUtils
- java.lang.Object
- 
- com.inductiveautomation.rm.text.RMTextUtils
 
- 
 public class RMTextUtils extends java.lang.ObjectSome utility methods for text processing.
- 
- 
Constructor SummaryConstructors Constructor Description RMTextUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intindexAfterNewline(java.lang.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(java.lang.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(java.lang.CharSequence aSequence, int anIndex)Returns whether the index in the given char sequence is at just after a line end.static booleanisLineEnd(java.lang.CharSequence aSequence, int anIndex)Returns whether the index in the given char sequence is at a line end.static booleanisNewlineChar(java.lang.CharSequence aSequence, int anIndex)Returns whether a char is a newline char.static intlastIndexAfterNewline(java.lang.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(java.lang.CharSequence aSequence, int aStart)Returns the index of the previous newline (or carriage-return/newline) in given char sequence starting at given char index.
 
- 
- 
- 
Method Detail- 
indexOfNewlinepublic static int indexOfNewline(java.lang.CharSequence aSequence, int aStart)Returns the index of the next newline (or carriage-return/newline) in given char sequence starting at given char index.
 - 
indexAfterNewlinepublic static int indexAfterNewline(java.lang.CharSequence aSequence, int aStart)Returns the index just beyond next newline (or carriage-return/newline) in given char sequence starting at given char index.
 - 
lastIndexOfNewlinepublic static int lastIndexOfNewline(java.lang.CharSequence aSequence, int aStart)Returns the index of the previous newline (or carriage-return/newline) in given char sequence starting at given char index.
 - 
lastIndexAfterNewlinepublic static int lastIndexAfterNewline(java.lang.CharSequence aSequence, int aStart)Returns the index just beyond previous newline (or carriage-return/newline) in given char sequence starting at given char index.
 - 
isLineEndpublic static boolean isLineEnd(java.lang.CharSequence aSequence, int anIndex)Returns whether the index in the given char sequence is at a line end.
 - 
isAfterLineEndpublic static boolean isAfterLineEnd(java.lang.CharSequence aSequence, int anIndex)Returns whether the index in the given char sequence is at just after a line end.
 - 
isNewlineCharpublic static boolean isNewlineChar(java.lang.CharSequence aSequence, int anIndex)Returns whether a char is a newline char.
 
- 
 
-