' Function to get a Thai comparison string
Private Sub GetThaiComparisonString(s As String) As String
'''Dim chars() As Char = s.ToCharArray
Dim chars(s.Length) As Char
For I = 0 To s.Length - 1
chars(I) = s.CharAt(I)
Next
' Function to get a Thai comparison string
Private Sub GetThaiComparisonString(s As String) As String
'''Dim chars() As Char = s.ToCharArray
Dim chars(s.Length) As Char
For I = 0 To s.Length - 1
chars(I) = s.CharAt(I)
Next
Lol where the heck is the documentation about doing that magic trick? What other secret methods and incantations are available? Does it work on other types, like Ints, Floats, Arrays, Lists?
In particular, I vaguely remember seeing some Array slicing and dicing operations that looked pretty useful, assuming I can remember them when I need them...
Dim a As String = "A string with words"
Dim b() As Char = a.As(JavaObject).RunMethod("toCharArray",Null)
Dim d As String
d = d.As(JavaObject).RunMethod("valueOf",Array(b))
Log(d)
@emexes: maybe we need to glue byteconverter lib to your arse for handy reference bc.ToChars( s as string) as Char() plus many other useful conversions
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.