jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1434106 - in /jena/trunk/jena-arq/src/main/java/org/apache/jena: atlas/lib/Chars.java riot/tokens/TokenizerText.java
Date Wed, 16 Jan 2013 18:51:17 GMT
Author: andy
Date: Wed Jan 16 18:51:16 2013
New Revision: 1434106

URL: http://svn.apache.org/viewvc?rev=1434106&view=rev
Log:
Cope with backspace escape \b

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/Chars.java
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/Chars.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/Chars.java?rev=1434106&r1=1434105&r2=1434106&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/Chars.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/atlas/lib/Chars.java Wed Jan 16 18:51:16
2013
@@ -183,6 +183,7 @@ public class Chars
     public static final int  UNSET           =  -2 ;
     public static final char NL              = '\n' ;
     public static final char CR              = '\r' ;
+    public static final char BSPACE          = '\b' ;
     
     public static final char CH_ZERO         =  (char)0 ;
 

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java?rev=1434106&r1=1434105&r2=1434106&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java Wed Jan
16 18:51:16 2013
@@ -539,11 +539,7 @@ public final class TokenizerText impleme
     PERCENT  ::=  '%' HEX HEX
     HEX  ::=  [0-9] | [A-F] | [a-f]
     PN_LOCAL_ESC  ::=  '\' ( '_' | '~' | '.' | '-' | '!' | '$' | '&' | "'" | '(' | ')'
| '*' | '+' | ',' | ';' | '=' | '/' | '?' | '#' | '@' | '%' )
-    
     */
-        
-    
-    
     
     private String readPrefixPart()
     { return readSegment(false) ; }
@@ -1195,6 +1191,7 @@ public final class TokenizerText impleme
             case 'r':   return CR ;
             case 't':   return '\t' ;
             case 'f':   return '\f' ;
+            case 'b':   return BSPACE ;
             case '"':   return '"' ;
             case '\'':  return '\'' ;
             case '\\':  return '\\' ;



Mime
View raw message