FPathViews::GetBaseFilename

Returns the portion of the path after the last separator and before the last dot.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/PathViews.h

Include

#include "Misc/PathViews.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/PathViews.cpp

Syntax

static FStringView GetBaseFilename
(
    const FStringView & InPath
)

Remarks

Returns the portion of the path after the last separator and before the last dot.

Examples: (Using '/' but '\' is valid too.) "A/B/C.D" -> "C" "A/B/C" -> "C" "A/B/" -> "" "A" -> "A"

Returns

The portion of the path after the last separator and before the last dot.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss