00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __UCASEMAP_H__
00022 #define __UCASEMAP_H__
00023
00024 #include "unicode/utypes.h"
00025 #include "unicode/localpointer.h"
00026 #include "unicode/stringoptions.h"
00027 #include "unicode/ustring.h"
00028
00047 struct UCaseMap;
00048 typedef struct UCaseMap UCaseMap;
00072 U_STABLE UCaseMap * U_EXPORT2
00073 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode);
00074
00080 U_STABLE void U_EXPORT2
00081 ucasemap_close(UCaseMap *csm);
00082
00083 #if U_SHOW_CPLUSPLUS_API
00084
00085 U_NAMESPACE_BEGIN
00086
00096 U_DEFINE_LOCAL_OPEN_POINTER(LocalUCaseMapPointer, UCaseMap, ucasemap_close);
00097
00098 U_NAMESPACE_END
00099
00100 #endif
00101
00108 U_STABLE const char * U_EXPORT2
00109 ucasemap_getLocale(const UCaseMap *csm);
00110
00117 U_STABLE uint32_t U_EXPORT2
00118 ucasemap_getOptions(const UCaseMap *csm);
00119
00131 U_STABLE void U_EXPORT2
00132 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
00133
00145 U_STABLE void U_EXPORT2
00146 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
00147
00148 #if !UCONFIG_NO_BREAK_ITERATION
00149
00157 U_STABLE const UBreakIterator * U_EXPORT2
00158 ucasemap_getBreakIterator(const UCaseMap *csm);
00159
00180 U_STABLE void U_EXPORT2
00181 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
00182
00229 U_STABLE int32_t U_EXPORT2
00230 ucasemap_toTitle(UCaseMap *csm,
00231 UChar *dest, int32_t destCapacity,
00232 const UChar *src, int32_t srcLength,
00233 UErrorCode *pErrorCode);
00234
00235 #endif // UCONFIG_NO_BREAK_ITERATION
00236
00260 U_STABLE int32_t U_EXPORT2
00261 ucasemap_utf8ToLower(const UCaseMap *csm,
00262 char *dest, int32_t destCapacity,
00263 const char *src, int32_t srcLength,
00264 UErrorCode *pErrorCode);
00265
00289 U_STABLE int32_t U_EXPORT2
00290 ucasemap_utf8ToUpper(const UCaseMap *csm,
00291 char *dest, int32_t destCapacity,
00292 const char *src, int32_t srcLength,
00293 UErrorCode *pErrorCode);
00294
00295 #if !UCONFIG_NO_BREAK_ITERATION
00296
00341 U_STABLE int32_t U_EXPORT2
00342 ucasemap_utf8ToTitle(UCaseMap *csm,
00343 char *dest, int32_t destCapacity,
00344 const char *src, int32_t srcLength,
00345 UErrorCode *pErrorCode);
00346
00347 #endif
00348
00379 U_STABLE int32_t U_EXPORT2
00380 ucasemap_utf8FoldCase(const UCaseMap *csm,
00381 char *dest, int32_t destCapacity,
00382 const char *src, int32_t srcLength,
00383 UErrorCode *pErrorCode);
00384
00385 #endif