class TermBreakIterator {
public:
// Note that |word| must out live this iterator.
- explicit TermBreakIterator(const string16& word);
+ explicit TermBreakIterator(const base::string16& word);
~TermBreakIterator();
// Advance to the next term. Returns false if at the end of the word.
// Returns the current term, which is the substr of |word_| in range
// [prev_, pos_).
- const string16 GetCurrentTerm() const;
+ const base::string16 GetCurrentTerm() const;
size_t prev() const { return prev_; }
size_t pos() const { return pos_; }
- static const size_t npos = -1;
+ static const size_t npos = static_cast<size_t>(-1);
private:
enum State {
};
// Returns new state for given |ch|.
- State GetNewState(char16 ch);
+ State GetNewState(base::char16 ch);
- const string16& word_;
+ const base::string16& word_;
size_t prev_;
size_t pos_;