00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __UCASEMAP_H__
00020 #define __UCASEMAP_H__
00021
00022 #include "unicode/utypes.h"
00023 #include "unicode/ustring.h"
00024
00043 struct UCaseMap;
00044 typedef struct UCaseMap UCaseMap;
00068 U_STABLE UCaseMap * U_EXPORT2
00069 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode);
00070
00076 U_STABLE void U_EXPORT2
00077 ucasemap_close(UCaseMap *csm);
00078
00085 U_STABLE const char * U_EXPORT2
00086 ucasemap_getLocale(const UCaseMap *csm);
00087
00094 U_STABLE uint32_t U_EXPORT2
00095 ucasemap_getOptions(const UCaseMap *csm);
00096
00108 U_STABLE void U_EXPORT2
00109 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
00110
00122 U_STABLE void U_EXPORT2
00123 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
00124
00139 #define U_TITLECASE_NO_LOWERCASE 0x100
00140
00164 #define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
00165
00166 #if !UCONFIG_NO_BREAK_ITERATION
00167
00175 U_DRAFT const UBreakIterator * U_EXPORT2
00176 ucasemap_getBreakIterator(const UCaseMap *csm);
00177
00198 U_DRAFT void U_EXPORT2
00199 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
00200
00242 U_DRAFT int32_t U_EXPORT2
00243 ucasemap_toTitle(UCaseMap *csm,
00244 UChar *dest, int32_t destCapacity,
00245 const UChar *src, int32_t srcLength,
00246 UErrorCode *pErrorCode);
00247
00248 #endif
00249
00273 U_STABLE int32_t U_EXPORT2
00274 ucasemap_utf8ToLower(const UCaseMap *csm,
00275 char *dest, int32_t destCapacity,
00276 const char *src, int32_t srcLength,
00277 UErrorCode *pErrorCode);
00278
00302 U_STABLE int32_t U_EXPORT2
00303 ucasemap_utf8ToUpper(const UCaseMap *csm,
00304 char *dest, int32_t destCapacity,
00305 const char *src, int32_t srcLength,
00306 UErrorCode *pErrorCode);
00307
00308 #if !UCONFIG_NO_BREAK_ITERATION
00309
00349 U_DRAFT int32_t U_EXPORT2
00350 ucasemap_utf8ToTitle(UCaseMap *csm,
00351 char *dest, int32_t destCapacity,
00352 const char *src, int32_t srcLength,
00353 UErrorCode *pErrorCode);
00354
00355 #endif
00356
00385 U_DRAFT int32_t U_EXPORT2
00386 ucasemap_utf8FoldCase(const UCaseMap *csm,
00387 char *dest, int32_t destCapacity,
00388 const char *src, int32_t srcLength,
00389 UErrorCode *pErrorCode);
00390
00391 #endif