diff options
author | romankoshelev <romankoshelev@yandex-team.com> | 2023-08-14 19:51:50 +0300 |
---|---|---|
committer | romankoshelev <romankoshelev@yandex-team.com> | 2023-08-15 01:24:11 +0300 |
commit | cfcd865e05c0d0525ea27d1e153a043b32a85138 (patch) | |
tree | 68d3b3b25271e8a4998505897a269ff7ce119b76 /contrib/libs/icu/i18n/uni2name.cpp | |
parent | ccb790c507bd5e8ffe2ef9886ce5ee0a7ce22a15 (diff) | |
download | ydb-cfcd865e05c0d0525ea27d1e153a043b32a85138.tar.gz |
Update ICU to 73.2
Diffstat (limited to 'contrib/libs/icu/i18n/uni2name.cpp')
-rw-r--r-- | contrib/libs/icu/i18n/uni2name.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/icu/i18n/uni2name.cpp b/contrib/libs/icu/i18n/uni2name.cpp index 904da0207b..727f8953db 100644 --- a/contrib/libs/icu/i18n/uni2name.cpp +++ b/contrib/libs/icu/i18n/uni2name.cpp @@ -26,8 +26,8 @@ U_NAMESPACE_BEGIN UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UnicodeNameTransliterator) -static const UChar OPEN_DELIM[] = {92,78,123,0}; // "\N{" -static const UChar CLOSE_DELIM = 125; // "}" +static const char16_t OPEN_DELIM[] = {92,78,123,0}; // "\N{" +static const char16_t CLOSE_DELIM = 125; // "}" #define OPEN_DELIM_LEN 3 /** @@ -73,7 +73,7 @@ void UnicodeNameTransliterator::handleTransliterate(Replaceable& text, UTransPos UBool /*isIncremental*/) const { // The failure mode, here and below, is to behave like Any-Null, // if either there is no name data (max len == 0) or there is no - // memory (malloc() => NULL). + // memory (malloc() => nullptr). int32_t maxLen = uprv_getMaxCharNameLength(); if (maxLen == 0) { @@ -83,7 +83,7 @@ void UnicodeNameTransliterator::handleTransliterate(Replaceable& text, UTransPos // Accommodate the longest possible name plus padding char* buf = (char*) uprv_malloc(maxLen); - if (buf == NULL) { + if (buf == nullptr) { offsets.start = offsets.limit; return; } @@ -91,7 +91,7 @@ void UnicodeNameTransliterator::handleTransliterate(Replaceable& text, UTransPos int32_t cursor = offsets.start; int32_t limit = offsets.limit; - UnicodeString str(FALSE, OPEN_DELIM, OPEN_DELIM_LEN); + UnicodeString str(false, OPEN_DELIM, OPEN_DELIM_LEN); UErrorCode status; int32_t len; |