| | 1 | | namespace Songhay.Models; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// Defines a Unicode glyphic character |
| | 5 | | /// </summary> |
| | 6 | | public readonly struct ProgramGlyph |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Gets or sets the unicode point. |
| | 10 | | /// </summary> |
| 678 | 11 | | public string UnicodePoint { get; init; } |
| | 12 | |
|
| | 13 | | /// <summary> |
| | 14 | | /// Gets or sets the unicode integer. |
| | 15 | | /// </summary> |
| 226 | 16 | | public int UnicodeInteger => string.IsNullOrWhiteSpace(UnicodePoint) ? 0 : Convert.ToInt32(UnicodePoint, 16); |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Gets or sets the unicode group. |
| | 20 | | /// </summary> |
| 226 | 21 | | public string UnicodeGroup { get; init; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// Gets or sets the name of the unicode. |
| | 25 | | /// </summary> |
| 226 | 26 | | public string UnicodeName { get; init; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Gets or sets the character, usually the Unicode Point. |
| | 30 | | /// </summary> |
| 245 | 31 | | public string Character { get; init; } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Gets or sets the windows1252 URL encoding. |
| | 35 | | /// </summary> |
| 226 | 36 | | public string Windows1252UrlEncoding { get; init; } |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Gets or sets the UTF8 URL encoding. |
| | 40 | | /// </summary> |
| 548 | 41 | | public string Utf8UrlEncoding { get; init; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets or sets the name of the HTML entity. |
| | 45 | | /// </summary> |
| 525 | 46 | | public string HtmlEntityName { get; init; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets or sets the XML entity number. |
| | 50 | | /// </summary> |
| 460 | 51 | | public string XmlEntityNumber { get; init; } |
| | 52 | | } |