I'm using WDL_String container to manage string within a C++ Framework. I need to split a string (delimiter \
) and get the last occurrence.
I can use the native method:
mFilePath.DeleteSub(mLastOccPosition, mFilePath.GetLength());
subbing the string, but I don't know how to catch the mLastOccPosition
.
So if I have this string:
D:\\Google Drive\\My Files\\Test.zip
I need to return Test.zip
. What's the best way to do this in C++?