Boost logo

Boost Users :

Subject: Re: [Boost-users] UTF-16
From: Rainer Deyke (rainerd_at_[hidden])
Date: 2009-07-24 13:59:13


Scott McMurray wrote:
> Can you elaborate an example of a situation in which you actually need
> to know the length of the string (in codepoints) in the first place?
> Everything I can think of that might would be better done with a regex
> anyways.

The length of a unicode string isn't particularly interesting anyway,
since simple characters like 'ä' can be encoded as either a single code
point or multiple code points.

-- 
Rainer Deyke - rainerd_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net