aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc
diff options
context:
space:
mode:
authorheretic <heretic@yandex-team.ru>2022-02-10 16:45:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:43 +0300
commit397cbe258b9e064f49c4ca575279f02f39fef76e (patch)
treea0b0eb3cca6a14e4e8ea715393637672fa651284 /contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc
parent43f5a35593ebc9f6bcea619bb170394ea7ae468e (diff)
downloadydb-397cbe258b9e064f49c4ca575279f02f39fef76e.tar.gz
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc')
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc
index 3197bdf432..d60b195954 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/strings/match.cc
@@ -19,22 +19,22 @@
namespace y_absl {
ABSL_NAMESPACE_BEGIN
-bool EqualsIgnoreCase(y_absl::string_view piece1,
- y_absl::string_view piece2) noexcept {
+bool EqualsIgnoreCase(y_absl::string_view piece1,
+ y_absl::string_view piece2) noexcept {
return (piece1.size() == piece2.size() &&
0 == y_absl::strings_internal::memcasecmp(piece1.data(), piece2.data(),
piece1.size()));
// memcasecmp uses y_absl::ascii_tolower().
}
-bool StartsWithIgnoreCase(y_absl::string_view text,
- y_absl::string_view prefix) noexcept {
+bool StartsWithIgnoreCase(y_absl::string_view text,
+ y_absl::string_view prefix) noexcept {
return (text.size() >= prefix.size()) &&
EqualsIgnoreCase(text.substr(0, prefix.size()), prefix);
}
-bool EndsWithIgnoreCase(y_absl::string_view text,
- y_absl::string_view suffix) noexcept {
+bool EndsWithIgnoreCase(y_absl::string_view text,
+ y_absl::string_view suffix) noexcept {
return (text.size() >= suffix.size()) &&
EqualsIgnoreCase(text.substr(text.size() - suffix.size()), suffix);
}