Re: Problem: u_strToUpper - & u_strToLower convertion

Tex Texin <[email protected]> Fri, 09 Apr 2004 15:10:44 -0400
Newsgroups gmane.comp.lib.icu.general
Organization http://www.XenCraft.com
Message-ID <[email protected]>
Yes, it describes what it does, however that is not a warning.
For people less experienced in i18n, it may not be clear that it is a bad thing
to do.

It would be better to say clearly- Don't use these.

tex

Markus Scherer wrote:
> 
> Tex Texin wrote:
> > Perhaps the doc should provide a strong(er) warning about the use of an API
> > that is driven by
> > a constraint of single character length buffer being inadequate.
> >
> > Many programmers may read the doc and think that the buffer-size constraint is
> > an adequate justification for using the API, as opposed to properly
> > internationalizing their code.
> 
> Possible. I thought that the current doc for u_toupper() was reasonably clear:
> 
>   * This function only returns the simple, single-code point case mapping.
>   * Full case mappings may result in zero, one or more code points and depend
>   * on context or language etc.
>   * Full case mappings are applied by the string case mapping functions,
>   * see ustring.h and the UnicodeString class.
> 
> Is it not?
> 
> markus
> _______________________________________________
> icu mailing list
> [email protected]
> http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu

-- 
-------------------------------------------------------------
Tex Texin   cell: +1 781 789 1898   mailto:[email protected]
Xen Master                          http://www.i18nGuy.com
                         
XenCraft		            http://www.XenCraft.com
Making e-Business Work Around the World
-------------------------------------------------------------