]> Dogcows Code - chaz/openbox/blobdiff - otk/ustring.hh
make an optional bool param for ustring's default constructor
[chaz/openbox] / otk / ustring.hh
index d156528cd9d507dd4be9e637f6ee526125a76e44..be2a59c8a790b7c2bdc3e61e5e4a13f2a0004d36 100644 (file)
@@ -32,18 +32,6 @@ typedef u_int32_t unichar;
 
 #ifndef DOXYGEN_IGNORE
 
-//! The number of bytes to skip to find the next character in the string
-const char utf8_skip[256] = {
-  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
-  2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
-  3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,1,1
-};
-
 unichar utf8_get_char(const char *p);
 
 #endif // DOXYGEN_IGNORE
@@ -129,7 +117,7 @@ public:
 
   static const size_type npos = std::string::npos;
 
-  ustring();
+  ustring(bool utf8 = true);
   ~ustring();
 
   // make new strings
This page took 0.024393 seconds and 4 git commands to generate.