Loading...
Searching...
No Matches
umachine.h File Reference

Basic types and constants for UTF. More...

`#include "unicode/ptypes.h"`
`#include <stdbool.h>`
`#include <stddef.h>`
`#include "unicode/urename.h"`

Go to the source code of this file.

## Macros

#define | U_CFUNC extern
| This is used in a declaration of a library private ICU C function.
#define | U_CDECL_BEGIN
| This is used to begin a declaration of a library private ICU C API.
#define | U_CDECL_END
| This is used to end a declaration of a library private ICU C API.
#define | U_ATTRIBUTE_DEPRECATED
| This is used for GCC specific attributes.
#define | U_CAPI U_CFUNC U_EXPORT
| This is used to declare a function as a public ICU C API.
#define | U_STABLE U_CAPI
| Obsolete/same as U_CAPI; was used to declare a function as a stable public ICU C API.
#define | U_DRAFT U_CAPI
| Obsolete/same as U_CAPI; was used to declare a function as a draft public ICU C API.
#define | U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED
| This is used to declare a function as a deprecated public ICU C API.
#define | U_OBSOLETE U_CAPI
| Obsolete/same as U_CAPI; was used to declare a function as an obsolete public ICU C API.
#define | U_INTERNAL U_CAPI
| Obsolete/same as U_CAPI; was used to declare a function as an internal ICU C API.
#define | U_FORCE_INLINE inline
| Forces function inlining on compilers that are known to support it.
#define | UPRV_BLOCK_MACRO_BEGIN do
| Defined as the "do" keyword by default.
#define | UPRV_BLOCK_MACRO_END while (false)
| Defined as "while (false)" by default.
#define | INT8_MIN ((int8_t)(-128))
| The smallest value an 8 bit signed integer can hold.
#define | INT16_MIN ((int16_t)(-32767-1))
| The smallest value a 16 bit signed integer can hold.
#define | INT32_MIN ((int32_t)(-2147483647-1))
| The smallest value a 32 bit signed integer can hold.
#define | INT8_MAX ((int8_t)(127))
| The largest value an 8 bit signed integer can hold.
#define | INT16_MAX ((int16_t)(32767))
| The largest value a 16 bit signed integer can hold.
#define | INT32_MAX ((int32_t)(2147483647))
| The largest value a 32 bit signed integer can hold.
#define | UINT8_MAX ((uint8_t)(255U))
| The largest value an 8 bit unsigned integer can hold.
#define | UINT16_MAX ((uint16_t)(65535U))
| The largest value a 16 bit unsigned integer can hold.
#define | UINT32_MAX ((uint32_t)(4294967295U))
| The largest value a 32 bit unsigned integer can hold.
#define | INT64_C(c)
| Provides a platform independent way to specify a signed 64-bit integer constant.
#define | UINT64_C(c)
| Provides a platform independent way to specify an unsigned 64-bit integer constant.
#define | U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1))
| The smallest value a 64 bit signed integer can hold.
#define | U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807)))
| The largest value a 64 bit signed integer can hold.
#define | U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615)))
| The largest value a 64 bit unsigned integer can hold.
#define | U_DEFINE_FALSE_AND_TRUE 0
| Normally turns off defining macros FALSE=0 & TRUE=1 in public ICU headers.
#define | TRUE 1
| The TRUE value of a UBool.
#define | FALSE 0
| The FALSE value of a UBool.
#define | U_SIZEOF_UCHAR 2
| Number of bytes in a UChar (always 2).
#define | U_CHAR16_IS_TYPEDEF 0
| If 1, then char16_t is a typedef and not a real type (yet).
#define | U_SENTINEL (-1)
| This value is intended for sentinel values for APIs that (take or) return single code points (UChar32).

## Typedefs

typedef int8_t | UBool
| The ICU boolean type, a signed-byte integer.
typedef char16_t | UChar
| The base type for UTF-16 code units and pointers.
typedef uint16_t | OldUChar
| Default ICU 58 definition of UChar.
typedef int32_t | UChar32
| Define UChar32 as a type for single Unicode code points.

## Detailed Description

Basic types and constants for UTF.

## Basic types and constants for UTF

This file defines basic types and constants for utf.h to be platform-independent. umachine.h and utf.h are included into utypes.h to provide all the general definitions for ICU. All of these definitions used to be in utypes.h before the UTF-handling macros made this unmaintainable.

Definition in file umachine.h.

## Macro Definition Documentation

## FALSE

#define FALSE 0

The FALSE value of a UBool.

Deprecated
  ICU 68 Use standard "false" instead.

Definition at line 305 of file umachine.h.

## INT16_MAX

#define INT16_MAX ((int16_t)(32767))

The largest value a 16 bit signed integer can hold.

Stable
  ICU 2.0

Definition at line 204 of file umachine.h.

## INT16_MIN

#define INT16_MIN ((int16_t)(-32767-1))

The smallest value a 16 bit signed integer can hold.

Stable
  ICU 2.0

Definition at line 191 of file umachine.h.

## INT32_MAX

#define INT32_MAX ((int32_t)(2147483647))

The largest value a 32 bit signed integer can hold.

Stable
  ICU 2.0

Definition at line 208 of file umachine.h.

Referenced by icu::SimpleFormatter::applyPattern(), icu::UnicodeString::countChar32(), icu::UnicodeString::findAndReplace(), icu::UnicodeString::remove(), and icu::UnicodeString::tempSubString().

## INT32_MIN

#define INT32_MIN ((int32_t)(-2147483647-1))

The smallest value a 32 bit signed integer can hold.

Stable
  ICU 2.0

Definition at line 195 of file umachine.h.

## INT64_C

#define INT64_C | ( |  | c | ) |

Value:
c ## LL

Provides a platform independent way to specify a signed 64-bit integer constant.

note: may be wrong for some 64 bit platforms - ensure your compiler provides INT64_C

Stable
  ICU 2.8

Definition at line 233 of file umachine.h.

## INT8_MAX

#define INT8_MAX ((int8_t)(127))

The largest value an 8 bit signed integer can hold.

Stable
  ICU 2.0

Definition at line 200 of file umachine.h.

## INT8_MIN

#define INT8_MIN ((int8_t)(-128))

The smallest value an 8 bit signed integer can hold.

Stable
  ICU 2.0

Definition at line 187 of file umachine.h.

## TRUE

#define TRUE 1

The TRUE value of a UBool.

Deprecated
  ICU 68 Use standard "true" instead.

Definition at line 297 of file umachine.h.

## U_ATTRIBUTE_DEPRECATED

#define U_ATTRIBUTE_DEPRECATED

This is used for GCC specific attributes.

Internal
  Do not use. This API is for internal use only.

Definition at line 105 of file umachine.h.

## U_CAPI

#define U_CAPI U_CFUNC U_EXPORT

This is used to declare a function as a public ICU C API.

Stable
  ICU 2.0

Definition at line 110 of file umachine.h.

Referenced by pl_addFontRun(), pl_addValueRun(), pl_close(), pl_closeFontRuns(), pl_closeLine(), pl_closeLocaleRuns(), pl_closeValueRuns(), pl_countLineRuns(), pl_create(), pl_getAscent(), pl_getDescent(), pl_getFontRunCount(), pl_getFontRunFont(), pl_getFontRunLastLimit(), pl_getFontRunLimit(), pl_getLeading(), pl_getLineAscent(), pl_getLineDescent(), pl_getLineLeading(), pl_getLineVisualRun(), pl_getLineWidth(), pl_getLocaleRunCount(), pl_getLocaleRunLastLimit(), pl_getLocaleRunLimit(), pl_getLocaleRunLocale(), pl_getParagraphLevel(), pl_getTextDirection(), pl_getValueRunCount(), pl_getValueRunLastLimit(), pl_getValueRunLimit(), pl_getValueRunValue(), pl_getVisualRunAscent(), pl_getVisualRunDescent(), pl_getVisualRunDirection(), pl_getVisualRunFont(), pl_getVisualRunGlyphCount(), pl_getVisualRunGlyphs(), pl_getVisualRunGlyphToCharMap(), pl_getVisualRunPositions(), pl_isComplex(), pl_nextLine(), pl_openEmptyFontRuns(), pl_openEmptyLocaleRuns(), pl_openEmptyValueRuns(), pl_openFontRuns(), pl_openLocaleRuns(), pl_openValueRuns(), pl_reflow(), pl_resetFontRuns(), pl_resetLocaleRuns(), pl_resetValueRuns(), u_austrcpy(), u_austrncpy(), u_catclose(), u_catopen(), u_charAge(), u_charDigitValue(), u_charDirection(), u_charMirror(), u_charsToUChars(), u_countChar32(), u_digit(), u_enumCharNames(), u_enumCharTypes(), u_fadopt(), u_feof(), u_fflush(), u_fgetc(), u_fgetcodepage(), u_fgetConverter(), u_fgetcx(), u_fgetfile(), u_fgetlocale(), u_fgetNumberFormat(), u_fgets(), u_file_read(), u_file_write(), u_finit(), u_foldCase(), u_fopen(), u_fopen_u(), u_forDigit(), u_formatMessage(), u_formatMessageWithError(), u_fprintf(), u_fprintf_u(), u_fputc(), u_fputs(), u_frewind(), u_fscanf(), u_fscanf_u(), u_fsetlocale(), u_fsettransliterator(), u_fstropen(), u_fungetc(), u_get_stdout(), u_getBidiPairedBracket(), u_getBinaryPropertySet(), u_getCombiningClass(), u_getDataDirectory(), u_getDataVersion(), u_getIDTypes(), u_getIntPropertyMap(), u_getIntPropertyMaxValue(), u_getIntPropertyMinValue(), u_getIntPropertyValue(), u_getISOComment(), u_getPropertyEnum(), u_getPropertyName(), u_getPropertyValueEnum(), u_getPropertyValueName(), u_getTimeZoneFilesDirectory(), u_getUnicodeVersion(), u_hasBinaryProperty(), u_hasIDType(), u_init(), u_isalnum(), u_isalpha(), u_isbase(), u_isblank(), u_iscntrl(), u_isdefined(), u_isdigit(), u_isgraph(), u_isIDIgnorable(), u_isIDPart(), u_isIDStart(), u_isISOControl(), u_isJavaIDPart(), u_isJavaIDStart(), u_isJavaSpaceChar(), u_islower(), u_isMirrored(), u_isprint(), u_ispunct(), u_isspace(), u_istitle(), u_isUAlphabetic(), u_isULowercase(), u_isupper(), u_isUUppercase(), u_isUWhiteSpace(), u_isWhitespace(), u_isxdigit(), u_memcasecmp(), u_memchr(), u_memchr32(), u_memcmp(), u_memcmpCodePointOrder(), u_memcpy(), u_memmove(), u_memrchr(), u_memset(), u_parseMessage(), u_parseMessageWithError(), u_printf(), u_printf_u(), u_setDataDirectory(), u_setTimeZoneFilesDirectory(), u_snprintf(), u_snprintf_u(), u_sprintf(), u_sprintf_u(), u_sscanf(), u_sscanf_u(), u_strcasecmp(), u_strCaseCompare(), u_strcat(), u_strchr(), u_strchr32(), u_strcmp(), u_strcmpCodePointOrder(), u_strCompare(), u_strCompareIter(), u_strcpy(), u_strcspn(), u_strFindFirst(), u_strFindLast(), u_strFoldCase(), u_strFromUTF32(), u_strFromUTF32WithSub(), u_strFromUTF8(), u_strFromUTF8Lenient(), u_strFromUTF8WithSub(), u_strFromWCS(), u_strHasMoreChar32Than(), u_stringHasBinaryProperty(), u_strlen(), u_strncasecmp(), u_strncat(), u_strncmp(), u_strncmpCodePointOrder(), u_strpbrk(), u_strrchr(), u_strrchr32(), u_strrstr(), u_strspn(), u_strstr(), u_strToJavaModifiedUTF8(), u_strtok_r(), u_strToLower(), u_strToTitle(), u_strToUpper(), u_strToUTF32(), u_strToUTF32WithSub(), u_strToUTF8(), u_strToUTF8WithSub(), u_strToWCS(), u_tolower(), u_totitle(), u_toupper(), u_uastrcpy(), u_uastrncpy(), u_unescapeAt(), u_versionFromString(), u_versionFromUString(), u_versionToString(), u_vformatMessage(), u_vformatMessageWithError(), u_vfprintf(), u_vfprintf_u(), u_vfscanf(), u_vfscanf_u(), u_vparseMessage(), u_vsnprintf(), u_vsnprintf_u(), u_vsprintf(), u_vsprintf_u(), u_vsscanf(), ubidi_countParagraphs(), ubidi_countRuns(), ubidi_getBaseDirection(), ubidi_getClassCallback(), ubidi_getCustomizedClass(), ubidi_getDirection(), ubidi_getLength(), ubidi_getLevelAt(), ubidi_getLevels(), ubidi_getLogicalIndex(), ubidi_getLogicalMap(), ubidi_getLogicalRun(), ubidi_getParagraph(), ubidi_getParagraphByIndex(), ubidi_getParaLevel(), ubidi_getProcessedLength(), ubidi_getReorderingOptions(), ubidi_getText(), ubidi_getVisualIndex(), ubidi_getVisualMap(), ubidi_getVisualRun(), ubidi_isInverse(), ubidi_open(), ubidi_openSized(), ubidi_orderParagraphsLTR(), ubidi_reorderLogical(), ubidi_reorderVisual(), ubidi_setClassCallback(), ubidi_setContext(), ubidi_setInverse(), ubidi_setLine(), ubidi_setPara(), ubidi_setReorderingMode(), ubidi_setReorderingOptions(), ubidi_writeReordered(), ubiditransform_open(), ubiditransform_transform(), ublock_getCode(), ubrk_countAvailable(), ubrk_current(), ubrk_first(), ubrk_following(), ubrk_getAvailable(), ubrk_getLocaleByType(), ubrk_getRuleStatus(), ubrk_getRuleStatusVec(), ubrk_isBoundary(), ubrk_last(), ubrk_next(), ubrk_open(), ubrk_openRules(), ubrk_preceding(), ubrk_previous(), ubrk_refreshUText(), ubrk_safeClone(), ubrk_setText(), ubrk_setUText(), ucal_add(), ucal_clearField(), ucal_clone(), ucal_countAvailable(), ucal_equivalentTo(), ucal_get(), ucal_getAttribute(), ucal_getAvailable(), ucal_getCanonicalTimeZoneID(), ucal_getDayOfWeekType(), ucal_getDefaultTimeZone(), ucal_getDSTSavings(), ucal_getHostTimeZone(), ucal_getIanaTimeZoneID(), ucal_getLimit(), ucal_getLocaleByType(), ucal_getMillis(), ucal_getNow(), ucal_getTimeZoneDisplayName(), ucal_getTimeZoneTransitionDate(), ucal_getType(), ucal_getTZDataVersion(), ucal_getWeekendTransition(), ucal_getWindowsTimeZoneID(), ucal_inDaylightTime(), ucal_isSet(), ucal_isWeekend(), ucal_open(), ucal_openCountryTimeZones(), ucal_openTimeZoneIDEnumeration(), ucal_openTimeZones(), ucal_roll(), ucal_set(), ucal_setAttribute(), ucal_setDate(), ucal_setDateTime(), ucal_setDefaultTimeZone(), ucal_setGregorianChange(), ucal_setMillis(), ucal_setTimeZone(), ucasemap_getBreakIterator(), ucasemap_getLocale(), ucasemap_getOptions(), ucasemap_open(), ucasemap_setBreakIterator(), ucasemap_setLocale(), ucasemap_setOptions(), ucasemap_toTitle(), ucasemap_utf8ToLower(), ucasemap_utf8ToTitle(), ucasemap_utf8ToUpper(), ucfpos_close(), ucfpos_constrainCategory(), ucfpos_constrainField(), ucfpos_getCategory(), ucfpos_getField(), ucfpos_getIndexes(), ucfpos_getInt64IterationContext(), ucfpos_matchesField(), ucfpos_open(), ucfpos_reset(), ucfpos_setInt64IterationContext(), ucnv_cbFromUWriteBytes(), ucnv_cbFromUWriteUChars(), ucnv_cbToUWriteSub(), ucnv_cbToUWriteUChars(), ucnv_clone(), ucnv_compareNames(), ucnv_convert(), ucnv_convertEx(), ucnv_countAliases(), ucnv_countAvailable(), ucnv_countStandards(), ucnv_detectUnicodeSignature(), ucnv_fixFileSeparator(), ucnv_flushCache(), UCNV_FROM_U_CALLBACK_ESCAPE(), UCNV_FROM_U_CALLBACK_SKIP(), UCNV_FROM_U_CALLBACK_STOP(), UCNV_FROM_U_CALLBACK_SUBSTITUTE(), ucnv_fromAlgorithmic(), ucnv_fromUChars(), ucnv_fromUCountPending(), ucnv_fromUnicode(), ucnv_getAlias(), ucnv_getAliases(), ucnv_getAvailableName(), ucnv_getCanonicalName(), ucnv_getCCSID(), ucnv_getDefaultName(), ucnv_getDisplayName(), ucnv_getFromUCallBack(), ucnv_getInvalidChars(), ucnv_getInvalidUChars(), ucnv_getMinCharSize(), ucnv_getName(), ucnv_getNextUChar(), ucnv_getPlatform(), ucnv_getStandard(), ucnv_getStandardName(), ucnv_getSubstChars(), ucnv_getToUCallBack(), ucnv_getType(), ucnv_getUnicodeSet(), ucnv_isAmbiguous(), ucnv_open(), ucnv_openAllNames(), ucnv_openCCSID(), ucnv_openStandardNames(), ucnv_openU(), ucnv_reset(), ucnv_resetFromUnicode(), ucnv_resetToUnicode(), ucnv_setDefaultName(), ucnv_setFallback(), ucnv_setFromUCallBack(), ucnv_setSubstChars(), ucnv_setSubstString(), ucnv_setToUCallBack(), UCNV_TO_U_CALLBACK_ESCAPE(), UCNV_TO_U_CALLBACK_SKIP(), UCNV_TO_U_CALLBACK_STOP(), UCNV_TO_U_CALLBACK_SUBSTITUTE(), ucnv_toAlgorithmic(), ucnv_toUChars(), ucnv_toUCountPending(), ucnv_toUnicode(), ucnv_usesFallback(), ucnvsel_open(), ucnvsel_openFromSerialized(), ucnvsel_selectForString(), ucnvsel_serialize(), ucol_clone(), ucol_cloneBinary(), ucol_closeElements(), ucol_countAvailable(), ucol_equal(), ucol_getAttribute(), ucol_getAvailable(), ucol_getBound(), ucol_getContractions(), ucol_getContractionsAndExpansions(), ucol_getDisplayName(), ucol_getEquivalentReorderCodes(), ucol_getFunctionalEquivalent(), ucol_getKeywords(), ucol_getKeywordValues(), ucol_getKeywordValuesForLocale(), ucol_getLocale(), ucol_getLocaleByType(), ucol_getMaxExpansion(), ucol_getOffset(), ucol_getReorderCodes(), ucol_getSortKey(), ucol_getStrength(), ucol_getTailoredSet(), ucol_getUCAVersion(), ucol_getUnsafeSet(), ucol_getVariableTop(), ucol_getVersion(), ucol_greater(), ucol_greaterOrEqual(), ucol_keyHashCode(), ucol_mergeSortkeys(), ucol_next(), ucol_normalizeShortDefinitionString(), ucol_open(), ucol_openAvailableLocales(), ucol_openElements(), ucol_prepareShortStringOpen(), ucol_previous(), ucol_primaryOrder(), ucol_reset(), ucol_secondaryOrder(), ucol_setAttribute(), ucol_setMaxVariable(), ucol_setOffset(), ucol_setReorderCodes(), ucol_setStrength(), ucol_setText(), ucol_strcoll(), ucol_strcollIter(), ucol_strcollUTF8(), ucptrie_close(), ucptrie_get(), ucptrie_getRange(), ucptrie_getType(), ucptrie_getValueWidth(), ucptrie_openFromBinary(), ucsdet_detect(), ucsdet_detectAll(), ucsdet_enableInputFilter(), ucsdet_getAllDetectableCharsets(), ucsdet_getConfidence(), ucsdet_getDetectableCharsets(), ucsdet_getLanguage(), ucsdet_getName(), ucsdet_getUChars(), ucsdet_isInputFilterEnabled(), ucsdet_open(), ucsdet_setDeclaredEncoding(), ucsdet_setText(), ucurr_countCurrencies(), ucurr_forLocaleAndDate(), ucurr_getDefaultFractionDigits(), ucurr_getDefaultFractionDigitsForUsage(), ucurr_getKeywordValuesForLocale(), ucurr_getName(), ucurr_getPluralName(), ucurr_getRoundingIncrement(), ucurr_isAvailable(), ucurr_openISOCurrencies(), ucurr_register(), ucurr_unregister(), udat_adoptNumberFormat(), udat_adoptNumberFormatForFields(), udat_clone(), udat_countAvailable(), udat_countSymbols(), udat_format(), udat_formatCalendar(), udat_formatCalendarForFields(), udat_formatForFields(), udat_get2DigitYearStart(), udat_getAvailable(), udat_getBooleanAttribute(), udat_getCalendar(), udat_getContext(), udat_getLocaleByType(), udat_getNumberFormat(), udat_getNumberFormatForField(), udat_getSymbols(), udat_isLenient(), udat_open(), udat_parse(), udat_parseCalendar(), udat_registerOpener(), udat_set2DigitYearStart(), udat_setCalendar(), udat_setContext(), udat_setLenient(), udat_setNumberFormat(), udat_setSymbols(), udat_toCalendarDateField(), udat_toPattern(), udat_toPatternRelativeDate(), udat_toPatternRelativeTime(), udata_close(), udata_getInfo(), udata_getMemory(), udata_open(), udata_openChoice(), udata_setCommonData(), udatpg_addPattern(), udatpg_clone(), udatpg_getAppendItemFormat(), udatpg_getAppendItemName(), udatpg_getBaseSkeleton(), udatpg_getBestPattern(), udatpg_getBestPatternWithOptions(), udatpg_getDateTimeFormat(), udatpg_getDateTimeFormatForStyle(), udatpg_getDecimal(), udatpg_getFieldDisplayName(), udatpg_getPatternForSkeleton(), udatpg_getSkeleton(), udatpg_open(), udatpg_openBaseSkeletons(), udatpg_openEmpty(), udatpg_openSkeletons(), udatpg_replaceFieldTypes(), udatpg_replaceFieldTypesWithOptions(), udatpg_setAppendItemFormat(), udatpg_setAppendItemName(), udatpg_setDateTimeFormat(), udatpg_setDateTimeFormatForStyle(), udatpg_setDecimal(), udispopt_getGrammaticalCaseIdentifier(), udispopt_getNounClassIdentifier(), udispopt_getPluralCategoryIdentifier(), udtitvfmt_close(), udtitvfmt_format(), udtitvfmt_formatCalendarToResult(), udtitvfmt_formatToResult(), udtitvfmt_open(), udtitvfmt_openResult(), udtitvfmt_resultAsValue(), udtitvfmt_setContext(), uenum_count(), uenum_next(), uenum_openFromStringEnumeration(), uenum_openUCharStringsEnumeration(), uenum_reset(), uenum_unext(), ufieldpositer_open(), ufmt_getArrayItemByIndex(), ufmt_getArrayLength(), ufmt_getDate(), ufmt_getDouble(), ufmt_getInt64(), ufmt_getLong(), ufmt_getObject(), ufmt_getType(), ufmt_getUChars(), ufmt_isNumeric(), ufmt_open(), ufmtval_getString(), ugender_getInstance(), uidna_labelToASCII(), uidna_labelToASCII_UTF8(), uidna_labelToUnicode(), uidna_labelToUnicodeUTF8(), uidna_nameToASCII(), uidna_nameToASCII_UTF8(), uidna_nameToUnicode(), uidna_openUTS46(), uiter_current32(), uiter_getState(), uiter_next32(), uiter_previous32(), uiter_setCharacterIterator(), uiter_setState(), uiter_setString(), uiter_setUTF16BE(), uiter_setUTF8(), uldn_getDialectHandling(), uldn_getLocale(), uldn_keyDisplayName(), uldn_keyValueDisplayName(), uldn_languageDisplayName(), uldn_localeDisplayName(), uldn_open(), uldn_openForContext(), uldn_regionDisplayName(), uldn_scriptCodeDisplayName(), uldn_scriptDisplayName(), uldn_variantDisplayName(), ulistfmt_close(), ulistfmt_format(), ulistfmt_open(), ulistfmt_openForType(), ulistfmt_openResult(), ulistfmt_resultAsValue(), uloc_acceptLanguage(), uloc_acceptLanguageFromHTTP(), uloc_addLikelySubtags(), uloc_canonicalize(), uloc_countAvailable(), uloc_forLanguageTag(), uloc_getBaseName(), uloc_getCharacterOrientation(), uloc_getCountry(), uloc_getDefault(), uloc_getDisplayCountry(), uloc_getDisplayKeyword(), uloc_getDisplayKeywordValue(), uloc_getDisplayLanguage(), uloc_getDisplayName(), uloc_getDisplayScript(), uloc_getDisplayVariant(), uloc_getISO3Country(), uloc_getISO3Language(), uloc_getISOCountries(), uloc_getISOLanguages(), uloc_getKeywordValue(), uloc_getLanguage(), uloc_getLCID(), uloc_getLocaleForLCID(), uloc_getName(), uloc_getParent(), uloc_getScript(), uloc_getVariant(), uloc_minimizeSubtags(), uloc_openAvailableByType(), uloc_openKeywords(), uloc_setDefault(), uloc_setKeywordValue(), uloc_toLanguageTag(), uloc_toLegacyKey(), uloc_toUnicodeLocaleKey(), uloc_toUnicodeLocaleType(), ulocale_close(), ulocale_getBaseName(), ulocale_getKeywords(), ulocale_getKeywordValue(), ulocale_getLanguage(), ulocale_getLocaleID(), ulocale_getRegion(), ulocale_getScript(), ulocale_getUnicodeKeywords(), ulocale_getVariant(), ulocale_isBogus(), ulocale_openForLanguageTag(), ulocale_openForLocaleID(), ulocbld_addUnicodeLocaleAttribute(), ulocbld_adoptULocale(), ulocbld_buildLanguageTag(), ulocbld_buildLocaleID(), ulocbld_buildULocale(), ulocbld_clear(), ulocbld_clearExtensions(), ulocbld_close(), ulocbld_open(), ulocbld_removeUnicodeLocaleAttribute(), ulocbld_setExtension(), ulocbld_setLanguage(), ulocbld_setLanguageTag(), ulocbld_setLocale(), ulocbld_setRegion(), ulocbld_setScript(), ulocbld_setUnicodeLocaleKeyword(), ulocbld_setVariant(), ulocdata_getCLDRVersion(), ulocdata_getExemplarSet(), ulocdata_getLocaleDisplayPattern(), ulocdata_getMeasurementSystem(), ulocdata_getNoSubstitute(), ulocdata_getPaperSize(), ulocdata_open(), ulocdata_setNoSubstitute(), icu::umeas_getPrefixBase(), icu::umeas_getPrefixPower(), umsg_applyPattern(), umsg_clone(), umsg_format(), umsg_getLocale(), umsg_open(), umsg_parse(), umsg_setLocale(), umsg_toPattern(), umsg_vformat(), umsg_vparse(), umutablecptrie_clone(), umutablecptrie_close(), umutablecptrie_fromUCPMap(), umutablecptrie_fromUCPTrie(), umutablecptrie_get(), umutablecptrie_getRange(), umutablecptrie_open(), umutablecptrie_set(), umutablecptrie_setRange(), unorm2_append(), unorm2_composePair(), unorm2_getCombiningClass(), unorm2_getDecomposition(), unorm2_getInstance(), unorm2_getNFCInstance(), unorm2_getNFDInstance(), unorm2_getNFKCCasefoldInstance(), unorm2_getNFKCInstance(), unorm2_getNFKCSimpleCasefoldInstance(), unorm2_getNFKDInstance(), unorm2_getRawDecomposition(), unorm2_hasBoundaryAfter(), unorm2_hasBoundaryBefore(), unorm2_isInert(), unorm2_isNormalized(), unorm2_normalize(), unorm2_normalizeSecondAndAppend(), unorm2_openFiltered(), unorm2_quickCheck(), unorm2_spanQuickCheckYes(), unum_applyPattern(), unum_clone(), unum_format(), unum_formatDecimal(), unum_formatDouble(), unum_formatDoubleCurrency(), unum_formatDoubleForFields(), unum_formatInt64(), unum_formatUFormattable(), unum_getAttribute(), unum_getAvailable(), unum_getDoubleAttribute(), unum_getLocaleByType(), unum_getSymbol(), unum_getTextAttribute(), unum_hasAttribute(), unum_open(), unum_parse(), unum_parseDecimal(), unum_parseDouble(), unum_parseDoubleCurrency(), unum_parseInt64(), unum_parseToUFormattable(), unum_setAttribute(), unum_setContext(), unum_setSymbol(), unum_setTextAttribute(), unumf_formatDecimal(), unumf_formatDouble(), unumf_formatInt(), unumf_openForSkeletonAndLocale(), unumf_openForSkeletonAndLocaleWithError(), unumf_openResult(), unumf_resultAsValue(), unumf_resultGetAllFieldPositions(), unumf_resultNextFieldPosition(), unumf_resultToDecimalNumber(), unumf_resultToString(), unumrf_close(), unumrf_formatDecimalRange(), unumrf_formatDoubleRange(), unumrf_openForSkeletonWithCollapseAndIdentityFallback(), unumrf_openResult(), unumrf_resultAsValue(), unumrf_resultGetFirstDecimalNumber(), unumrf_resultGetIdentityResult(), unumrf_resultGetSecondDecimalNumber(), unumsys_getName(), unumsys_getRadix(), unumsys_isAlgorithmic(), unumsys_open(), unumsys_openAvailableNames(), unumsys_openByName(), uplrules_open(), uplrules_openForType(), uplrules_select(), uplrules_selectFormatted(), uplrules_selectForRange(), uplrules_selectWithFormat(), uplug_getConfiguration(), uplug_getContext(), uplug_getCurrentLevel(), uplug_getLibrary(), uplug_getLibraryName(), uplug_getPlugLevel(), uplug_getPlugLoadStatus(), uplug_getPlugName(), uplug_getSymbolName(), uplug_loadPlugFromEntrypoint(), uplug_loadPlugFromLibrary(), uplug_nextPlug(), uplug_setContext(), uplug_setPlugLevel(), uplug_setPlugName(), uplug_setPlugNoUnload(), uregex_appendReplacement(), uregex_appendReplacementUText(), uregex_appendTail(), uregex_appendTailUText(), uregex_clone(), uregex_end(), uregex_end64(), uregex_find(), uregex_find64(), uregex_findNext(), uregex_flags(), uregex_getText(), uregex_getTimeLimit(), uregex_getUText(), uregex_group(), uregex_groupCount(), uregex_groupNumberFromCName(), uregex_groupNumberFromName(), uregex_groupUText(), uregex_hasAnchoringBounds(), uregex_hasTransparentBounds(), uregex_hitEnd(), uregex_lookingAt(), uregex_lookingAt64(), uregex_matches(), uregex_matches64(), uregex_open(), uregex_openC(), uregex_openUText(), uregex_pattern(), uregex_patternUText(), uregex_refreshUText(), uregex_regionEnd(), uregex_regionEnd64(), uregex_regionStart(), uregex_regionStart64(), uregex_replaceAll(), uregex_replaceAllUText(), uregex_replaceFirst(), uregex_replaceFirstUText(), uregex_requireEnd(), uregex_reset(), uregex_reset64(), uregex_setFindProgressCallback(), uregex_setMatchCallback(), uregex_setRegion(), uregex_setRegion64(), uregex_setRegionAndStart(), uregex_setStackLimit(), uregex_setText(), uregex_setTimeLimit(), uregex_setUText(), uregex_split(), uregex_splitUText(), uregex_start(), uregex_start64(), uregex_useAnchoringBounds(), uregex_useTransparentBounds(), uregion_areEqual(), uregion_contains(), uregion_getAvailable(), uregion_getContainedRegions(), uregion_getContainedRegionsOfType(), uregion_getContainingRegion(), uregion_getContainingRegionOfType(), uregion_getNumericCode(), uregion_getPreferredValues(), uregion_getRegionCode(), uregion_getRegionFromCode(), uregion_getRegionFromNumericCode(), ureldatefmt_format(), ureldatefmt_formatNumeric(), ureldatefmt_formatNumericToResult(), ureldatefmt_formatToResult(), ureldatefmt_open(), ureldatefmt_openResult(), ureldatefmt_resultAsValue(), ures_countArrayItems(), ures_getBinary(), ures_getByIndex(), ures_getByKey(), ures_getInt(), ures_getIntVector(), ures_getKey(), ures_getLocale(), ures_getLocaleByType(), ures_getNextResource(), ures_getNextString(), ures_getSize(), ures_getString(), ures_getStringByIndex(), ures_getStringByKey(), ures_getType(), ures_getUInt(), ures_getUTF8String(), ures_getUTF8StringByIndex(), ures_getVersionNumber(), ures_hasNext(), ures_open(), ures_openDirect(), ures_openFillIn(), ures_resetIterator(), uscript_breaksBetweenLetters(), uscript_getCode(), uscript_getName(), uscript_getSampleUnicodeString(), uscript_getScript(), uscript_getShortName(), uscript_getUsage(), uscript_hasScript(), uscript_isRightToLeft(), usearch_close(), usearch_first(), usearch_following(), usearch_getAttribute(), usearch_getBreakIterator(), usearch_getCollator(), usearch_getMatchedLength(), usearch_getMatchedStart(), usearch_getMatchedText(), usearch_getOffset(), usearch_getPattern(), usearch_getText(), usearch_last(), usearch_next(), usearch_open(), usearch_openFromCollator(), usearch_preceding(), usearch_previous(), usearch_reset(), usearch_search(), usearch_searchBackwards(), usearch_setAttribute(), usearch_setBreakIterator(), usearch_setCollator(), usearch_setOffset(), usearch_setPattern(), usearch_setText(), uset_add(), uset_addAll(), uset_addAllCodePoints(), uset_addRange(), uset_addString(), uset_applyIntPropertyValue(), uset_applyPattern(), uset_applyPropertyAlias(), uset_charAt(), uset_clear(), uset_clone(), uset_cloneAsThawed(), uset_closeOver(), uset_compact(), uset_complement(), uset_complementAll(), uset_complementAllCodePoints(), uset_complementRange(), uset_complementString(), uset_contains(), uset_containsAll(), uset_containsAllCodePoints(), uset_containsNone(), uset_containsRange(), uset_containsSome(), uset_containsString(), uset_equals(), uset_freeze(), uset_getItem(), uset_getItemCount(), uset_getRangeCount(), uset_getSerializedRangeCount(), uset_getSerializedSet(), uset_getString(), uset_getStringCount(), uset_hasStrings(), uset_indexOf(), uset_isEmpty(), uset_isFrozen(), uset_open(), uset_openEmpty(), uset_openPattern(), uset_openPatternOptions(), uset_remove(), uset_removeAll(), uset_removeAllCodePoints(), uset_removeAllStrings(), uset_removeRange(), uset_removeString(), uset_resemblesPattern(), uset_retain(), uset_retainAll(), uset_retainAllCodePoints(), uset_retainString(), uset_serialize(), uset_serializedContains(), uset_set(), uset_setSerializedToOne(), uset_size(), uset_span(), uset_spanBack(), uset_spanBackUTF8(), uset_spanUTF8(), uset_toPattern(), usnum_close(), usnum_multiplyByPowerOfTen(), usnum_openForInt64(), usnum_roundTo(), usnum_setMaximumIntegerDigits(), usnum_setMinimumFractionDigits(), usnum_setMinimumIntegerDigits(), usnum_setSign(), usnum_setToInt64(), usnumf_format(), usnumf_formatInt64(), usnumf_openForLocale(), usnumf_openForLocaleAndGroupingStrategy(), uspoof_areBidiConfusable(), uspoof_areBidiConfusableUnicodeString(), uspoof_areBidiConfusableUTF8(), uspoof_check(), uspoof_check2(), uspoof_check2UnicodeString(), uspoof_check2UTF8(), uspoof_checkUnicodeString(), uspoof_checkUTF8(), uspoof_clone(), uspoof_close(), uspoof_closeCheckResult(), uspoof_getAllowedChars(), uspoof_getAllowedLocales(), uspoof_getAllowedUnicodeSet(), uspoof_getBidiSkeleton(), uspoof_getBidiSkeletonUnicodeString(), uspoof_getBidiSkeletonUTF8(), uspoof_getCheckResultChecks(), uspoof_getCheckResultNumerics(), uspoof_getCheckResultRestrictionLevel(), uspoof_getChecks(), uspoof_getInclusionSet(), uspoof_getInclusionUnicodeSet(), uspoof_getRecommendedSet(), uspoof_getRestrictionLevel(), uspoof_open(), uspoof_openCheckResult(), uspoof_openFromSerialized(), uspoof_openFromSource(), uspoof_setAllowedChars(), uspoof_setAllowedLocales(), uspoof_setAllowedUnicodeSet(), uspoof_setChecks(), uspoof_setRestrictionLevel(), usprep_open(), usprep_openByType(), utext_char32At(), utext_clone(), utext_close(), utext_copy(), utext_current32(), utext_equals(), utext_getNativeIndex(), utext_getPreviousNativeIndex(), utext_hasMetaData(), utext_isLengthExpensive(), utext_isWritable(), utext_moveIndex32(), utext_nativeLength(), utext_next32(), utext_next32From(), utext_openCharacterIterator(), utext_openConstUnicodeString(), utext_openReplaceable(), utext_openUChars(), utext_openUnicodeString(), utext_openUTF8(), utext_previous32(), utext_previous32From(), utext_replace(), utext_setNativeIndex(), utf8_appendCharSafeBody(), utf8_nextCharSafeBody(), utf8_prevCharSafeBody(), utmscale_fromInt64(), utmscale_getTimeScaleValue(), utrace_format(), utrace_getFunctions(), utrace_setFunctions(), utrace_setLevel(), utrace_vformat(), utrans_clone(), utrans_countAvailableIDs(), utrans_getUnicodeID(), utrans_openIDs(), utrans_openInverse(), utrans_openU(), utrans_register(), utrans_setFilter(), utrans_toRules(), utrans_trans(), utrans_transIncremental(), utrans_transIncrementalUChars(), utrans_transUChars(), and utrans_unregisterID().

## U_CDECL_BEGIN

#define U_CDECL_BEGIN

This is used to begin a declaration of a library private ICU C API.

Stable
  ICU 2.4

Definition at line 85 of file umachine.h.

Referenced by u_cleanup(), u_unescape(), ubidi_getResultLength(), uregex_getMatchCallback(), and uregex_getStackLimit().

## U_CDECL_END

#define U_CDECL_END

This is used to end a declaration of a library private ICU C API.

Stable
  ICU 2.4

Definition at line 86 of file umachine.h.

Referenced by u_catgets(), u_getFC_NFKC_Closure(), u_setMemoryFunctions(), ucpmap_getRange(), udata_setFileAccess(), uiter_setReplaceable(), umutablecptrie_buildImmutable(), uspoof_serialize(), and utrace_functionName().

## U_CFUNC

#define U_CFUNC extern

This is used in a declaration of a library private ICU C function.

Stable
  ICU 2.4

Definition at line 84 of file umachine.h.

## U_CHAR16_IS_TYPEDEF

#define U_CHAR16_IS_TYPEDEF 0

If 1, then char16_t is a typedef and not a real type (yet).

Internal
  Do not use. This API is for internal use only.

Definition at line 364 of file umachine.h.

## U_DEFINE_FALSE_AND_TRUE

#define U_DEFINE_FALSE_AND_TRUE 0

Normally turns off defining macros FALSE=0 & TRUE=1 in public ICU headers.

These obsolete macros sometimes break compilation of other code that defines enum constants or similar with these names. C++ has long defined bool/false/true. C99 also added definitions for these, although as macros; see stdbool.h.

You may transitionally define U_DEFINE_FALSE_AND_TRUE=1 if you need time to migrate code.

Internal
  Do not use. This API is for internal use only. ICU 68

Definition at line 287 of file umachine.h.

## U_DEPRECATED

#define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED

This is used to declare a function as a deprecated public ICU C API.

Definition at line 116 of file umachine.h.

Referenced by u_charName(), ubrk_openBinaryRules(), ucnv_clone(), ucol_clone(), ucol_getMaxVariable(), ucol_getRules(), ucol_getRulesEx(), ucol_getShortDefinitionString(), ucol_getVariableTop(), ucol_openFromShortString(), ucol_openRules(), uidna_IDNToASCII(), uidna_IDNToUnicode(), uidna_toASCII(), uidna_toUnicode(), unorm_isNormalized(), unorm_isNormalizedWithOptions(), unorm_next(), unorm_normalize(), unorm_previous(), unorm_quickCheck(), unorm_quickCheckWithOptions(), ures_getVersion(), ures_openU(), utrans_getID(), utrans_getSourceSet(), utrans_open(), and utrans_unregister().

## U_DRAFT

#define U_DRAFT U_CAPI

Obsolete/same as U_CAPI; was used to declare a function as a draft public ICU C API.

Definition at line 114 of file umachine.h.

## U_FORCE_INLINE

#define U_FORCE_INLINE inline

Forces function inlining on compilers that are known to support it.

Place this before specifiers like "static" and "explicit".

This does not replace the "inline" keyword which suspends the One Definition Rule (ODR) in addition to optionally serving as an inlining hint to the compiler.

Internal
  Do not use. This API is for internal use only.

Definition at line 135 of file umachine.h.

Referenced by U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator!=(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator!=(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator*(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator*(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator++(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator++(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator++(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator++(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator->(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator->(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator=(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator=(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator=(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator=(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::operator==(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::operator==(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::UnsafeUTFIterator(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::UnsafeUTFIterator(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::UnsafeUTFIterator(), U_HEADER_ONLY_NAMESPACE::UnsafeUTFIterator< CP32, UnitIter, typename >::UnsafeUTFIterator(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::UTFIterator(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::UTFIterator(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::UTFIterator(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::UTFIterator(), U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::UTFIterator(), and U_HEADER_ONLY_NAMESPACE::UTFIterator< CP32, behavior, UnitIter, LimitIter, typename >::UTFIterator().

## U_INT64_MAX

#define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807)))

The largest value a 64 bit signed integer can hold.

Stable
  ICU 2.8

Definition at line 249 of file umachine.h.

## U_INT64_MIN

#define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1))

The smallest value a 64 bit signed integer can hold.

Stable
  ICU 2.8

Definition at line 245 of file umachine.h.

## U_INTERNAL

#define U_INTERNAL U_CAPI

Obsolete/same as U_CAPI; was used to declare a function as an internal ICU C API.

Definition at line 120 of file umachine.h.

## U_OBSOLETE

#define U_OBSOLETE U_CAPI

Obsolete/same as U_CAPI; was used to declare a function as an obsolete public ICU C API.

Definition at line 118 of file umachine.h.

## U_SENTINEL

#define U_SENTINEL (-1)

This value is intended for sentinel values for APIs that (take or) return single code points (UChar32).

It is outside of the Unicode code point range 0..0x10ffff.

For example, a "done" or "error" value in a new API could be indicated with U_SENTINEL.

ICU APIs designed before ICU 2.4 usually define service-specific "done" values, mostly 0xffff. Those may need to be distinguished from actual U+ffff text contents by calling functions like CharacterIterator::hasNext() or UnicodeString::length().

Returns
  -1

See also
  UChar32

Stable
  ICU 2.4

Definition at line 469 of file umachine.h.

Referenced by U_HEADER_ONLY_NAMESPACE::USetRangeIterator::operator*(), U_HEADER_ONLY_NAMESPACE::USetCodePointIterator::operator++(), and U_HEADER_ONLY_NAMESPACE::USetElementIterator::operator++().

## U_SIZEOF_UCHAR

#define U_SIZEOF_UCHAR 2

Number of bytes in a UChar (always 2).

Stable
  ICU 2.0

Definition at line 352 of file umachine.h.

## U_STABLE

#define U_STABLE U_CAPI

Obsolete/same as U_CAPI; was used to declare a function as a stable public ICU C API.

Definition at line 112 of file umachine.h.

## U_UINT64_MAX

#define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615)))

The largest value a 64 bit unsigned integer can hold.

Stable
  ICU 2.8

Definition at line 253 of file umachine.h.

## UINT16_MAX

#define UINT16_MAX ((uint16_t)(65535U))

The largest value a 16 bit unsigned integer can hold.

Stable
  ICU 2.0

Definition at line 217 of file umachine.h.

## UINT32_MAX

#define UINT32_MAX ((uint32_t)(4294967295U))

The largest value a 32 bit unsigned integer can hold.

Stable
  ICU 2.0

Definition at line 221 of file umachine.h.

## UINT64_C

#define UINT64_C | ( |  | c | ) |

Value:
c ## ULL

Provides a platform independent way to specify an unsigned 64-bit integer constant.

note: may be wrong for some 64 bit platforms - ensure your compiler provides UINT64_C

Stable
  ICU 2.8

Definition at line 241 of file umachine.h.

## UINT8_MAX

#define UINT8_MAX ((uint8_t)(255U))

The largest value an 8 bit unsigned integer can hold.

Stable
  ICU 2.0

Definition at line 213 of file umachine.h.

## UPRV_BLOCK_MACRO_BEGIN

#define UPRV_BLOCK_MACRO_BEGIN do

Defined as the "do" keyword by default.

Internal
  Do not use. This API is for internal use only.

Definition at line 169 of file umachine.h.

## UPRV_BLOCK_MACRO_END

#define UPRV_BLOCK_MACRO_END while (false)

Defined as "while (false)" by default.

Internal
  Do not use. This API is for internal use only.

Definition at line 178 of file umachine.h.

## Typedef Documentation

## OldUChar

typedef uint16_t OldUChar

Default ICU 58 definition of UChar.

A base type for UTF-16 code units and pointers. Unsigned 16-bit integer.

Define OldUChar to be wchar_t if that is 16 bits wide. If wchar_t is not 16 bits wide, then define UChar to be uint16_t.

This makes the definition of OldUChar platform-dependent but allows direct string type compatibility with platforms with 16-bit wchar_t types.

This is how UChar was defined in ICU 58, for transition convenience. Exception: ICU 58 UChar was defined to UCHAR_TYPE if that macro was defined. The current UChar responds to UCHAR_TYPE but OldUChar does not.

Stable
  ICU 59

Definition at line 429 of file umachine.h.

## UBool

typedef int8_t UBool

The ICU boolean type, a signed-byte integer.

ICU-specific for historical reasons: The C and C++ standards used to not define type bool. Also provides a fixed type definition, as opposed to type bool whose details (e.g., sizeof) may vary by compiler and between C and C++.

Stable
  ICU 2.0

Definition at line 269 of file umachine.h.

## UChar

typedef char16_t UChar

The base type for UTF-16 code units and pointers.

Unsigned 16-bit integer. Starting with ICU 59, C++ API uses char16_t directly, while C API continues to use UChar.

UChar is configurable by defining the macro UCHAR_TYPE on the preprocessor or compiler command line: -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc. (The UCHAR_TYPE can also be #defined earlier in this file, for outside the ICU library code.) This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16.

The default is UChar=char16_t.

C++11 defines char16_t as bit-compatible with uint16_t, but as a distinct type.

In C, char16_t is a simple typedef of uint_least16_t. ICU requires uint_least16_t=uint16_t for data memory mapping. On macOS, char16_t is not available because the uchar.h standard header is missing.

Stable
  ICU 4.4

Definition at line 400 of file umachine.h.

## UChar32

typedef int32_t UChar32

Define UChar32 as a type for single Unicode code points.

UChar32 is a signed 32-bit integer (same as int32_t).

The Unicode code point range is 0..0x10ffff. All other values (negative or >=0x110000) are illegal as Unicode code points. They may be used as sentinel values to indicate "done", "error" or similar non-code point conditions.

Before ICU 2.4 (Jitterbug 2146), UChar32 was defined to be wchar_t if that is 32 bits wide (wchar_t may be signed or unsigned) or else to be uint32_t. That is, the definition of UChar32 was platform-dependent.

See also
  U_SENTINEL

Stable
  ICU 2.4

Definition at line 449 of file umachine.h.