ramakanth
10 years agoVisitor
Reversing a String in BrightScript
What is the best way to reverse a String in BrightScript? i did reverse a sentence but not an individual word. I didn't find an equivalent of java charAt() function in brightscript for particular string.
required:
Function StrReverse(baseString as String)
revString = // logic to reverse the string
return revString
End Function
input : "roku"
output : "ukor"
apart from english text, i am pretty much interested in achieving the string reverse for arabic text, any inputs hear would be pretty helpful.
Thanks,
Ramakanth.G
required:
Function StrReverse(baseString as String)
revString = // logic to reverse the string
return revString
End Function
input : "roku"
output : "ukor"
apart from english text, i am pretty much interested in achieving the string reverse for arabic text, any inputs hear would be pretty helpful.
Thanks,
Ramakanth.G