X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fustring.hh;h=0031e1c5b888db645c7ee397038f3f62d8ade854;hb=0ebf6a17547f75c1fa961acbf3fdd59c0e494d22;hp=bc00a31a810816d6dae17a3067199e44d638e90a;hpb=3d012bcb47eda9210fa49df28efa8b59c2949c05;p=chaz%2Fopenbox diff --git a/otk/ustring.hh b/otk/ustring.hh index bc00a31a..0031e1c5 100644 --- a/otk/ustring.hh +++ b/otk/ustring.hh @@ -117,15 +117,15 @@ public: static const size_type npos = std::string::npos; - ustring(); + ustring(bool utf8 = true); ~ustring(); // make new strings 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;