diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 22:50:07 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 22:50:07 +0000 |
commit | 12469f90e2decfa5bdd9e43a812a01ded039f296 (patch) | |
tree | b4aad9431ea0023b818c30cab01f9e31fe21cce0 /chrome/renderer/spellchecker/spellcheck_worditerator.h | |
parent | c0d50816026776361ba9d69542b880fef4df0ccf (diff) | |
download | chromium_src-12469f90e2decfa5bdd9e43a812a01ded039f296.zip chromium_src-12469f90e2decfa5bdd9e43a812a01ded039f296.tar.gz chromium_src-12469f90e2decfa5bdd9e43a812a01ded039f296.tar.bz2 |
Use base namespace for string16 in chrome/renderer.
TBR=sky
Review URL: https://codereview.chromium.org/105493002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238804 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/spellchecker/spellcheck_worditerator.h')
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck_worditerator.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/renderer/spellchecker/spellcheck_worditerator.h b/chrome/renderer/spellchecker/spellcheck_worditerator.h index 210c6bb..50a0ef6 100644 --- a/chrome/renderer/spellchecker/spellcheck_worditerator.h +++ b/chrome/renderer/spellchecker/spellcheck_worditerator.h @@ -37,11 +37,11 @@ class SpellcheckCharAttribute { // can split a concaticated word (e.g. "seven-year-old") into words (e.g. // "seven", "year", and "old") and check their spellings. The result stirng is // encoded in UTF-16 since ICU needs UTF-16 strings. - string16 GetRuleSet(bool allow_contraction) const; + base::string16 GetRuleSet(bool allow_contraction) const; // Outputs a character only if it is a word character. (Please read the // comments in CreateRuleSets() why we need this function.) - bool OutputChar(UChar c, string16* output) const; + bool OutputChar(UChar c, base::string16* output) const; private: // Creates the rule-sets that return words possibly used by the given @@ -53,16 +53,16 @@ class SpellcheckCharAttribute { // Outputs a character only if it is one used by the given language. These // functions are called from OutputChar(). - bool OutputArabic(UChar c, string16* output) const; - bool OutputHangul(UChar c, string16* output) const; - bool OutputHebrew(UChar c, string16* output) const; - bool OutputDefault(UChar c, string16* output) const; + bool OutputArabic(UChar c, base::string16* output) const; + bool OutputHangul(UChar c, base::string16* output) const; + bool OutputHebrew(UChar c, base::string16* output) const; + bool OutputDefault(UChar c, base::string16* output) const; // The custom rule-set strings used by ICU break iterator. Since it is not so // easy to create custom rule-sets from an ISO language code, this class // saves these rule-set strings created when we set the language. - string16 ruleset_allow_contraction_; - string16 ruleset_disallow_contraction_; + base::string16 ruleset_allow_contraction_; + base::string16 ruleset_disallow_contraction_; // The script code used by this language. UScriptCode script_code_; @@ -93,11 +93,11 @@ class SpellcheckCharAttribute { // // Set up a SpellcheckWordIterator object which extracts English words, // // and retrieve them. // SpellcheckWordIterator iterator; -// string16 text(UTF8ToUTF16("this is a test.")); +// base::string16 text(UTF8ToUTF16("this is a test.")); // iterator.Initialize(&attribute, true); // iterator.SetText(text.c_str(), text_.length()); // -// string16 word; +// base::string16 word; // int offset; // int length; // while (iterator.GetNextWord(&word, &offset, &length)) { @@ -134,7 +134,7 @@ class SpellcheckWordIterator { // while(iterator.GetNextWord(&word, &offset, &length)) // text.replace(offset, length, word); // - bool GetNextWord(string16* word_string, + bool GetNextWord(base::string16* word_string, int* word_start, int* word_length); @@ -151,7 +151,7 @@ class SpellcheckWordIterator { // characters. bool Normalize(int input_start, int input_length, - string16* output_string) const; + base::string16* output_string) const; // The pointer to the input string from which we are extracting words. const char16* text_; |