lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> string.sub(str, pos1, pos1)
> pos2 = string.find(str, "()%w", pos3)
> string.byte(str, pos4)
> Are they byte positions or character positions?

LuaRT uses character position for all strings functions

For all string functions, including string.unpack() and string.byte() ?