Class PunctuationParser

java.lang.Object
games.stendhal.common.parser.PunctuationParser

public final class PunctuationParser extends Object
PunctuationParser is used to trim preceding and trailing punctuation characters from a string.
  • Constructor Details

    • PunctuationParser

      public PunctuationParser(String s)
  • Method Details

    • getPrecedingPunctuation

      public String getPrecedingPunctuation()
      Return preceding punctuation characters.
      Returns:
      a new string containing preceding punctuation
    • getTrailingPunctuation

      public String getTrailingPunctuation()
      Return trailing punctuation characters.
      Returns:
      a new String containing trailing punctuation
    • getText

      public String getText()
      Return remaining text.
      Returns:
      a new string containg the stripped and trimmed text