Navigation
API > API/Runtime > API/Runtime/Core
| Name | FPathViews |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/PathViews.h |
| Include Path | #include "Misc/PathViews.h" |
Syntax
class FPathViews
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Append
(
TStringBuilderBase< CharType >& Builder, |
Appends each suffix argument to the path in the builder and ensures that there is a separator between them. | Misc/PathViews.h | |
static void AppendPath
(
FStringBuilderBase& InOutPath, |
If AppendPath is a relative path, append it as a relative path onto InOutPath. | Misc/PathViews.h | |
static FString ChangeExtension
(
const FStringView& InPath, |
Replaces the pre-existing file extension of a filename. | Misc/PathViews.h | |
static bool CollapseRelativeDirectories
(
FStringBuilderBase& InOutPath |
Collapses redundant paths like "/./" and "SkipDir/..". | Misc/PathViews.h | |
static bool Equals
(
FStringView A, |
Return true if the given paths are the same path (with exceptions noted below). | Misc/PathViews.h | |
static FStringView GetBaseFilename
(
const FStringView& InPath |
Returns the portion of the path after the last separator and before the last dot. | Misc/PathViews.h | |
static FStringView GetBaseFilenameWithPath
(
const FStringView& InPath |
Returns the portion of the path before the last dot. | Misc/PathViews.h | |
static FStringView GetCleanFilename
(
const FStringView& InPath |
Returns the portion of the path after the last separator. | Misc/PathViews.h | |
static FStringView GetMountPointNameFromPath
(
const FStringView InPath, |
Returns the name of the mount point in a path Removes starting forward slash and Classes_ prefix if bInWithoutSlashes is true Example: "/Classes_A/Textures" returns "A" and sets bOutHadClassesPrefix=true if bInWithoutSlashes is true returns "/Classes_A" otherwise and sets bOutHadClassesPrefix=false | Misc/PathViews.h | |
static bool HasRedundantTerminatingSeparator
(
FStringView A |
Report whether the path has an unneeded trailing slash. | Misc/PathViews.h | |
static bool IsParentPathOf
(
FStringView Parent, |
Return whether Parent is a parent path of (or is equal to) Child. | Misc/PathViews.h | |
static bool IsRelativePath
(
FStringView InPath |
Return whether the given path is a relativepath - does not start with a separator or volume:. | Misc/PathViews.h | |
static bool IsSeparator
(
TCHAR c |
Return whether the given character is a path-separator character (/ or ) | Misc/PathViews.h | |
static FPathViews::GetBaseFilename(InPath) and FPathViews void IterateAncestors
(
FStringView InPath, |
Returns the portion of the path before the last dot and optionally after the last separator. | Misc/PathViews.h | |
static bool Less
(
FStringView A, |
Return true if the the first path is lexicographically less than the second path (with caveats noted below). | Misc/PathViews.h | |
static void NormalizeDirectoryName
(
FStringBuilderBase& InOutPath |
Normalize and remove trailing slash unless the preceding character is '/' or ':' | Misc/PathViews.h | |
static void NormalizeFilename
(
FStringBuilderBase& InOutPath |
Convert \ to / and do platform-specific normalization | Misc/PathViews.h | |
static void RemoveDuplicateSlashes
(
FStringBuilderBase& InOutPath |
Removes duplicate forward slashes, e.g. "a/b//c////f.e" -> "a/b/c/f.e" | Misc/PathViews.h | |
static FString SetExtension
(
const FStringView& InPath, |
Sets the file extension of a filename. | Misc/PathViews.h | |
static void Split
(
const FStringView& InPath, |
Splits a path into three parts, any of which may be empty: the path, the clean name, and the extension. | Misc/PathViews.h | |
static void SplitFirstComponent
(
FStringView InPath, |
Split the given absolute or relative path into its topmost directory and the relative path from that directory. | Misc/PathViews.h | |
static void SplitVolumeSpecifier
(
FStringView InPath, |
Split the path into a volume specifier and the rest of the path. | Misc/PathViews.h | |
static void ToAbsolutePath
(
FStringView InPath, |
Convert to absolute using process BaseDir(), normalize and append. | Misc/PathViews.h | |
static void ToAbsolutePath
(
FStringView BasePath, |
Convert to absolute using explicit BasePath, normalize and append. | Misc/PathViews.h | |
static void ToAbsolutePathInline
(
FStringBuilderBase& InOutPath |
Convert to absolute using process BaseDir() and normalize inlined. | Misc/PathViews.h | |
static void ToAbsolutePathInline
(
FStringView BasePath, |
Convert to absolute using explicit BasePath and normalize inlined. | Misc/PathViews.h | |
static bool TryMakeChildPathRelativeTo
(
FStringView Child, |
Check whether Parent is a parent path of Child and report the relative path if so. | Misc/PathViews.h |