24 Jul
2009
24 Jul
'09
4:47 p.m.
2009/7/22 Robert Dailey
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.