[m-users.] Confused by action of string.prefix_length

Julien Fischer jfischer at opturion.com
Thu Jun 9 11:03:04 AEST 2022


On Wed, 8 Jun 2022, Sean Charles (emacstheviking) wrote:

> OK, well the explanation makes sense, I guess in my head I had not
> fully comprehended what a code point truly is, not being that
> accustomed to that terminology myself.  At first (naive) reading I
> ASSUMED it would just return the -visible character count- i.e. the,
> dare I say it, intuitive value of 3, rather than the surgically
> precise value of 6!

In general, counts of visible "characters", code points and code units
may all differ (e.g. things like combining characters may mean that one
visible character can be represented by multiple code points, each of
which may be encoded by several code units.)

Julien.


More information about the users mailing list