ICU 51.2  51.2
ucasemap.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 2005-2012, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 * file name: ucasemap.h
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2005may06
14 * created by: Markus W. Scherer
15 *
16 * Case mapping service object and functions using it.
17 */
18 
19 #ifndef __UCASEMAP_H__
20 #define __UCASEMAP_H__
21 
22 #include "unicode/utypes.h"
23 #include "unicode/ustring.h"
24 #include "unicode/localpointer.h"
25 
44 struct UCaseMap;
45 typedef struct UCaseMap UCaseMap;
69 U_STABLE UCaseMap * U_EXPORT2
70 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode);
71 
77 U_STABLE void U_EXPORT2
79 
80 #if U_SHOW_CPLUSPLUS_API
81 
83 
94 
96 
97 #endif
98 
105 U_STABLE const char * U_EXPORT2
106 ucasemap_getLocale(const UCaseMap *csm);
107 
114 U_STABLE uint32_t U_EXPORT2
115 ucasemap_getOptions(const UCaseMap *csm);
116 
128 U_STABLE void U_EXPORT2
129 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
130 
142 U_STABLE void U_EXPORT2
143 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
144 
159 #define U_TITLECASE_NO_LOWERCASE 0x100
160 
184 #define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
185 
186 #if !UCONFIG_NO_BREAK_ITERATION
187 
195 U_STABLE const UBreakIterator * U_EXPORT2
197 
218 U_STABLE void U_EXPORT2
219 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
220 
267 U_STABLE int32_t U_EXPORT2
269  UChar *dest, int32_t destCapacity,
270  const UChar *src, int32_t srcLength,
271  UErrorCode *pErrorCode);
272 
273 #endif
274 
298 U_STABLE int32_t U_EXPORT2
299 ucasemap_utf8ToLower(const UCaseMap *csm,
300  char *dest, int32_t destCapacity,
301  const char *src, int32_t srcLength,
302  UErrorCode *pErrorCode);
303 
327 U_STABLE int32_t U_EXPORT2
328 ucasemap_utf8ToUpper(const UCaseMap *csm,
329  char *dest, int32_t destCapacity,
330  const char *src, int32_t srcLength,
331  UErrorCode *pErrorCode);
332 
333 #if !UCONFIG_NO_BREAK_ITERATION
334 
379 U_STABLE int32_t U_EXPORT2
381  char *dest, int32_t destCapacity,
382  const char *src, int32_t srcLength,
383  UErrorCode *pErrorCode);
384 
385 #endif
386 
417 U_STABLE int32_t U_EXPORT2
419  char *dest, int32_t destCapacity,
420  const char *src, int32_t srcLength,
421  UErrorCode *pErrorCode);
422 
423 #endif