[PATCH] Add mask values for the default rune table.

Dan Albert danalbert at google.com
Fri Mar 6 14:38:48 PST 2015


Hi mclow.lists, jroelofs, EricWF,

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8129

Files:
  include/__locale

Index: include/__locale
===================================================================
--- include/__locale
+++ include/__locale
@@ -329,7 +329,21 @@
 class _LIBCPP_TYPE_VIS ctype_base
 {
 public:
-#ifdef __GLIBC__
+#ifdef _LIBCPP_PROVDES_DEFAULT_RUNE_TABLE
+    typedef unsigned short mask;
+    static const mask space = 1 << 0;
+    static const mask print = 1 << 1;
+    static const mask cntrl = 1 << 2;
+    static const mask upper = 1 << 3;
+    static const mask lower = 1 << 4;
+    static const mask alpha = 1 << 5;
+    static const mask digit = 1 << 6;
+    static const mask punct = 1 << 7;
+    static const mask xdigit = 1 << 8;
+    static const mask blank = 1 << 9;
+    static const mask alnum = alpha | digit;
+    static const mask graph = alnum | punct;
+#elif defined(__GLIBC__)
     typedef unsigned short mask;
     static const mask space  = _ISspace;
     static const mask print  = _ISprint;

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8129.21402.patch
Type: text/x-patch
Size: 924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150306/57b42ed5/attachment.bin>


More information about the cfe-commits mailing list