Skip to content

Commit 3962233

Browse files
committed
ICU-23004 Correct the return type of UnsafeCodeUnits::codePoint per ICU-TC 2025-05-22
1 parent a146a0f commit 3962233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

icu4c/source/common/unicode/utfiterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class UnsafeCodeUnits {
201201
* UTFIllFormedBehavior template parameter.
202202
* @draft ICU 78
203203
*/
204-
UChar32 codePoint() const { return c_; }
204+
CP32 codePoint() const { return c_; }
205205

206206
/**
207207
* @return the start of the code unit sequence for one code point.
@@ -269,7 +269,7 @@ class UnsafeCodeUnits<
269269
UnsafeCodeUnits(const UnsafeCodeUnits &other) = default;
270270
UnsafeCodeUnits &operator=(const UnsafeCodeUnits &other) = default;
271271

272-
UChar32 codePoint() const { return c_; }
272+
CP32 codePoint() const { return c_; }
273273

274274
uint8_t length() const { return len_; }
275275

0 commit comments

Comments
 (0)