[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] luaRT 0.9 beta1
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: Thu, 21 Jan 2021 20:25:54 +0800
>runtime library?
Could you please explain that in more detail?
Isn't it a runtime library when invoking `require` to dynamically load
new libraries?
On Thu, Jan 21, 2021 at 8:22 PM <samir.tine@luart.org> wrote:
>
> Le 2021-01-21 12:13, 孙世龙 sunshilong a écrit :
> > LuaRT? What's short for "RT"?
> >
> > On Thu, Jan 21, 2021 at 6:32 PM <samir.tine@luart.org> wrote:
> >>
> >> Le 2021-01-21 08:51, Egor Skriptunoff a écrit :
> >> >>> 2) I have tested string.find("Ё", "[А-Я]") in LuaRT : it
> >> >> returns
> >> >>> correctly 1,2 that means the Ё has been correctly found ?
> >> >>
> >> >> In fact, it returns 1, 1 (matching the right character).
> >> >
> >> > OK, it's good.
> >> >
> >> > What does #str (the string length operator) return?
> >> > - a number of bytes in a string
> >> > - a number of UTF16 words (a symbol above U+FFFF is encoded as a
> >> > surrogate pair and therefore has length of 2)
> >> >
> >> > - a number of UTF-8 codepoints
> >> > - a number of symbols (a symbol may consist of several codepoints)
> >>
> >> #str means the size of the string on bytes.
> >> Use string.length to get the length in characters.
> >>
> >> Regards,
> >>
> >> Samir
> >>
> >>
> >>
>
> RT means RunTime, as LuaRT have a specific runtime library for the
> Windows platform.
>
> Samir
>
>
>
>