]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/x3/char/char_class.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / x3 / char / char_class.hpp
index 0af6f01d9f8df6c49bde508eaf2a2b6dfb65a433..b2e9afa649790b619ad6f6cdf5a7ab43ac2cb30b 100644 (file)
@@ -22,7 +22,7 @@ namespace boost { namespace spirit { namespace x3
     {
         typedef typename Encoding::char_type char_type;
 
-#define BOOST_SPIRIT_X3_CLASSIFY(name)                                             \
+#define BOOST_SPIRIT_X3_CLASSIFY(name)                                          \
         template <typename Char>                                                \
         static bool                                                             \
         is(name##_tag, Char ch)                                                 \
@@ -63,20 +63,20 @@ namespace boost { namespace spirit { namespace x3
         template <typename Char, typename Context>
         bool test(Char ch, Context const& context) const
         {
-            return ((sizeof(Char) <= sizeof(char_type)) || encoding::ischar(ch))
+            return encoding::ischar(ch)
                 && char_class_base<Encoding>::is(
                     get_case_compare<Encoding>(context).get_char_class_tag(tag()), ch);
         }
     };
 
 #define BOOST_SPIRIT_X3_CHAR_CLASS(encoding, name)                                 \
-    typedef char_class<char_encoding::encoding, name##_tag> name##_type;        \
-    name##_type const name = name##_type();                                     \
+    typedef char_class<char_encoding::encoding, name##_tag> name##_type;           \
+    name##_type const name = name##_type();                                        \
     /***/
 
 #define BOOST_SPIRIT_X3_CHAR_CLASSES(encoding)                                     \
-    namespace encoding                                                          \
-    {                                                                           \
+    namespace encoding                                                             \
+    {                                                                              \
         BOOST_SPIRIT_X3_CHAR_CLASS(encoding, alnum)                                \
         BOOST_SPIRIT_X3_CHAR_CLASS(encoding, alpha)                                \
         BOOST_SPIRIT_X3_CHAR_CLASS(encoding, digit)                                \
@@ -89,7 +89,7 @@ namespace boost { namespace spirit { namespace x3
         BOOST_SPIRIT_X3_CHAR_CLASS(encoding, space)                                \
         BOOST_SPIRIT_X3_CHAR_CLASS(encoding, blank)                                \
         BOOST_SPIRIT_X3_CHAR_CLASS(encoding, upper)                                \
-    }                                                                           \
+    }                                                                              \
     /***/
 
     BOOST_SPIRIT_X3_CHAR_CLASSES(standard)