Adding CR and LF to StringUtils. LANG-870

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1459651 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2013-03-22 07:25:50 +00:00
parent 7e03508fa6
commit 733739cfc1
1 changed files with 18 additions and 0 deletions

View File

@ -137,6 +137,24 @@ public class StringUtils {
*/ */
public static final String EMPTY = ""; public static final String EMPTY = "";
/**
* A String for linefeed LF ("\n").
*
* @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#101089">JLF: Escape Sequences
* for Character and String Literals</a>
* @since 3.2
*/
public static final String LF = "\n";
/**
* A String for carriage return CR ("\r").
*
* @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#101089">JLF: Escape Sequences
* for Character and String Literals</a>
* @since 3.2
*/
public static final String CR = "\r";
/** /**
* Represents a failed index search. * Represents a failed index search.
* @since 2.1 * @since 2.1