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

index 8c48cb4..b6432d4 100644 (file)
@@ -111,7 +111,8 @@ ustring::size_type utf8_byte_offset(const char* str, ustring::size_type offset,
 
 // ustring methods
 
-ustring::ustring()
+ustring::ustring(bool utf8)
+  : _utf8(utf8)
 {
 }
 
index bc00a31..be2a59c 100644 (file)
@@ -117,7 +117,7 @@ public:
 
   static const size_type npos = std::string::npos;
 
-  ustring();
+  ustring(bool utf8 = true);
   ~ustring();
 
   // make new strings