Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackagePath
Description
Set the capitalization of a PackagePath to match the given string
If the given FilePathToMatch is case-insensitively equal to the LocalPath of the source PackagePath, set the output PackagePath equal to a copy of the source but with capitalization set equal to the capitalization in FilePathToMatch
| Name | TryMatchCase |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
| Include Path | #include "Misc/PackagePath.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp |
static bool TryMatchCase
(
const FPackagePath & SourcePackagePath,
FStringView FilePathToMatch,
FPackagePath & OutPackagePath
)
True if FilePathToMatch matched SourcePackagePath case-insensitively, else false
Parameters
| Name | Remarks |
|---|---|
| SourcePackagePath | The PackagePath to compare against FilePathToMatch |
| FilePathToMatch | The LocalPath to compare against SourcePackagePath's LocalPath |
| OutPackagePath | Set to the matching-capitalization copy of SourcePackagePath if FilePathToMatch matched SourcePackagePath case-insensitively |