ucasemap.h

Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 *
00004 *   Copyright (C) 2005-2009, International Business Machines
00005 *   Corporation and others.  All Rights Reserved.
00006 *
00007 *******************************************************************************
00008 *   file name:  ucasemap.h
00009 *   encoding:   US-ASCII
00010 *   tab size:   8 (not used)
00011 *   indentation:4
00012 *
00013 *   created on: 2005may06
00014 *   created by: Markus W. Scherer
00015 *
00016 *   Case mapping service object and functions using it.
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 
00247 U_DRAFT int32_t U_EXPORT2
00248 ucasemap_toTitle(UCaseMap *csm,
00249                  UChar *dest, int32_t destCapacity,
00250                  const UChar *src, int32_t srcLength,
00251                  UErrorCode *pErrorCode);
00252 
00253 #endif
00254 
00278 U_STABLE int32_t U_EXPORT2
00279 ucasemap_utf8ToLower(const UCaseMap *csm,
00280                      char *dest, int32_t destCapacity,
00281                      const char *src, int32_t srcLength,
00282                      UErrorCode *pErrorCode);
00283 
00307 U_STABLE int32_t U_EXPORT2
00308 ucasemap_utf8ToUpper(const UCaseMap *csm,
00309                      char *dest, int32_t destCapacity,
00310                      const char *src, int32_t srcLength,
00311                      UErrorCode *pErrorCode);
00312 
00313 #if !UCONFIG_NO_BREAK_ITERATION
00314 
00359 U_DRAFT int32_t U_EXPORT2
00360 ucasemap_utf8ToTitle(UCaseMap *csm,
00361                     char *dest, int32_t destCapacity,
00362                     const char *src, int32_t srcLength,
00363                     UErrorCode *pErrorCode);
00364 
00365 #endif
00366 
00395 U_DRAFT int32_t U_EXPORT2
00396 ucasemap_utf8FoldCase(const UCaseMap *csm,
00397                       char *dest, int32_t destCapacity,
00398                       const char *src, int32_t srcLength,
00399                       UErrorCode *pErrorCode);
00400 
00401 #endif

Generated on 20 Mar 2013 for ICU 4.2.1 by  doxygen 1.4.7