D on next-gen consoles and for game development
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Fri May 24 06:37:22 PDT 2013
On 05/24/2013 11:49 AM, Jacob Carlborg wrote:
> toUpper/lower cannot be made in place if it should handle all Unicode. Some
> characters will change their length when convert to/from uppercase. Examples of
> these are the German double S and some Turkish I.
Surely it's possible to put in-place checks for whether the character length
changes, and ensure in-place replacement without any allocation if it doesn't.
(To be honest, feels a bit of a design flaw in Unicode that character length can
change between lower- and uppercase.)
More information about the Digitalmars-d
mailing list