summaryrefslogtreecommitdiffstats
path: root/base/i18n/char_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/i18n/char_iterator.h')
-rw-r--r--base/i18n/char_iterator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/i18n/char_iterator.h b/base/i18n/char_iterator.h
index 784c6e5d..835ac06 100644
--- a/base/i18n/char_iterator.h
+++ b/base/i18n/char_iterator.h
@@ -76,6 +76,7 @@ class UTF16CharIterator {
public:
// Requires |str| to live as long as the UTF16CharIterator does.
UTF16CharIterator(const string16* str);
+ UTF16CharIterator(const char16* str, size_t str_len);
~UTF16CharIterator() {}
// Return the starting array index of the current character within the
@@ -97,6 +98,10 @@ class UTF16CharIterator {
bool Advance();
private:
+ // Fills in the current character we found and advances to the next
+ // character, updating all flags as necessary.
+ void ReadChar();
+
// The string we're iterating over.
const char16* str_;