summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/normalizer2impl.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-05-14 11:41:19 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-05-14 12:38:52 +0300
commite74fea2864db7f8300da2a0569343b51666ecf4c (patch)
tree840169dd389ac4918f6be6f3906729a9052c9fcb /thirdparty/icu4c/common/normalizer2impl.h
parent557f63d03796db78255f055b6d06cb5f9195ff7e (diff)
downloadredot-engine-e74fea2864db7f8300da2a0569343b51666ecf4c.tar.gz
Update ICU to 75.1
Diffstat (limited to 'thirdparty/icu4c/common/normalizer2impl.h')
-rw-r--r--thirdparty/icu4c/common/normalizer2impl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/icu4c/common/normalizer2impl.h b/thirdparty/icu4c/common/normalizer2impl.h
index f5ede24fc2..b74c2a1125 100644
--- a/thirdparty/icu4c/common/normalizer2impl.h
+++ b/thirdparty/icu4c/common/normalizer2impl.h
@@ -141,12 +141,12 @@ public:
/** Constructs only; init() should be called. */
ReorderingBuffer(const Normalizer2Impl &ni, UnicodeString &dest) :
impl(ni), str(dest),
- start(NULL), reorderStart(NULL), limit(NULL),
+ start(nullptr), reorderStart(nullptr), limit(nullptr),
remainingCapacity(0), lastCC(0) {}
/** Constructs, removes the string contents, and initializes for a small initial capacity. */
ReorderingBuffer(const Normalizer2Impl &ni, UnicodeString &dest, UErrorCode &errorCode);
~ReorderingBuffer() {
- if(start!=NULL) {
+ if (start != nullptr) {
str.releaseBuffer((int32_t)(limit-start));
}
}
@@ -245,7 +245,7 @@ private:
*/
class U_COMMON_API Normalizer2Impl : public UObject {
public:
- Normalizer2Impl() : normTrie(NULL), fCanonIterData(NULL) { }
+ Normalizer2Impl() : normTrie(nullptr), fCanonIterData(nullptr) {}
virtual ~Normalizer2Impl();
void init(const int32_t *inIndexes, const UCPTrie *inTrie,
@@ -623,7 +623,7 @@ private:
const uint16_t *getMapping(uint16_t norm16) const { return extraData+(norm16>>OFFSET_SHIFT); }
const uint16_t *getCompositionsListForDecompYes(uint16_t norm16) const {
if(norm16<JAMO_L || MIN_NORMAL_MAYBE_YES<=norm16) {
- return NULL;
+ return nullptr;
} else if(norm16<minMaybeYes) {
return getMapping(norm16); // for yesYes; if Jamo L: harmless empty list
} else {