PATH: //proc/self/root/usr/include/unicode
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 alphaindex.h
↓
X
📄 appendable.h
↓
X
📄 basictz.h
↓
X
📄 brkiter.h
↓
X
📄 bytestream.h
↓
X
📄 bytestrie.h
↓
X
📄 bytestriebuilder.h
↓
X
📄 calendar.h
↓
X
📄 caniter.h
↓
X
📄 casemap.h
↓
X
📄 char16ptr.h
↓
X
📄 chariter.h
↓
X
📄 choicfmt.h
↓
X
📄 coleitr.h
↓
X
📄 coll.h
↓
X
📄 compactdecimalformat.h
↓
X
📄 curramt.h
↓
X
📄 currpinf.h
↓
X
📄 currunit.h
↓
X
📄 datefmt.h
↓
X
📄 dbbi.h
↓
X
📄 dcfmtsym.h
↓
X
📄 decimfmt.h
↓
X
📄 docmain.h
↓
X
📄 dtfmtsym.h
↓
X
📄 dtintrv.h
↓
X
📄 dtitvfmt.h
↓
X
📄 dtitvinf.h
↓
X
📄 dtptngen.h
↓
X
📄 dtrule.h
↓
X
📄 edits.h
↓
X
📄 enumset.h
↓
X
📄 errorcode.h
↓
X
📄 fieldpos.h
↓
X
📄 filteredbrk.h
↓
X
📄 fmtable.h
↓
X
📄 format.h
↓
X
📄 formattedvalue.h
↓
X
📄 fpositer.h
↓
X
📄 gender.h
↓
X
📄 gregocal.h
↓
X
📄 icudataver.h
↓
X
📄 icuplug.h
↓
X
📄 idna.h
↓
X
📄 listformatter.h
↓
X
📄 localebuilder.h
↓
X
📄 localematcher.h
↓
X
📄 localpointer.h
↓
X
📄 locdspnm.h
↓
X
📄 locid.h
↓
X
📄 measfmt.h
↓
X
📄 measunit.h
↓
X
📄 measure.h
↓
X
📄 messagepattern.h
↓
X
📄 msgfmt.h
↓
X
📄 normalizer2.h
↓
X
📄 normlzr.h
↓
X
📄 nounit.h
↓
X
📄 numberformatter.h
↓
X
📄 numberrangeformatter.h
↓
X
📄 numfmt.h
↓
X
📄 numsys.h
↓
X
📄 parseerr.h
↓
X
📄 parsepos.h
↓
X
📄 platform.h
↓
X
📄 plurfmt.h
↓
X
📄 plurrule.h
↓
X
📄 ptypes.h
↓
X
📄 putil.h
↓
X
📄 rbbi.h
↓
X
📄 rbnf.h
↓
X
📄 rbtz.h
↓
X
📄 regex.h
↓
X
📄 region.h
↓
X
📄 reldatefmt.h
↓
X
📄 rep.h
↓
X
📄 resbund.h
↓
X
📄 schriter.h
↓
X
📄 scientificnumberformatter.h
↓
X
📄 search.h
↓
X
📄 selfmt.h
↓
X
📄 simpleformatter.h
↓
X
📄 simpletz.h
↓
X
📄 smpdtfmt.h
↓
X
📄 sortkey.h
↓
X
📄 std_string.h
↓
X
📄 strenum.h
↓
X
📄 stringoptions.h
↓
X
📄 stringpiece.h
↓
X
📄 stringtriebuilder.h
↓
X
📄 stsearch.h
↓
X
📄 symtable.h
↓
X
📄 tblcoll.h
↓
X
📄 timezone.h
↓
X
📄 tmunit.h
↓
X
📄 tmutamt.h
↓
X
📄 tmutfmt.h
↓
X
📄 translit.h
↓
X
📄 tzfmt.h
↓
X
📄 tznames.h
↓
X
📄 tzrule.h
↓
X
📄 tztrans.h
↓
X
📄 ubidi.h
↓
X
📄 ubiditransform.h
↓
X
📄 ubrk.h
↓
X
📄 ucal.h
↓
X
📄 ucasemap.h
↓
X
📄 ucat.h
↓
X
📄 uchar.h
↓
X
📄 ucharstrie.h
↓
X
📄 ucharstriebuilder.h
↓
X
📄 uchriter.h
↓
X
📄 uclean.h
↓
X
📄 ucnv.h
↓
X
📄 ucnv_cb.h
↓
X
📄 ucnv_err.h
↓
X
📄 ucnvsel.h
↓
X
📄 ucol.h
↓
X
📄 ucoleitr.h
↓
X
📄 uconfig.h
↓
X
📄 ucpmap.h
↓
X
📄 ucptrie.h
↓
X
📄 ucsdet.h
↓
X
📄 ucurr.h
↓
X
📄 udat.h
↓
X
📄 udata.h
↓
X
📄 udateintervalformat.h
↓
X
📄 udatpg.h
↓
X
📄 udisplaycontext.h
↓
X
📄 uenum.h
↓
X
📄 ufieldpositer.h
↓
X
📄 uformattable.h
↓
X
📄 uformattedvalue.h
↓
X
📄 ugender.h
↓
X
📄 uidna.h
↓
X
📄 uiter.h
↓
X
📄 uldnames.h
↓
X
📄 ulistformatter.h
↓
X
📄 uloc.h
↓
X
📄 ulocdata.h
↓
X
📄 umachine.h
↓
X
📄 umisc.h
↓
X
📄 umsg.h
↓
X
📄 umutablecptrie.h
↓
X
📄 unifilt.h
↓
X
📄 unifunct.h
↓
X
📄 unimatch.h
↓
X
📄 unirepl.h
↓
X
📄 uniset.h
↓
X
📄 unistr.h
↓
X
📄 unorm.h
↓
X
📄 unorm2.h
↓
X
📄 unum.h
↓
X
📄 unumberformatter.h
↓
X
📄 unumsys.h
↓
X
📄 uobject.h
↓
X
📄 upluralrules.h
↓
X
📄 uregex.h
↓
X
📄 uregion.h
↓
X
📄 ureldatefmt.h
↓
X
📄 urename.h
↓
X
📄 urep.h
↓
X
📄 ures.h
↓
X
📄 uscript.h
↓
X
📄 usearch.h
↓
X
📄 uset.h
↓
X
📄 usetiter.h
↓
X
📄 ushape.h
↓
X
📄 uspoof.h
↓
X
📄 usprep.h
↓
X
📄 ustdio.h
↓
X
📄 ustream.h
↓
X
📄 ustring.h
↓
X
📄 ustringtrie.h
↓
X
📄 utext.h
↓
X
📄 utf.h
↓
X
📄 utf16.h
↓
X
📄 utf32.h
↓
X
📄 utf8.h
↓
X
📄 utf_old.h
↓
X
📄 utmscale.h
↓
X
📄 utrace.h
↓
X
📄 utrans.h
↓
X
📄 utypes.h
↓
X
📄 uvernum.h
↓
X
📄 uversion.h
↓
X
📄 vtzone.h
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: ucasemap.h
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * * Copyright (C) 2005-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: ucasemap.h * encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * * created on: 2005may06 * created by: Markus W. Scherer * * Case mapping service object and functions using it. */ #ifndef __UCASEMAP_H__ #define __UCASEMAP_H__ #include "unicode/utypes.h" #include "unicode/localpointer.h" #include "unicode/stringoptions.h" #include "unicode/ustring.h" /** * \file * \brief C API: Unicode case mapping functions using a UCaseMap service object. * * The service object takes care of memory allocations, data loading, and setup * for the attributes, as usual. * * Currently, the functionality provided here does not overlap with uchar.h * and ustring.h, except for ucasemap_toTitle(). * * ucasemap_utf8XYZ() functions operate directly on UTF-8 strings. */ /** * UCaseMap is an opaque service object for newer ICU case mapping functions. * Older functions did not use a service object. * @stable ICU 3.4 */ struct UCaseMap; typedef struct UCaseMap UCaseMap; /**< C typedef for struct UCaseMap. @stable ICU 3.4 */ /** * Open a UCaseMap service object for a locale and a set of options. * The locale ID and options are preprocessed so that functions using the * service object need not process them in each call. * * @param locale ICU locale ID, used for language-dependent * upper-/lower-/title-casing according to the Unicode standard. * Usual semantics: ""=root, NULL=default locale, etc. * @param options Options bit set, used for case folding and string comparisons. * Same flags as for u_foldCase(), u_strFoldCase(), * u_strCaseCompare(), etc. * Use 0 or U_FOLD_CASE_DEFAULT for default behavior. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * @return Pointer to a UCaseMap service object, if successful. * * @see U_FOLD_CASE_DEFAULT * @see U_FOLD_CASE_EXCLUDE_SPECIAL_I * @see U_TITLECASE_NO_LOWERCASE * @see U_TITLECASE_NO_BREAK_ADJUSTMENT * @stable ICU 3.4 */ U_STABLE UCaseMap * U_EXPORT2 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode); /** * Close a UCaseMap service object. * @param csm Object to be closed. * @stable ICU 3.4 */ U_STABLE void U_EXPORT2 ucasemap_close(UCaseMap *csm); #if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** * \class LocalUCaseMapPointer * "Smart pointer" class, closes a UCaseMap via ucasemap_close(). * For most methods see the LocalPointerBase base class. * * @see LocalPointerBase * @see LocalPointer * @stable ICU 4.4 */ U_DEFINE_LOCAL_OPEN_POINTER(LocalUCaseMapPointer, UCaseMap, ucasemap_close); U_NAMESPACE_END #endif /** * Get the locale ID that is used for language-dependent case mappings. * @param csm UCaseMap service object. * @return locale ID * @stable ICU 3.4 */ U_STABLE const char * U_EXPORT2 ucasemap_getLocale(const UCaseMap *csm); /** * Get the options bit set that is used for case folding and string comparisons. * @param csm UCaseMap service object. * @return options bit set * @stable ICU 3.4 */ U_STABLE uint32_t U_EXPORT2 ucasemap_getOptions(const UCaseMap *csm); /** * Set the locale ID that is used for language-dependent case mappings. * * @param csm UCaseMap service object. * @param locale Locale ID, see ucasemap_open(). * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * * @see ucasemap_open * @stable ICU 3.4 */ U_STABLE void U_EXPORT2 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode); /** * Set the options bit set that is used for case folding and string comparisons. * * @param csm UCaseMap service object. * @param options Options bit set, see ucasemap_open(). * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * * @see ucasemap_open * @stable ICU 3.4 */ U_STABLE void U_EXPORT2 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode); #if !UCONFIG_NO_BREAK_ITERATION /** * Get the break iterator that is used for titlecasing. * Do not modify the returned break iterator. * @param csm UCaseMap service object. * @return titlecasing break iterator * @stable ICU 3.8 */ U_STABLE const UBreakIterator * U_EXPORT2 ucasemap_getBreakIterator(const UCaseMap *csm); /** * Set the break iterator that is used for titlecasing. * The UCaseMap service object releases a previously set break iterator * and "adopts" this new one, taking ownership of it. * It will be released in a subsequent call to ucasemap_setBreakIterator() * or ucasemap_close(). * * Break iterator operations are not thread-safe. Therefore, titlecasing * functions use non-const UCaseMap objects. It is not possible to titlecase * strings concurrently using the same UCaseMap. * * @param csm UCaseMap service object. * @param iterToAdopt Break iterator to be adopted for titlecasing. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * * @see ucasemap_toTitle * @see ucasemap_utf8ToTitle * @stable ICU 3.8 */ U_STABLE void U_EXPORT2 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode); /** * Titlecase a UTF-16 string. This function is almost a duplicate of u_strToTitle(), * except that it takes ucasemap_setOptions() into account and has performance * advantages from being able to use a UCaseMap object for multiple case mapping * operations, saving setup time. * * Casing is locale-dependent and context-sensitive. * Titlecasing uses a break iterator to find the first characters of words * that are to be titlecased. It titlecases those characters and lowercases * all others. (This can be modified with ucasemap_setOptions().) * * Note: This function takes a non-const UCaseMap pointer because it will * open a default break iterator if no break iterator was set yet, * and effectively call ucasemap_setBreakIterator(); * also because the break iterator is stateful and will be modified during * the iteration. * * The titlecase break iterator can be provided to customize for arbitrary * styles, using rules and dictionaries beyond the standard iterators. * The standard titlecase iterator for the root locale implements the * algorithm of Unicode TR 21. * * This function uses only the setText(), first() and next() methods of the * provided break iterator. * * The result may be longer or shorter than the original. * The source string and the destination buffer must not overlap. * * @param csm UCaseMap service object. This pointer is non-const! * See the note above for details. * @param dest A buffer for the result string. The result will be NUL-terminated if * the buffer is large enough. * The contents is undefined in case of failure. * @param 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. * @param src The original string. * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * @return The length of the result string, if successful - or in case of a buffer overflow, * in which case it will be greater than destCapacity. * * @see u_strToTitle * @stable ICU 3.8 */ U_STABLE int32_t U_EXPORT2 ucasemap_toTitle(UCaseMap *csm, UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode); #endif // UCONFIG_NO_BREAK_ITERATION /** * Lowercase the characters in a UTF-8 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 must not overlap. * * @param csm UCaseMap service object. * @param dest A buffer for the result string. The result will be NUL-terminated if * the buffer is large enough. * The contents is undefined in case of failure. * @param destCapacity The size of the buffer (number of bytes). 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. * @param src The original string. * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * @return The length of the result string, if successful - or in case of a buffer overflow, * in which case it will be greater than destCapacity. * * @see u_strToLower * @stable ICU 3.4 */ U_STABLE int32_t U_EXPORT2 ucasemap_utf8ToLower(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode); /** * Uppercase the characters in a UTF-8 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 must not overlap. * * @param csm UCaseMap service object. * @param dest A buffer for the result string. The result will be NUL-terminated if * the buffer is large enough. * The contents is undefined in case of failure. * @param destCapacity The size of the buffer (number of bytes). 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. * @param src The original string. * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * @return The length of the result string, if successful - or in case of a buffer overflow, * in which case it will be greater than destCapacity. * * @see u_strToUpper * @stable ICU 3.4 */ U_STABLE int32_t U_EXPORT2 ucasemap_utf8ToUpper(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode); #if !UCONFIG_NO_BREAK_ITERATION /** * Titlecase a UTF-8 string. * Casing is locale-dependent and context-sensitive. * Titlecasing uses a break iterator to find the first characters of words * that are to be titlecased. It titlecases those characters and lowercases * all others. (This can be modified with ucasemap_setOptions().) * * Note: This function takes a non-const UCaseMap pointer because it will * open a default break iterator if no break iterator was set yet, * and effectively call ucasemap_setBreakIterator(); * also because the break iterator is stateful and will be modified during * the iteration. * * The titlecase break iterator can be provided to customize for arbitrary * styles, using rules and dictionaries beyond the standard iterators. * The standard titlecase iterator for the root locale implements the * algorithm of Unicode TR 21. * * This function uses only the setUText(), first(), next() and close() methods of the * provided break iterator. * * The result may be longer or shorter than the original. * The source string and the destination buffer must not overlap. * * @param csm UCaseMap service object. This pointer is non-const! * See the note above for details. * @param dest A buffer for the result string. The result will be NUL-terminated if * the buffer is large enough. * The contents is undefined in case of failure. * @param destCapacity The size of the buffer (number of bytes). 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. * @param src The original string. * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * @return The length of the result string, if successful - or in case of a buffer overflow, * in which case it will be greater than destCapacity. * * @see u_strToTitle * @see U_TITLECASE_NO_LOWERCASE * @see U_TITLECASE_NO_BREAK_ADJUSTMENT * @stable ICU 3.8 */ U_STABLE int32_t U_EXPORT2 ucasemap_utf8ToTitle(UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode); #endif /** * Case-folds the characters in a UTF-8 string. * * Case-folding is locale-independent and not context-sensitive, * but there is an option for whether to include or exclude mappings for dotted I * and dotless i that are marked with 'T' in CaseFolding.txt. * * The result may be longer or shorter than the original. * The source string and the destination buffer must not overlap. * * @param csm UCaseMap service object. * @param dest A buffer for the result string. The result will be NUL-terminated if * the buffer is large enough. * The contents is undefined in case of failure. * @param destCapacity The size of the buffer (number of bytes). 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. * @param src The original string. * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. * @param pErrorCode Must be a valid pointer to an error code value, * which must not indicate a failure before the function call. * @return The length of the result string, if successful - or in case of a buffer overflow, * in which case it will be greater than destCapacity. * * @see u_strFoldCase * @see ucasemap_setOptions * @see U_FOLD_CASE_DEFAULT * @see U_FOLD_CASE_EXCLUDE_SPECIAL_I * @stable ICU 3.8 */ U_STABLE int32_t U_EXPORT2 ucasemap_utf8FoldCase(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode); #endif
SIMPAN PERUBAHAN