good morning, On Sat, Feb 12, 2022, 3:47 AM Rowan Tommins <rowan.coll...@gmail.com> wrote:
> On 11/02/2022 18:42, Michał wrote: > > Considering the given example, the description from the documentation > > of strlen function: "Returns the length of the given string". > > > Which is exactly what it does. Using Unicode terminology [see > https://unicode.org/glossary], here are a few different things you could > count to determine the "length" of a string: > > a) bits > b) bytes > c) code units (UTF-16 has code units of 16 bits, UTF-8 has code units of > 8 bits) > d) code points (one of 1,112,064 numbers that can be given a meaning by > the Unicode standard) > e) graphemes (what a user would generally think of as a "character") > f) pixels (or any other unit of physical size) > it is why we have intl, which uses the ICU and allow users to update it. That means using the latest standard if needed. best, Pierre >