Re: utf
On Tue, Apr 03, 2018 at 10:51:43PM +0200, Nicolas George wrote:
> Ben Caradoc-Davies (2018-04-04):
> > What is the length of a
> > string?
>
> When is that relevant?
When you're trying to display one on a screen, or print one on paper.
When you've been asked to find the longest/shortest string from a list.
When you've been asked to sort a list of strings by length.
Or in other words, basically every time you do anything with the string
at all other than blindly byte-copying it to a different place in memory.
Reply to:
- Follow-Ups:
- Re: utf
- From: Nicolas George <george@nsup.org>
- Re: utf
- From: Stefan Monnier <monnier@iro.umontreal.ca>
- References:
- utf
- From: mess-mate <mess-mate@gmx.com>
- Re: utf
- From: Ben Caradoc-Davies <ben@transient.nz>
- Re: utf
- From: Andre Majorel <aym-naibed@teaser.fr>
- Re: utf
- From: Darac Marjal <mailinglist@darac.org.uk>
- Re: utf
- From: Ben Caradoc-Davies <ben@transient.nz>
- Re: utf
- From: Nicolas George <george@nsup.org>