public class TextUtilities extends Object
| Constructor and Description | 
|---|
| TextUtilities() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | findMatchingBracket(Document doc,
                   int offset)Returns the offset of the bracket matching the one at the specified offset
 of the document, or -1 if the bracket is unmatched (or if the character is
 not a bracket). | 
| static int | findWordEnd(String line,
           int pos,
           String noWordSep)Locates the end of the word at the specified position. | 
| static int | findWordStart(String line,
             int pos,
             String noWordSep)Locates the start of the word at the specified position. | 
public static int findMatchingBracket(Document doc, int offset) throws BadLocationException
doc - The documentoffset - The offsetBadLocationException - If an out-of-bounds access was attempted on the document
                              textpublic static int findWordStart(String line, int pos, String noWordSep)
line - The textpos - The positionCopyright © 2019. All Rights Reserved.