jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1465394 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/StrUtils.java
Date Sun, 07 Apr 2013 13:25:18 GMT
Author: andy
Date: Sun Apr  7 13:25:18 2013
New Revision: 1465394

URL: http://svn.apache.org/r1465394
Log:
Push all escape/unescape code through one place.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/StrUtils.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/StrUtils.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/StrUtils.java?rev=1465394&r1=1465393&r2=1465394&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/StrUtils.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/StrUtils.java Sun Apr  7 13:25:18
2013
@@ -23,11 +23,9 @@ import java.util.ArrayList ;
 import java.util.List ;
 import java.util.Map ;
 
+import org.apache.jena.riot.out.EscapeStr ;
 import org.apache.jena.riot.system.RiotChars ;
 
-import com.hp.hpl.jena.n3.turtle.ParserBase ;
-import com.hp.hpl.jena.sparql.util.FmtUtils ;
-
 
 public class StrUtils //extends StringUtils
 {
@@ -286,12 +284,12 @@ public class StrUtils //extends StringUt
 
     public static String escapeString(String x)
     {
-        return FmtUtils.stringEsc(x) ;
+        return EscapeStr.stringEsc(x) ;
     }
     
     public static String unescapeString(String x)
     {
-        return ParserBase.unescapeStr(x) ;
+        return EscapeStr.unescapeStr(x) ;
     }
 
 }



Mime
View raw message