make an optional bool param for ustring's other constructors
Dana Jansens danakj@orodu.net
2 files changed,
6 insertions(+),
6 deletions(-)
M
otk/ustring.cc
→
otk/ustring.cc
@@ -132,13 +132,13 @@ _utf8 = other._utf8;
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) { }
M
otk/ustring.hh
→
otk/ustring.hh
@@ -124,8 +124,8 @@ // 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