6#include "Containers/StringFwd.h"
7#include "Misc/CString.h"
11 template <
typename CharType>
12 [[nodiscard]]
ARK_API inline TStringView<CharType> RemoveFromStart(
const TStringView<CharType> View,
const TStringView<CharType> Prefix, ESearchCase::Type SearchCase = ESearchCase::CaseSensitive)
14 return View.StartsWith(Prefix, SearchCase) ? View.RightChop(Prefix.Len()) : View;
17 template <
typename CharType>
18 [[nodiscard]]
ARK_API inline TStringView<CharType> RemoveFromEnd(
const TStringView<CharType> View,
const TStringView<CharType> Prefix, ESearchCase::Type SearchCase = ESearchCase::CaseSensitive)
20 return View.EndsWith(Prefix, SearchCase) ? View.LeftChop(Prefix.Len()) : View;