Re: Problem: u_strToUpper - & u_strToLower convertion

Markus Scherer <[email protected]> Fri, 09 Apr 2004 12:02:50 -0700
Newsgroups gmane.comp.lib.icu.general
Organization IBM
Message-ID <[email protected]>
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