An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.
Splitting a string containing the Cyrillic symbols using the gmatch method has wrong result, for example:
s = 'Ррррр Нннннн Сссссс'
words = {}
for word in s:gmatch('%w+') do table.insert(words, word) end
return words
Returns a table containing one row, although the correct result is three rows.
Added a solution to this problem and a couple of tests. I didn't quite understand why in KopiLua when working with strings char is often cast to byte, causes there is a loss of information, which leads to such bugs.
Splitting a string containing the Cyrillic symbols using the gmatch method has wrong result, for example:
Returns a table containing one row, although the correct result is three rows.
Added a solution to this problem and a couple of tests. I didn't quite understand why in KopiLua when working with strings
char
is often cast tobyte
, causes there is a loss of information, which leads to such bugs.