Character codes: Difference between revisions

m
m (→‎{{header|Raku}}: twiddles)
Line 1,948:
'Unicode script',
'Unicode block',
'Added in Unicode version',
'Ordinal(s)',
'Hex ordinal(s)',
Line 1,955 ⟶ 1,956:
'Round trip by name',
'Round trip by ordinal'
]».fmt('%21s25s:')
Z
[ $_,
Line 1,962 ⟶ 1,963:
.uniprops('Script').join(', '),
.uniprops('Block').join(', '),
.uniprops('Age').join(', '),
.ords,
.ords.fmt('0x%X'),
Line 1,973 ⟶ 1,975:
}</syntaxhighlight>
{{out}}
<pre> Character: A
Character name: LATIN CAPITAL LETTER A
Unicode property: Lu
Unicode script: Latin
Unicode block: Basic Latin
Added in Unicode version: 1.1
Ordinal(s): 65
Hex ordinal Ordinal(s): 0x4165
Hex UTF-8ordinal(s): 410x41
UTF-16LE8: 410041
UTF-16BE16LE: 00414100
Ordinal(s) UTF-16BE: 650041
Round trip by name: A
Round trip by ordinalname: A
Round trip by nameordinal: A
 
Character: Α
Character name: GREEK CAPITAL LETTER ALPHA
Unicode property: Lu
Unicode script: Greek
Unicode block: Greek and Coptic
Added in Unicode version: 1.1
Ordinal(s): 913
Hex ordinal Ordinal(s): 0x391913
Hex UTF-8ordinal(s): CE 910x391
UTF-16LE8: 9103CE 91
UTF-16BE16LE: 03919103
Ordinal(s) UTF-16BE: 9130391
Round trip by name: Α
Round trip by ordinalname: Α
Round trip by nameordinal: Α
 
Character: А
Character name: CYRILLIC CAPITAL LETTER A
Unicode property: Lu
Unicode script: Cyrillic
Unicode block: Cyrillic
Added in Unicode version: 1.1
Ordinal(s): 1040
Hex ordinal Ordinal(s): 0x4101040
Hex UTF-8ordinal(s): D0 900x410
UTF-16LE8: 1004D0 90
UTF-16BE16LE: 04101004
Ordinal(s) UTF-16BE: 10400410
Round trip by name: А
Round trip by ordinalname: А
Round trip by nameordinal: А
 
Character: 𪚥
Character name: CJK UNIFIED IDEOGRAPH-2A6A5
Unicode property: Lo
Unicode script: Han
Unicode block: CJK Unified Ideographs Extension B
Added in Unicode version: 3.1
Ordinal(s): 173733
Hex ordinal Ordinal(s): 0x2A6A5173733
Hex UTF-8ordinal(s): F0 AA 9A A50x2A6A5
UTF-16LE8: 69D8F0 AA 9A A5DEA5
UTF-16BE16LE: D86969D8 DEA5A5DE
UTF-16BE: D869 DEA5
Round trip by name: 𪚥
Round trip by ordinalname: 𪚥
Round trip by nameordinal: 𪚥
 
Character: 🇺🇸
Character name: REGIONAL INDICATOR SYMBOL LETTER U, REGIONAL INDICATOR SYMBOL LETTER S
Unicode property: So, So
Unicode script: Common, Common
Unicode block: Enclosed Alphanumeric Supplement, Enclosed Alphanumeric Supplement
Added in Unicode version: 6.0, 6.0
Ordinal(s): 127482 127480
Hex ordinal Ordinal(s): 0x1F1FA127482 0x1F1F8127480
Hex UTF-8ordinal(s): F0 9F 87 BA F0 9F 870x1F1FA B80x1F1F8
UTF-16LE8: 3CD8F0 9F 87 BA F0 FADD9F 3CD887 F8DDB8
UTF-16BE16LE: D83C3CD8 DDFAFADD D83C3CD8 DDF8F8DD
UTF-16BE: D83C DDFA D83C DDF8
Round trip by name: 🇺🇸
Round trip by ordinalname: 🇺🇸
Round trip by nameordinal: 🇺🇸
 
Character: 👨‍👩‍👧‍👦
Character name: MAN, ZERO WIDTH JOINER, WOMAN, ZERO WIDTH JOINER, GIRL, ZERO WIDTH JOINER, BOY
Unicode property: So, Cf, So, Cf, So, Cf, So
Unicode script: Common, Inherited, Common, Inherited, Common, Inherited, Common
Unicode block: Miscellaneous Symbols and Pictographs, General Punctuation, Miscellaneous Symbols and Pictographs, General Punctuation, Miscellaneous Symbols and Pictographs, General Punctuation, Miscellaneous Symbols and Pictographs
Added in Unicode version: 6.0, 1.1, 6.0, 1.1, 6.0, 1.1, 6.0
Ordinal(s): 128104 8205 128105 8205 128103 8205 128102
Hex ordinal(s): 0x1F468 0x200D 0x1F469 0x200D 0x1F467 0x200D 0x1F466
UTF-8: F0 9F 91 A8 E2 80 8D F0 9F 91 A9 E2 80 8D F0 9F 91 A7 E2 80 8D F0 9F 91 A6
UTF-16LE: 3DD8 68DC 0D20 3DD8 69DC 0D20 3DD8 67DC 0D20 3DD8 66DC
UTF-16BE: D83D DC68 200D D83D DC69 200D D83D DC67 200D D83D DC66
Round trip by name: 👨‍👩‍👧‍👦
Round trip by ordinal: 👨‍👩‍👧‍👦</pre>
 
Character: 👨‍👩‍👧‍👦
Character name: MAN, ZERO WIDTH JOINER, WOMAN, ZERO WIDTH JOINER, GIRL, ZERO WIDTH JOINER, BOY
Unicode property: So, Cf, So, Cf, So, Cf, So
Unicode script: Common, Inherited, Common, Inherited, Common, Inherited, Common
Unicode block: Miscellaneous Symbols and Pictographs, General Punctuation, Miscellaneous Symbols and Pictographs, General Punctuation, Miscellaneous Symbols and Pictographs, General Punctuation, Miscellaneous Symbols and Pictographs
Ordinal(s): 128104 8205 128105 8205 128103 8205 128102
Hex ordinal(s): 0x1F468 0x200D 0x1F469 0x200D 0x1F467 0x200D 0x1F466
UTF-8: F0 9F 91 A8 E2 80 8D F0 9F 91 A9 E2 80 8D F0 9F 91 A7 E2 80 8D F0 9F 91 A6
UTF-16LE: 3DD8 68DC 0D20 3DD8 69DC 0D20 3DD8 67DC 0D20 3DD8 66DC
UTF-16BE: D83D DC68 200D D83D DC69 200D D83D DC67 200D D83D DC66
Round trip by name: 👨‍👩‍👧‍👦
Round trip by ordinal: 👨‍👩‍👧‍👦</pre>
=={{header|RapidQ}}==
<syntaxhighlight lang="vb">
10,327

edits