projects
/
dana
/
openbox-history.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e9857
)
make an optional bool param for ustring's default constructor
author
Dana Jansens
<danakj@orodu.net>
Thu, 16 Jan 2003 05:20:33 +0000
(
05:20
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 16 Jan 2003 05:20:33 +0000
(
05:20
+0000)
otk/ustring.cc
patch
|
blob
|
history
otk/ustring.hh
patch
|
blob
|
history
diff --git
a/otk/ustring.cc
b/otk/ustring.cc
index 8c48cb4d6e64e0fd7eca8dfe315d93fda51273d4..b6432d4440df46df21136d3826755f5b6b53dd24 100644
(file)
--- 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 bc00a31a810816d6dae17a3067199e44d638e90a..be2a59c8a790b7c2bdc3e61e5e4a13f2a0004d36 100644
(file)
--- 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