string_compare.h 811 B

12345678910111213141516171819202122232425262728
  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 <algorithm>
  7. #include <string>
  8. #include <vector>
  9. #include "base/i18n/base_i18n_export.h"
  10. #include "base/strings/string_piece.h"
  11. #include "third_party/icu/source/i18n/unicode/coll.h"
  12. namespace base {
  13. namespace i18n {
  14. // Compares the two strings using the specified collator.
  15. BASE_I18N_EXPORT UCollationResult
  16. CompareString16WithCollator(const icu::Collator& collator,
  17. const StringPiece16 lhs,
  18. const StringPiece16 rhs);
  19. } // namespace i18n
  20. } // namespace base
  21. #endif // BASE_I18N_STRING_COMPARE_H_