UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ICURegex.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
"
6
#include "Containers/Set.h"
7
#include "
Containers/UnrealString.h
"
8
#include "
Templates/SharedPointer.h
"
9
10
#if UE_ENABLE_ICU
11
THIRD_PARTY_INCLUDES_START
12
#include <unicode/regex.h>
13
THIRD_PARTY_INCLUDES_END
14
18
class
FICURegexManager
19
{
20
public
:
21
static
void
Create
();
22
static
void
Destroy
();
23
static
bool
IsInitialized
();
24
static
FICURegexManager
&
Get
();
25
26
TWeakPtr<const icu::RegexPattern>
CreateRegexPattern
(
const
FString&
InSourceString
,
uint32_t
InICURegexFlags
);
27
void
DestroyRegexPattern
(
TWeakPtr<const icu::RegexPattern>
&
InICURegexPattern
);
28
29
TWeakPtr<icu::RegexMatcher>
CreateRegexMatcher
(
const
icu::RegexPattern*
InPattern
,
const
icu::UnicodeString*
InInputString
);
30
void
DestroyRegexMatcher
(
TWeakPtr<icu::RegexMatcher>
&
InICURegexMatcher
);
31
32
private
:
33
static
FICURegexManager
* Singleton;
34
35
FCriticalSection
AllocatedRegexPatternsCS
;
36
TSet<TSharedPtr<const icu::RegexPattern>
>
AllocatedRegexPatterns
;
37
38
FCriticalSection
AllocatedRegexMatchersCS
;
39
TSet<TSharedPtr<icu::RegexMatcher>
>
AllocatedRegexMatchers
;
40
};
41
42
#endif
CoreTypes.h
SharedPointer.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ERadixSortBufferState::IsInitialized
@ IsInitialized
FCriticalSection
UE::FPlatformRecursiveMutex FCriticalSection
Definition
CriticalSection.h:53
THIRD_PARTY_INCLUDES_START
#define THIRD_PARTY_INCLUDES_START
Definition
GenericPlatformCompilerPreSetup.h:63
EMassCommandOperationType::Destroy
@ Destroy
UnrealString.h
ECreateIfNeeded::Create
@ Create
TWeakPtr
Definition
SharedPointer.h:1295
ObjectPtr_Private::Get
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition
ObjectPtr.h:426
THIRD_PARTY_INCLUDES_END
Definition
Voronoi.cpp:10
Engine
Source
Runtime
Core
Private
Internationalization
ICURegex.h
Generated by
1.9.8