FPackagePath::TryMatchCase

Set the capitalization of a PackagePath to match the given string

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 bool TryMatchCase
(
    const FPackagePath & SourcePackagePath,
    FStringView FilePathToMatch,
    FPackagePath & OutPackagePath
)

Remarks

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

Returns

True if FilePathToMatch matched SourcePackagePath case-insensitively, else false

Parameters

Parameter

Description

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