Boost logo

Boost Users :

Subject: Re: [Boost-users] UTF-16
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-07-24 12:47:54


2009/7/22 Robert Dailey <rcdailey_at_[hidden]>:
> Problem with that is that std::string::length() no longer provides a
> meaningful value. It will count each byte is 1 character.
>

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.


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