Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE int32_t U_EXPORT2 u_strToUpper ( UChar *  dest,
int32_t  destCapacity,
const UChar *  src,
int32_t  srcLength,
const char *  locale,
UErrorCode pErrorCode 
)

Uppercase the characters in a string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original. The source string and the destination buffer are allowed to overlap.

Parameters:
dest A buffer for the result string. The result will be zero-terminated if the buffer is large enough.
destCapacity The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string.
src The original string
srcLength The length of the original string. If -1, then src must be zero-terminated.
locale The locale to consider, or "" for the root locale or NULL for the default locale.
pErrorCode Must be a valid pointer to an error code value, which must not indicate a failure before the function call.
Returns:
The length of the result string. It may be greater than destCapacity. In that case, only some of the result was written to the destination buffer. ICU 2.0

Definition at line 571 of file ustrcase.c.

References NULL.

                                     {
    UCaseMap csm={ NULL };
    setTempCaseMap(&csm, locale, pErrorCode);
    return caseMap(&csm,
                   dest, destCapacity,
                   src, srcLength,
                   TO_UPPER, pErrorCode);
}


Generated by  Doxygen 1.6.0   Back to index