diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc')
-rw-r--r-- | contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc index 45e3ea43c3..959d6c27ff 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ascii.cc @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "y_absl/strings/ascii.h" +#include "y_absl/strings/ascii.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace ascii_internal { @@ -155,19 +155,19 @@ ABSL_DLL const char kToUpper[256] = { } // namespace ascii_internal -void AsciiStrToLower(TString* s) { +void AsciiStrToLower(TString* s) { for (auto& ch : *s) { - ch = y_absl::ascii_tolower(ch); + ch = y_absl::ascii_tolower(ch); } } -void AsciiStrToUpper(TString* s) { +void AsciiStrToUpper(TString* s) { for (auto& ch : *s) { - ch = y_absl::ascii_toupper(ch); + ch = y_absl::ascii_toupper(ch); } } -void RemoveExtraAsciiWhitespace(TString* str) { +void RemoveExtraAsciiWhitespace(TString* str) { auto stripped = StripAsciiWhitespace(*str); if (stripped.empty()) { @@ -183,10 +183,10 @@ void RemoveExtraAsciiWhitespace(TString* str) { for (; input_it < input_end; ++input_it) { if (is_ws) { // Consecutive whitespace? Keep only the last. - is_ws = y_absl::ascii_isspace(*input_it); + is_ws = y_absl::ascii_isspace(*input_it); if (is_ws) --output_it; } else { - is_ws = y_absl::ascii_isspace(*input_it); + is_ws = y_absl::ascii_isspace(*input_it); } *output_it = *input_it; @@ -197,4 +197,4 @@ void RemoveExtraAsciiWhitespace(TString* str) { } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl |