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