diff options
author | John Wiegley <johnw@newartisans.com> | 2011-02-10 23:00:36 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-02-10 23:00:36 -0500 |
commit | 20f4ccde96de05cdbd330e6bbb94af363bef486a (patch) | |
tree | 72b3492edc8d5c5ad52a6d36e02e5edf9bc08c68 /src/unistring.h | |
parent | 21a123e525927b1785078f6630e2a52d410f11c8 (diff) | |
download | fork-ledger-20f4ccde96de05cdbd330e6bbb94af363bef486a.tar.gz fork-ledger-20f4ccde96de05cdbd330e6bbb94af363bef486a.tar.bz2 fork-ledger-20f4ccde96de05cdbd330e6bbb94af363bef486a.zip |
Added some debug code
Diffstat (limited to 'src/unistring.h')
-rw-r--r-- | src/unistring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistring.h b/src/unistring.h index 979ce08b..577e0da4 100644 --- a/src/unistring.h +++ b/src/unistring.h @@ -69,6 +69,7 @@ public: const char * p = input.c_str(); std::size_t len = input.length(); + assert(len < 1024); VERIFY(utf8::is_valid(p, p + len)); utf8::unchecked::utf8to32(p, p + len, std::back_inserter(utf32chars)); } |