How to make a simpler implementation work?

So, I decided to try to make the IsIsogram() function implementation a bit simpler, by creating an FString of characters already checked, ir order to (probably) decrease complexity.

unreal_doubt

This does not work and I do understand why: both the method Find() and the operator += only accept FString as arguments and the TChars that make up a FString won’t work as parameters (although they should, would be more intuitive).

I was hoping a more experienced user of the Unreal could shed a light on how to make an implementation like this work.

What I’ve tried so far:

  • Tried to create an FString and assign to it Word[i], no succeess

Hi
After looking in documentation, I guess you could use FindChar instead of Find and AppendChar instead of +=.

Thank you very much!

To anyone who might try this: before the for loop, create an int32 to serve as a mock index for the second parameter of FindChar.

Also, when looking at the documentation go for: FString | Unreal Engine Documentation
And not: FString | Unreal Engine Documentation

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms