summaryrefslogtreecommitdiff
path: root/src/unistring.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-07 08:32:44 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-07 08:34:13 -0500
commitc8641a6de65670b8833992c94c51a586a6434a74 (patch)
treeeb59642cd3296a98ec4c7a73ca319b1c57c2f7ad /src/unistring.h
parent95a068f5e4b0e5c06fd9824f7f999248e28fee7b (diff)
downloadfork-ledger-c8641a6de65670b8833992c94c51a586a6434a74.tar.gz
fork-ledger-c8641a6de65670b8833992c94c51a586a6434a74.tar.bz2
fork-ledger-c8641a6de65670b8833992c94c51a586a6434a74.zip
Added support for Boost.Regex w/ ICU
This allows for correct searching of UTF-8 encoded strings, such as lower-case versions of Russian words to find mixed-case words.
Diffstat (limited to 'src/unistring.h')
-rw-r--r--src/unistring.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/unistring.h b/src/unistring.h
index 268f60e3..bc55b016 100644
--- a/src/unistring.h
+++ b/src/unistring.h
@@ -59,12 +59,15 @@ namespace ledger {
*/
class unistring
{
+public:
std::vector<boost::uint32_t> utf32chars;
-public:
+ unistring() {
+ TRACE_CTOR(unistring, "");
+ }
unistring(const std::string& input)
{
- TRACE_CTOR(unistring, "");
+ TRACE_CTOR(unistring, "std::string");
const char * p = input.c_str();
std::size_t len = input.length();