I know that there’s FString->RemoveAt(), but that requires looping; Right now I’m converting to std::string instead to avoid going too deep in char* manipulations.
I know about when we can use std or not.
What I was asking is if there’s a method as simple as:
std::string S = TCHAR_TO_UTF8(*Title->ToString());
S.erase(std::remove_if(S.begin(),S.end(),isspace),S.end());
To remove white spaces from an FString without having to convert to std::string first. And there’s no problem converting to std in this case, it’s not a UProperty and compiles crossplatform, still I’d rather not have to use std at all.
You won’t find lambda arguments in UE4 (except of Slate), it’s pretty fresh C++ feature, but the reference version of that function can be substituted with Replace function i think
Thanks! Was just wanting to make sure I would not reinvent the wheel before messing with this.
This is exactly what I was looking for, just Replace by empty char =]
Just a note since somebody might get the wrong idea from your post. Lambda arguments are usable for a lot of container types (Array, Set, Map), just not FStrings.