Fixed unit test for TokenizeIterator::GetUniString()

This commit is contained in:
Alex Zolotarev 2011-05-25 23:23:01 +02:00 committed by Alex Zolotarev
parent eb8b032aa9
commit 59fcb54926
2 changed files with 5 additions and 1 deletions

View file

@ -124,7 +124,8 @@ UNIT_TEST(LastUniChar)
UNIT_TEST(GetUniString)
{
strings::SimpleTokenizer iter("Hello, \xD0\x9C\xD0\xB8\xD0\xBD\xD1\x81\xD0\xBA!", ", !");
string const s = "Hello, \xD0\x9C\xD0\xB8\xD0\xBD\xD1\x81\xD0\xBA!";
strings::SimpleTokenizer iter(s, ", !");
{
strings::UniChar const s[] = { 'H', 'e', 'l', 'l', 'o' };
strings::UniString us(&s[0], &s[0] + ARRAY_SIZE(s));

View file

@ -22,6 +22,9 @@ class TokenizeIterator
Utf8IterT m_beg, m_end, m_finish;
DelimFuncT m_delimFunc;
/// Explicitly disabled, because we're storing iterators for string
TokenizeIterator(char const *, DelimFuncT);
void move()
{
m_beg = m_end;