]> Dogcows Code - chaz/openbox/blobdiff - otk/ustring.hh
provide functions for grabbing and ungrabbing the keyboard and pointer
[chaz/openbox] / otk / ustring.hh
index be2a59c8a790b7c2bdc3e61e5e4a13f2a0004d36..0031e1c5b888db645c7ee397038f3f62d8ade854 100644 (file)
@@ -124,8 +124,8 @@ public:
   
   ustring(const ustring& other);
   ustring& operator=(const ustring& other);
-  ustring(const std::string& src);
-  ustring(const char* src);
+  ustring(const std::string& src, bool utf8 = true);
+  ustring(const char* src, bool utf8 = true);
 
   // append to the string
 
@@ -155,6 +155,12 @@ public:
   // No reference return; use replace() to write characters.
   value_type operator[](size_type i) const;
 
+  // compare strings
+
+  bool operator==(const ustring &other) const;
+  bool operator==(const std::string &other) const;
+  bool operator==(const char *other) const;
+
   // internal data
 
   const char* data()  const;
This page took 0.02319 seconds and 4 git commands to generate.