Package games.stendhal.common.parser
Class PunctuationParser
java.lang.Object
games.stendhal.common.parser.PunctuationParser
PunctuationParser is used to trim preceding and trailing punctuation
characters from a string.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn preceding punctuation characters.getText()
Return remaining text.Return trailing punctuation characters.
-
Constructor Details
-
PunctuationParser
-
-
Method Details
-
getPrecedingPunctuation
Return preceding punctuation characters.- Returns:
- a new string containing preceding punctuation
-
getTrailingPunctuation
Return trailing punctuation characters.- Returns:
- a new String containing trailing punctuation
-
getText
Return remaining text.- Returns:
- a new string containg the stripped and trimmed text
-