UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AudioAddressPattern.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2// Pattern-Matching that fulfills the OSC 1.0 Protocol on address pattern matching
3#pragma once
4
5#include "CoreMinimal.h"
6
8{
9 static int32 FindPatternTerminatorIndex(const FString& Pattern, int32 PatternIter, TCHAR Terminator);
10
11 static const TArray<TCHAR>& GetInvalidChars();
12 static const TArray<TCHAR>& GetPatternChars();
13
14public:
15 static ENGINE_API bool BracePatternMatches(const FString& Pattern, int32 PatternStartIndex, int32 PatternEndIndex, const FString& Part, int32& PartIter);
16 static ENGINE_API bool BracketPatternMatches(const FString& Pattern, int32 PatternStartIndex, int32 PatternEndIndex, TCHAR MatchChar);
17 static ENGINE_API bool IsValidPatternPart(const FString& Part);
18 static ENGINE_API bool IsValidPattern(const TArray<FString>& InContainers, const FString& InMethod);
19 static ENGINE_API bool IsValidPath(const FString& Path, bool bInvalidateSeparator);
20 static ENGINE_API bool PartsMatch(const FString& Pattern, const FString& Part);
21 static ENGINE_API bool WildPatternMatches(const FString& Pattern, int32& PatternIter, const FString& Part, int32& PartIter);
22};
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
Definition AudioAddressPattern.h:8
static ENGINE_API bool PartsMatch(const FString &Pattern, const FString &Part)
Definition AudioAddressPattern.cpp:283
static ENGINE_API bool BracketPatternMatches(const FString &Pattern, int32 PatternStartIndex, int32 PatternEndIndex, TCHAR MatchChar)
Definition AudioAddressPattern.cpp:61
static ENGINE_API bool IsValidPattern(const TArray< FString > &InContainers, const FString &InMethod)
Definition AudioAddressPattern.cpp:232
static ENGINE_API bool BracePatternMatches(const FString &Pattern, int32 PatternStartIndex, int32 PatternEndIndex, const FString &Part, int32 &PartIter)
Definition AudioAddressPattern.cpp:7
static ENGINE_API bool WildPatternMatches(const FString &Pattern, int32 &PatternIter, const FString &Part, int32 &PartIter)
Definition AudioAddressPattern.cpp:361
static ENGINE_API bool IsValidPatternPart(const FString &Part)
Definition AudioAddressPattern.cpp:144
static ENGINE_API bool IsValidPath(const FString &Path, bool bInvalidateSeparator)
Definition AudioAddressPattern.cpp:251
Definition Array.h:670