Re: Odd behavior with pairs on string and runeAt

2019-03-09 Thread TotalKnowledge
Is there an easy way to determine how many bytes a rune uses?

Re: Odd behavior with pairs on string and runeAt

2019-03-04 Thread TotalKnowledge
The question was more centered around what the procedure of runeAt is for, not as much looking for a way to do what I have the code for. does runeAt have any practical use? Oh and the name is a declaration of intent, not a statement of capability.

Odd behavior with pairs on string and runeAt

2019-03-03 Thread TotalKnowledge
Perhaps I am doing something wrong (just learning nim) but the following code is outputting "extra" characters > var str = "u5f7cu884cu3067" > > for key, value in pairs(str): > echo runeAt(str, key) which outputs: > 彼 ½ ¼ 行 ¡ Œ で  §