summaryrefslogtreecommitdiffstats
path: root/base/word_iterator.h
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 13:32:54 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 13:32:54 +0000
commit44756393341958f38360f7f35c4cda537d275344 (patch)
tree3b4c43e0bc6a9b6e90275068a07c598a14bc10a5 /base/word_iterator.h
parentc52e233831bbbf7c9a162f8ced0269ee7ed0c87d (diff)
downloadchromium_src-44756393341958f38360f7f35c4cda537d275344.zip
chromium_src-44756393341958f38360f7f35c4cda537d275344.tar.gz
chromium_src-44756393341958f38360f7f35c4cda537d275344.tar.bz2
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
Diffstat (limited to 'base/word_iterator.h')
-rw-r--r--base/word_iterator.h6
1 files changed, 6 insertions, 0 deletions
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<UChar> chars_;
+#endif
// The string we're iterating over.
const std::wstring& string_;