Re: Multibyte strings

From: Date: Sat, 12 Feb 2022 03:18:39 +0000
Subject: Re: Multibyte strings
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-117021@lists.php.net to get a copy of this message
good morning, On Sat, Feb 12, 2022, 3:47 AM Rowan Tommins <rowan.collins@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 >

« previous php.internals (#117021) next »