From 733739cfc110262dd4bdce95d5a6ef0423397c6e Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Fri, 22 Mar 2013 07:25:50 +0000 Subject: [PATCH] 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 --- .../org/apache/commons/lang3/StringUtils.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index e4b36256f..de519064a 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -137,6 +137,24 @@ public class StringUtils { */ public static final String EMPTY = ""; + /** + * A String for linefeed LF ("\n"). + * + * @see JLF: Escape Sequences + * for Character and String Literals + * @since 3.2 + */ + public static final String LF = "\n"; + + /** + * A String for carriage return CR ("\r"). + * + * @see JLF: Escape Sequences + * for Character and String Literals + * @since 3.2 + */ + public static final String CR = "\r"; + /** * Represents a failed index search. * @since 2.1