| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "cpp/src/util/canonicalize_string.h" | 5 #include "third_party/libaddressinput/src/cpp/src/util/canonicalize_string.h" | 
| 6 | 6 | 
| 7 #include "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "cpp/include/libaddressinput/util/scoped_ptr.h" |  | 
| 9 #include "third_party/icu/source/common/unicode/errorcode.h" | 8 #include "third_party/icu/source/common/unicode/errorcode.h" | 
| 10 #include "third_party/icu/source/common/unicode/locid.h" | 9 #include "third_party/icu/source/common/unicode/locid.h" | 
| 11 #include "third_party/icu/source/common/unicode/unistr.h" | 10 #include "third_party/icu/source/common/unicode/unistr.h" | 
| 12 #include "third_party/icu/source/common/unicode/utypes.h" | 11 #include "third_party/icu/source/common/unicode/utypes.h" | 
| 13 #include "third_party/icu/source/i18n/unicode/coll.h" | 12 #include "third_party/icu/source/i18n/unicode/coll.h" | 
|  | 13 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/util/scope
    d_ptr.h" | 
| 14 | 14 | 
| 15 namespace i18n { | 15 namespace i18n { | 
| 16 namespace addressinput { | 16 namespace addressinput { | 
| 17 | 17 | 
| 18 namespace { | 18 namespace { | 
| 19 | 19 | 
| 20 class ChromeStringCanonicalizer : public StringCanonicalizer { | 20 class ChromeStringCanonicalizer : public StringCanonicalizer { | 
| 21  public: | 21  public: | 
| 22   ChromeStringCanonicalizer() | 22   ChromeStringCanonicalizer() | 
| 23       : error_code_(U_ZERO_ERROR), | 23       : error_code_(U_ZERO_ERROR), | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 60 | 60 | 
| 61 }  // namespace | 61 }  // namespace | 
| 62 | 62 | 
| 63 // static | 63 // static | 
| 64 scoped_ptr<StringCanonicalizer> StringCanonicalizer::Build() { | 64 scoped_ptr<StringCanonicalizer> StringCanonicalizer::Build() { | 
| 65   return scoped_ptr<StringCanonicalizer>(new ChromeStringCanonicalizer); | 65   return scoped_ptr<StringCanonicalizer>(new ChromeStringCanonicalizer); | 
| 66 } | 66 } | 
| 67 | 67 | 
| 68 }  // namespace addressinput | 68 }  // namespace addressinput | 
| 69 }  // namespace i18n | 69 }  // namespace i18n | 
| OLD | NEW | 
|---|