make an optional bool param for ustring's other constructors
authorDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 05:21:39 +0000 (05:21 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 05:21:39 +0000 (05:21 +0000)
otk/ustring.cc
otk/ustring.hh

index b6432d4..7ac89bf 100644 (file)
@@ -132,13 +132,13 @@ ustring& ustring::operator=(const ustring& other)
   return *this;
 }
 
-ustring::ustring(const std::string& src)
-  : _string(src), _utf8(true)
+ustring::ustring(const std::string& src, bool utf8)
+  : _string(src), _utf8(utf8)
 {
 }
 
-ustring::ustring(const char* src)
-  : _string(src), _utf8(true)
+ustring::ustring(const char* src, bool utf8)
+  : _string(src), _utf8(utf8)
 {
 }
 
index be2a59c..8ee066d 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