UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ICUTextCharacterIterator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
8
9#if UE_ENABLE_ICU
10
12 #include <unicode/uchriter.h>
13 #include <unicode/schriter.h>
15
21class FICUTextCharacterIterator_NativeUTF16 : public icu::UCharCharacterIterator
22{
23public:
27
30
31 // ICU RTTI
33 virtual UClassID getDynamicClassID() const override;
34
35 // Implement icu::CharacterIterator
36 virtual icu::CharacterIterator* clone() const override;
37
38private:
41
43
45 FString InternalString;
46
49};
50
57{
58public:
60
61protected:
64
66 FString SourceString;
67
69 icu::UnicodeString InternalString;
70};
71
78{
79public:
83
86
87 // ICU RTTI
89 virtual UClassID getDynamicClassID() const override;
90
91 // Implement icu::CharacterIterator
92 virtual icu::CharacterIterator* clone() const override;
93
94private:
97};
98
100template <bool IsUnicode, size_t TCHARSize> struct FICUTextCharacterIterator_PlatformSpecific { typedef FICUTextCharacterIterator_ConvertToUnicodeString Type; };
101template <> struct FICUTextCharacterIterator_PlatformSpecific<true, 2> { typedef FICUTextCharacterIterator_NativeUTF16 Type; }; // A unicode encoding with a wchar_t size of 2 bytes is assumed to be UTF-16
102typedef FICUTextCharacterIterator_PlatformSpecific<FPlatformString::IsUnicodeEncoded, sizeof(TCHAR)>::Type FICUTextCharacterIterator;
103
104#endif
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define THIRD_PARTY_INCLUDES_START
Definition GenericPlatformCompilerPreSetup.h:63
Type
Definition PawnAction_Move.h:11
Definition Voronoi.cpp:10