org.sonar.sslr.internal.matchers
Class TextUtils

java.lang.Object
  extended by org.sonar.sslr.internal.matchers.TextUtils

public final class TextUtils
extends Object


Field Summary
static char CR
           
static char LF
           
 
Method Summary
static String escape(char ch)
          Replaces carriage returns, line feeds, form feeds, tabs and double quotes with their respective escape sequences.
static String trimTrailingLineSeparatorFrom(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CR

public static final char CR
See Also:
Constant Field Values

LF

public static final char LF
See Also:
Constant Field Values
Method Detail

escape

public static String escape(char ch)
Replaces carriage returns, line feeds, form feeds, tabs and double quotes with their respective escape sequences.


trimTrailingLineSeparatorFrom

public static String trimTrailingLineSeparatorFrom(String string)


Copyright © 2009-2014 SonarSource. All Rights Reserved.