Function ZagalaSpecRegexPatternCache::GetCompiledPattern#
Defined in File ZagalaSpecRegexPatternCache.h
Function Documentation#
-
TSharedRef<const FRegexPattern> ZagalaSpecRegexPatternCache::GetCompiledPattern(const FString &PatternText)#
Returns the compiled form of a regex pattern, compiling it only the first time the text is seen.
A compiled pattern depends only on its text, so entries never need invalidation.
- Parameters:
PatternText – The regex pattern text.
- Returns:
The shared compiled pattern. It stays valid while the caller holds the reference.