forked from organicmaps/organicmaps
Fixed unit test for TokenizeIterator::GetUniString()
This commit is contained in:
parent
eb8b032aa9
commit
59fcb54926
2 changed files with 5 additions and 1 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue