Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackagePath
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
| Include | #include "Misc/PackagePath.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp |
static EPackageExtension ParseExtension
&40;
FStringView Filename,
int32 &42; OutExtensionStart
&41;
Remarks
Parse the extension from a filepath and convert it to an EPackageExtension.
Note this is not the same as FPaths::GetExtension because some EPackageExtensions have multiple '.'s (e.g. .m.ubulk) The EPackageExtension matching the (case-insensitive) extension text in the filename. EPackageExtension::Unspecified if the filename has no extension. EPackageExtension::Custom if the filename's extension is not one of the enumerated possibilities in EPackageExtension
Parameters
| Name | Description |
|---|---|
| Filename | The path to parse the extension from |
| OutExtensionStart | If non-null, will be filled with the index of the '.' at the start of the extension, or with Filename.Len() if no extension is found |