forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
11
Kha/Sources/kha/StringExtensions.hx
Normal file
11
Kha/Sources/kha/StringExtensions.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package kha;
|
||||
|
||||
class StringExtensions {
|
||||
public static function toCharArray(s: String): Array<Int> {
|
||||
var results = new Array<Int>();
|
||||
for (i in 0...s.length) {
|
||||
results.push(s.charCodeAt(i));
|
||||
}
|
||||
return results;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user