]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/util/regex.jam
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / src / util / regex.jam
index be8b3cfd12e1105b2c3dfba31c988cde1f1199c8..ef5f632ace453aaad9de30b2110929ac8ba1f55d 100644 (file)
@@ -98,7 +98,7 @@ rule escape ( string : symbols : escape-symbol )
     local m = 1 ;
     while $(m)
     {
-        m = [ MATCH ^([^$(symbols)]*)([$(symbols)])(.*) : $(string) ] ;
+        m = [ MATCH "^([^$(symbols)]*)([$(symbols)])(.*)" : $(string) ] ;
         if $(m)
         {
             m += "" ;  # Supposedly a bug fix; borrowed from regex.split
@@ -180,13 +180,13 @@ rule __test__ ( )
         : match (.)(.)(.)(.) : abcd ;
 
     assert.result ababab cddc
-        : match ((ab)*)([cd]+) : abababcddc : 1 3 ;
+        : match "((ab)*)([cd]+)" : abababcddc : 1 3 ;
 
     assert.result a.h c.h
         : transform <a.h> \"b.h\" <c.h> : <(.*)> ;
 
     assert.result a.h b.h c.h
-        : transform <a.h> \"b.h\" <c.h> : <([^>]*)>|\"([^\"]*)\" : 1 2 ;
+        : transform <a.h> \"b.h\" <c.h> : "<([^>]*)>|\"([^\"]*)\"" : 1 2 ;
 
     assert.result "^<?xml version=\"1.0\"^>"
         : escape "<?xml version=\"1.0\">" : "&|()<>^" : "^" ;