all repos — openbox @ a7207b7d8367af47ddb7e2733cb963148fd0379f

openbox fork - make it a bit more like ryudo

make an optional bool param for ustring's other constructors
Dana Jansens danakj@orodu.net
commit

a7207b7d8367af47ddb7e2733cb963148fd0379f

parent

0f7e3be6b60888912dc9c7089e23074ef64373e0

2 files changed, 6 insertions(+), 6 deletions(-)

jump to
M otk/ustring.ccotk/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.hhotk/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