summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-16 05:20:33 +0000
committerDana Jansens <danakj@orodu.net>2003-01-16 05:20:33 +0000
commit0f7e3be6b60888912dc9c7089e23074ef64373e0 (patch)
tree406adb3e4986b0f65c70abcbb8582e7dc2956d09
parenta8e98570cc32fc4b9015927acef4a24c015f799e (diff)
make an optional bool param for ustring's default constructor
-rw-r--r--otk/ustring.cc3
-rw-r--r--otk/ustring.hh2
2 files changed, 3 insertions, 2 deletions
diff --git a/otk/ustring.cc b/otk/ustring.cc
index 8c48cb4d..b6432d44 100644
--- a/otk/ustring.cc
+++ b/otk/ustring.cc
@@ -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)
{
}
diff --git a/otk/ustring.hh b/otk/ustring.hh
index bc00a31a..be2a59c8 100644
--- a/otk/ustring.hh
+++ b/otk/ustring.hh
@@ -117,7 +117,7 @@ public:
static const size_type npos = std::string::npos;
- ustring();
+ ustring(bool utf8 = true);
~ustring();
// make new strings