Files
UnrealEngine/Engine/Source/Runtime/UniversalObjectLocator/Private/UniversalObjectLocatorStringParams.cpp
2025-05-18 13:04:45 +08:00

17 lines
509 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "UniversalObjectLocatorStringParams.h"
#include "Containers/StringView.h"
namespace UE::UniversalObjectLocator
{
FStringView FParseStringResult::Progress(FStringView CurrentString, int32 NumToProgress)
{
checkf(NumToProgress <= CurrentString.Len(), TEXT("Attempting to progress past the end of the current string!"));
NumCharsParsed += NumToProgress;
return CurrentString.RightChop(NumToProgress);
}
} // namespace UE::UniversalObjectLocator