|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.isi.powerloom.gui.common.StringUtils
Utility class for doing String manipulation. This class provides utilities for finding matching parens, compacting whitespace, etc.
Constructor Summary | |
StringUtils()
|
Method Summary | |
static java.lang.String |
compactWhitespace(java.lang.String inString)
Strip out all redundant whitespace, and convert newlines to spaces. |
static int |
findChildLeftParen(java.lang.String text,
int currentPos)
Find the position of the left paren of the first set of enclosed parenthesis. |
static int |
findMatchingLeftParen(java.lang.String text,
int rightParenPos)
|
static int |
findMatchingRightParen(java.lang.String text,
int leftParenPos)
|
static int |
findParentLeftParen(java.lang.String text,
int currentPos)
Find the position of the left paren of the enclosing set of parenthesis. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtils()
Method Detail |
public static java.lang.String compactWhitespace(java.lang.String inString)
public static int findParentLeftParen(java.lang.String text, int currentPos)
public static int findChildLeftParen(java.lang.String text, int currentPos)
public static int findMatchingLeftParen(java.lang.String text, int rightParenPos)
public static int findMatchingRightParen(java.lang.String text, int leftParenPos)
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |