Nathan Huesken schrieb:
> How do I test in haXe if a character at a specific position is a string is a certain character?
> Like this in C++:
> I know, there is charCodeAt, but do I need to know the char code of every character I want to test?
There's also charAt, see .
Cool! Are there more of these undocumented features?
Nicolas Cannasse schrieb:
> There's a still undocumented feature for that :
> str.charCodeAt(5) == ")".code
> the .code is only correct for 1-char constant strings, and is directly
> compiled to the charcode integer. This is because there is no "char"
> type in haXe, and simple ' quotes are also used for strings.