UnicodeCharacterInfo Struct
Represents Unicode character information.
public readonly struct UnicodeCharacterInfo : IEquatable<UnicodeCharacterInfo>Remarks
A default instance, such as the value returned by a failed TryGetCharacterInfo call, describes no character: its UnicodeCharacterInfo.Name is empty, its UnicodeCharacterInfo.Block is UnicodeBlocks.Unknown, the nullable properties are null, and it is not equal to the entry for U+0000.
- Implements
Properties
| Name | Description |
|---|---|
| BidiCategory | Gets the Unicode bidirectional category. |
| Block | Gets the Unicode block. |
| CanonicalCombiningClass | Gets the canonical combining class. |
| Category | Gets the Unicode general category. |
| DecimalDigitValue | Gets the decimal digit value. |
| DecompositionMapping | Gets the decomposition mapping. |
| DigitValue | Gets the digit value. |
| HasEmojiPresentation | Gets a value indicating whether the character has the Emoji_Presentation property. |
| IsEmoji | Gets a value indicating whether the character has the Emoji property. |
| IsEmojiComponent | Gets a value indicating whether the character has the Emoji_Component property. |
| IsEmojiModifier | Gets a value indicating whether the character has the Emoji_Modifier property. |
| IsEmojiModifierBase | Gets a value indicating whether the character has the Emoji_Modifier_Base property. |
| IsExtendedPictographic | Gets a value indicating whether the character has the Extended_Pictographic property. |
| IsMirrored | Gets a value indicating whether the character is mirrored. |
| IsoComment | Gets the ISO comment. |
| Name | Gets the character name. |
| NumericValue | Gets the numeric value. |
| Rune | Gets the Unicode scalar value. |
| SimpleLowercaseMapping | Gets the simple lowercase mapping. |
| SimpleTitlecaseMapping | Gets the simple titlecase mapping. |
| SimpleUppercaseMapping | Gets the simple uppercase mapping. |
| Unicode1Name | Gets the Unicode 1.0 name. |
BidiCategory
UnicodeCharacterInfo.csGets the Unicode bidirectional category.
public UnicodeBidirectionalCategory BidiCategory { get; }Property value
Gets the Unicode block.
public UnicodeBlock Block { get; }Property value
UnicodeBlock The Unicode block, or UnicodeBlocks.Unknown for a default instance.
CanonicalCombiningClass
UnicodeCharacterInfo.csCategory
UnicodeCharacterInfo.csDecimalDigitValue
UnicodeCharacterInfo.csDecompositionMapping
UnicodeCharacterInfo.csDigitValue
UnicodeCharacterInfo.csHasEmojiPresentation
UnicodeCharacterInfo.csIsEmoji
UnicodeCharacterInfo.csIsEmojiComponent
UnicodeCharacterInfo.csIsEmojiModifier
UnicodeCharacterInfo.csIsEmojiModifierBase
UnicodeCharacterInfo.csIsExtendedPictographic
UnicodeCharacterInfo.csIsMirrored
UnicodeCharacterInfo.csIsoComment
UnicodeCharacterInfo.csNumericValue
UnicodeCharacterInfo.csSimpleLowercaseMapping
UnicodeCharacterInfo.csSimpleTitlecaseMapping
UnicodeCharacterInfo.csSimpleUppercaseMapping
UnicodeCharacterInfo.csUnicode1Name
UnicodeCharacterInfo.csMethods
| Name | Description |
|---|---|
| Equals(UnicodeCharacterInfo) | Determines whether this instance and another describe the same Unicode character. |
| Equals(object?) | |
| GetHashCode() |
Equals overloads
Equals(UnicodeCharacterInfo)
UnicodeCharacterInfo.csDetermines whether this instance and another describe the same Unicode character.
public bool Equals(UnicodeCharacterInfo other)Parameters
otherUnicodeCharacterInfo- The other character information.
Returns
bool true when both describe the same character; otherwise false.
Remarks
Instances come from a fixed table keyed by UnicodeCharacterInfo.Rune, so the scalar value identifies the entry. The index of the property record is compared as well so that a default instance, which carries the scalar value U+0000 and no properties, is not equal to the real entry for U+0000.
Equals(object?)
UnicodeCharacterInfo.csGetHashCode()
UnicodeCharacterInfo.csOperators
| Name | Description |
|---|---|
| operator ==(UnicodeCharacterInfo, UnicodeCharacterInfo) | |
| operator !=(UnicodeCharacterInfo, UnicodeCharacterInfo) |
operator ==(UnicodeCharacterInfo, UnicodeCharacterInfo)
UnicodeCharacterInfo.cspublic static bool operator ==(UnicodeCharacterInfo left, UnicodeCharacterInfo right)No documentation is available.
operator !=(UnicodeCharacterInfo, UnicodeCharacterInfo)
UnicodeCharacterInfo.cspublic static bool operator !=(UnicodeCharacterInfo left, UnicodeCharacterInfo right)No documentation is available.