Web lists-archives.com

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.