blob: 907bd9e45fbc949ac6b7f910a0c380d9b5ff1fb9 [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_I18N_STRING_COMPARE_H_
#define BASE_I18N_STRING_COMPARE_H_
#include "base/i18n/base_i18n_export.h"
#include "base/strings/string_piece.h"
#include "third_party/icu/source/i18n/unicode/coll.h"
namespace base {
namespace i18n {
#if !defined(UCONFIG_NO_COLLATION)
// Compares the two strings using the specified collator.
BASE_I18N_EXPORT UCollationResult
CompareString16WithCollator(const icu::Collator& collator,
const StringPiece16 lhs,
const StringPiece16 rhs);
#endif
} // namespace i18n
} // namespace base
#endif // BASE_I18N_STRING_COMPARE_H_