Inheritance diagram for UChar:
Unicode assigns each code point (not just assigned character) values for many properties. Most of them are simple boolean flags, or constants from a small enumerated list. For some properties, values are strings or other relatively more complex types.
For more information see "About the Unicode Character Database" (http://www.unicode.org/ucd/) and the ICU User Guide chapter on Properties (http://oss.software.ibm.com/icu/userguide/properties.html).
Many functions are designed to match java.lang.Character functions. See the individual function documentation, and see the JDK 1.4.1 java.lang.Character documentation at http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Character.html
There are also functions that provide easy migration from C/POSIX functions like isblank(). Their use is generally discouraged because the C/POSIX standards do not define their semantics beyond the ASCII range, which means that different implementations exhibit very different behavior. Instead, Unicode properties should be used directly.
There are also only a few, broad C/POSIX character classes, and they tend to be used for conflicting purposes. For example, the "isalpha()" class is sometimes used to determine word boundaries, while a more sophisticated approach would at least distinguish initial letters from continuation characters (the latter including combining marks). (In ICU, BreakIterator is the most sophisticated API for word boundaries.) Another example: There is no "istitle()" class for titlecase characters.
A summary of the behavior of some C/POSIX character classification implementations for Unicode is available at http://oss.software.ibm.com/cvs/icu/~checkout~/icuhtml/design/posix_classes.html
See this page for full details.
Definition at line 135 of file UChar.d.
|
Use this for the primary argument-type to most ICU functions |
|
|
|
|
Definition at line 262 of file UChar.d. Referenced by charDirection(). |
|
Definition at line 286 of file UChar.d. Referenced by getBlockCode(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ICU error codes (the ones which are referenced) |
|
|
|
Get the property value for an enumerated or integer Unicode property for a code point. Also returns binary and mask property values. Unicode, especially in version 3.2, defines many more properties than the original set in UnicodeData.txt. The properties APIs are intended to reflect Unicode properties as defined in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). For details about the properties see http://www.unicode.org/ . For names of Unicode properties see the file PropertyAliases.txt |
|
Get the minimum value for an enumerated/integer/binary Unicode property |
|
Get the maximum value for an enumerated/integer/binary Unicode property |
|
Returns the bidirectional category value for the code point, which is used in the Unicode bidirectional algorithm (UAX #9 http://www.unicode.org/reports/tr9/). Definition at line 650 of file UChar.d. References Direction. |
|
Returns the Unicode allocation block that contains the character Definition at line 662 of file UChar.d. References BlockCode. |
|
Retrieve the name of a Unicode character. Definition at line 673 of file UChar.d. References ICU::testError(). |
|
Get the ISO 10646 comment for a character. Definition at line 688 of file UChar.d. References ICU::testError(). |
|
Find a Unicode character by its name and return its code point value. Definition at line 704 of file UChar.d. References ICU::testError(), and ICU::toString(). |
|
Return the Unicode name for a given property, as given in the Unicode database file PropertyAliases.txt Definition at line 720 of file UChar.d. References ICU::toArray(). |
|
Return the Unicode name for a given property value, as given in the Unicode database file PropertyValueAliases.txt. Definition at line 732 of file UChar.d. References ICU::toArray(). |
|
Gets the Unicode version information |
|
Get the "age" of the code point |
|
|
|
Definition at line 110 of file ICU.d. Referenced by UConverter::detectSignature(), UString::format(), UCollator::getLocale(), and UConverter::this(). |
|
Definition at line 128 of file ICU.d. Referenced by UCalendar::add(), USet::applyPattern(), charFromName(), UNormalize::check(), UNormalize::compare(), UDomainName::compare(), UConverter::UTranscoder::convert(), UEnumeration::count(), UConverter::decode(), UConverter::encode(), UTransform::execute(), USearch::first(), UResourceBundle::get(), UCalendar::get(), UCollator::getAttribute(), UResourceBundle::getBinary(), UCollator::getBound(), getCharName(), getComment(), UCollator::getContractions(), UResourceBundle::getInt(), UResourceBundle::getIntVector(), UCalendar::getLimit(), UResourceBundle::getLocale(), UCalendar::getMillis(), UConverter::getName(), UResourceBundle::getNextString(), UCollator::getShortDefinitionString(), UResourceBundle::getString(), UCollator::getTailoredSet(), UDateFormat::getTwoDigitYearStart(), UCollator::getVariableTop(), UCalendar::inDaylightTime(), UNormalize::isNormalized(), USearch::last(), USearch::next(), UEnumeration::next(), UCollator::normalizeShortDefinitionString(), UDateFormat::parse(), USearch::previous(), UEnumeration::reset(), UCalendar::roll(), UCollator::setAttribute(), USearch::setCollator(), UCalendar::setDate(), UCalendar::setDateTime(), UTransform::setFilter(), USearch::setIterator(), UCalendar::setMillis(), USearch::setOffset(), USearch::setPattern(), UDecimalFormat::setPattern(), UMessageFormat::setPattern(), USearch::setText(), UBreakIterator::setText(), UCalendar::setTimeZone(), UDateFormat::setTwoDigitYearStart(), UCollator::setVariableTop(), UTransform::this(), UStringPrep::this(), USet::this(), USearch::this(), UResourceBundle::this(), UNumberFormat::this(), UMessageFormat::this(), UDateFormat::this(), UCollator::this(), UCalendar::this(), UBreakIterator::this(), URuleIterator::this(), and UText::toUtf8(). |
|
Definition at line 138 of file ICU.d. References string. Referenced by charFromName(), UConverter::compareNames(), UCollator::getDisplayName(), UResourceBundle::getResource(), UCollator::getShortDefinitionString(), UResourceBundle::getString(), UCalendar::getTimeZoneName(), UCollator::normalizeShortDefinitionString(), UMessageFormat::setLocale(), UStringPrep::this(), UResourceBundle::this(), UDateFormat::this(), UCollator::this(), UBreakIterator::this(), UText::toLower(), and UText::toUpper(). |
|
Definition at line 160 of file ICU.d. References string. |
|
Definition at line 182 of file ICU.d. References strlen(). |
|
Definition at line 191 of file ICU.d. References wcslen(). |
|
Definition at line 200 of file ICU.d. References strlen(). Referenced by UConverter::detectSignature(), UResourceBundle::getKey(), UResourceBundle::getLocale(), UMessageFormat::getLocale(), UCollator::getLocale(), UConverter::getName(), getPropertyName(), getPropertyValueName(), and UConverter::opApply(). |
|
Definition at line 211 of file ICU.d. References wcslen(). |
|
Bind the ICU functions from a shared library. This is complicated by the issues regarding D and DLLs on the Windows platform |
|
Initial value: [ {cast(void**) &forDigit, "u_forDigit"} |