Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FString IStringUtils::UnsignedIntToString(const uint32& NumericValue, FString DefaultValue)
- {
- FString Result;
- TCHAR* Buffer = TEXT("");
- uint32 NumberToBeDismantled = NumericValue;
- int32 BufferIndex = 0;
- do
- {
- FString String = FString::FromInt(NumberToBeDismantled % 10); //Debug variable
- *Buffer = *(const_cast<TCHAR*>(*String));
- NumberToBeDismantled /= 10;
- if(NumberToBeDismantled > 0)
- {
- Buffer++;
- BufferIndex++;
- }
- } while(NumberToBeDismantled != 0);
- for (int Index = 0; Index <= BufferIndex; Index++)
- {
- Result += *(Buffer - Index);
- }
- return Result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement