string_compare.h 753 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_I18N_STRING_COMPARE_H_
  5. #define BASE_I18N_STRING_COMPARE_H_
  6. #include "base/i18n/base_i18n_export.h"
  7. #include "base/strings/string_piece.h"
  8. #include "third_party/icu/source/i18n/unicode/coll.h"
  9. namespace base {
  10. namespace i18n {
  11. // Compares the two strings using the specified collator.
  12. BASE_I18N_EXPORT UCollationResult
  13. CompareString16WithCollator(const icu::Collator& collator,
  14. const StringPiece16 lhs,
  15. const StringPiece16 rhs);
  16. } // namespace i18n
  17. } // namespace base
  18. #endif // BASE_I18N_STRING_COMPARE_H_