directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1051147 - /directory/shared/branches/alex_refactoring/ldap/src/main/antlr/distinguishedName.g
Date Mon, 20 Dec 2010 15:35:58 GMT
Author: akarasulu
Date: Mon Dec 20 15:35:58 2010
New Revision: 1051147

URL: http://svn.apache.org/viewvc?rev=1051147&view=rev
Log:
correcting some problems with antlr grammar when refactoring

Modified:
    directory/shared/branches/alex_refactoring/ldap/src/main/antlr/distinguishedName.g

Modified: directory/shared/branches/alex_refactoring/ldap/src/main/antlr/distinguishedName.g
URL: http://svn.apache.org/viewvc/directory/shared/branches/alex_refactoring/ldap/src/main/antlr/distinguishedName.g?rev=1051147&r1=1051146&r2=1051147&view=diff
==============================================================================
--- directory/shared/branches/alex_refactoring/ldap/src/main/antlr/distinguishedName.g (original)
+++ directory/shared/branches/alex_refactoring/ldap/src/main/antlr/distinguishedName.g Mon
Dec 20 15:35:58 2010
@@ -32,6 +32,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.entry.BinaryValue;
 import org.apache.directory.shared.ldap.schema.parsers.ParserMonitor;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.apache.directory.shared.util.Strings;
 
 }
 
@@ -444,7 +445,7 @@ quotestring [UpAndNormValue value] 
                 s:~(DQUOTE|ESC|ESCESC|ESCSHARP|HEXPAIR) 
                 {
                     value.rawValue += s.getText();
-                    bb.append( StringTools.getBytesUtf8( s.getText() ) ); 
+                    bb.append( Strings.getBytesUtf8( s.getText() ) ); 
                 }
             )
             |
@@ -453,7 +454,7 @@ quotestring [UpAndNormValue value] 
         dq2:DQUOTE { value.rawValue += dq2.getText(); }
     )
     {
-        String string = StringTools.utf8ToString( bb.copyOfUsedBytes() );
+        String string = Strings.utf8ToString( bb.copyOfUsedBytes() );
         value.value = string;
     }
     ;
@@ -506,13 +507,13 @@ string [UpAndNormValue value]
             tmp = lutf1 
             { 
                 value.rawValue += tmp;
-                bb.append( StringTools.getBytesUtf8( tmp ) ); 
+                bb.append( Strings.getBytesUtf8( tmp ) ); 
             }
             |
             tmp = utfmb 
             {
                 value.rawValue += tmp;
-                bb.append( StringTools.getBytesUtf8( tmp ) );
+                bb.append( Strings.getBytesUtf8( tmp ) );
             }
             |
             bytes = pair [value] { bb.append( bytes ); }
@@ -521,20 +522,20 @@ string [UpAndNormValue value]
             tmp = sutf1
             {
                 value.rawValue += tmp;
-                bb.append( StringTools.getBytesUtf8( tmp ) ); 
+                bb.append( Strings.getBytesUtf8( tmp ) ); 
             }
             |
             tmp = utfmb 
             {
                 value.rawValue += tmp;
-                bb.append( StringTools.getBytesUtf8( tmp ) ); 
+                bb.append( Strings.getBytesUtf8( tmp ) ); 
             }
             |
             bytes = pair [value] { bb.append( bytes ); }
         )*
     )
     {
-        String string = StringTools.utf8ToString( bb.copyOfUsedBytes() );
+        String string = Strings.utf8ToString( bb.copyOfUsedBytes() );
         
         // trim trailing space characters manually
         // don't know how to tell antlr that the last char mustn't be a space.
@@ -662,7 +663,7 @@ pair [UpAndNormValue value] returns [byt
         ESCESC 
         { 
             value.rawValue += "\\\\";
-            pair = StringTools.getBytesUtf8( "\\" );
+            pair = Strings.getBytesUtf8( "\\" );
         } 
     )
     |
@@ -670,7 +671,7 @@ pair [UpAndNormValue value] returns [byt
         ESCSHARP 
         { 
             value.rawValue += "\\#";
-            pair = StringTools.getBytesUtf8( "#" );
+            pair = Strings.getBytesUtf8( "#" );
         } 
     )
     |
@@ -679,7 +680,7 @@ pair [UpAndNormValue value] returns [byt
         tmp = special 
         { 
             value.rawValue += "\\" + tmp;
-            pair = StringTools.getBytesUtf8( tmp ); 
+            pair = Strings.getBytesUtf8( tmp ); 
         }
     )
     |



Mime
View raw message