FPackagePath::ParseExtension

Parse the extension from a filepath and convert it to an EPackageExtension.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

static EPackageExtension ParseExtension
(
    FStringView Filename,
    int32 * OutExtensionStart
)

Remarks

Parse the extension from a filepath and convert it to an EPackageExtension.

this is not the same as FPaths::GetExtension because some EPackageExtensions have multiple '.'s (e.g. .m.ubulk)

Returns

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

Parameter

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