make an optional bool param for ustring's other constructors
This commit is contained in:
parent
0f7e3be6b6
commit
a7207b7d83
2 changed files with 6 additions and 6 deletions
|
@ -132,13 +132,13 @@ ustring& ustring::operator=(const ustring& other)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
ustring::ustring(const std::string& src)
|
ustring::ustring(const std::string& src, bool utf8)
|
||||||
: _string(src), _utf8(true)
|
: _string(src), _utf8(utf8)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
ustring::ustring(const char* src)
|
ustring::ustring(const char* src, bool utf8)
|
||||||
: _string(src), _utf8(true)
|
: _string(src), _utf8(utf8)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,8 +124,8 @@ public:
|
||||||
|
|
||||||
ustring(const ustring& other);
|
ustring(const ustring& other);
|
||||||
ustring& operator=(const ustring& other);
|
ustring& operator=(const ustring& other);
|
||||||
ustring(const std::string& src);
|
ustring(const std::string& src, bool utf8 = true);
|
||||||
ustring(const char* src);
|
ustring(const char* src, bool utf8 = true);
|
||||||
|
|
||||||
// append to the string
|
// append to the string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue