From 44756393341958f38360f7f35c4cda537d275344 Mon Sep 17 00:00:00 2001 From: "avi@google.com" Date: Tue, 5 Aug 2008 13:32:54 +0000 Subject: UTF16 vs 32 issues. Review URL: http://chrome-reviews.prom.corp.google.com/1091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@373 0039d316-1c4b-4281-b951-d872f2087c98 --- base/word_iterator.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base/word_iterator.h') diff --git a/base/word_iterator.h b/base/word_iterator.h index fe86411..53369ff 100644 --- a/base/word_iterator.h +++ b/base/word_iterator.h @@ -31,6 +31,9 @@ #define BASE_WORD_ITERATOR_H__ #include "base/basictypes.h" +#ifndef U_WCHAR_IS_UTF16 +#include "unicode/ustring.h" +#endif // The WordIterator class iterates through the words and word breaks // in a string. (In the string " foo bar! ", the word breaks are at the @@ -94,6 +97,9 @@ class WordIterator { private: // ICU iterator. void* iter_; +#ifndef U_WCHAR_IS_UTF16 + std::vector chars_; +#endif // The string we're iterating over. const std::wstring& string_; -- cgit v1.1