Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/String-length/LFE/string-length-1.lfe
Normal file
8
Task/String-length/LFE/string-length-1.lfe
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(length "ASCII text")
|
||||
10
|
||||
(length "𝔘𝔫𝔦𝔠𝔬𝔡𝔢 𝔗𝔢𝒙𝔱")
|
||||
12
|
||||
> (set encoded (binary ("𝔘𝔫𝔦𝔠𝔬𝔡𝔢 𝔗𝔢𝒙𝔱" utf8)))
|
||||
#B(240 157 148 152 240 157 148 171 240 157 ...)
|
||||
> (length (unicode:characters_to_list encoded 'utf8))
|
||||
12
|
||||
12
Task/String-length/LFE/string-length-2.lfe
Normal file
12
Task/String-length/LFE/string-length-2.lfe
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
> (set encoded (binary ("𝔘𝔫𝔦𝔠𝔬𝔡𝔢 𝔗𝔢𝒙𝔱" utf8)))
|
||||
#B(240 157 148 152 240 157 148 171 240 157 ...)
|
||||
> (byte_size encoded)
|
||||
45
|
||||
> (set bytes (binary ("𝔘𝔫𝔦𝔠𝔬𝔡𝔢 𝔗𝔢𝒙𝔱")))
|
||||
#B(24 43 38 32 44 33 34 32 23 34 153 49)
|
||||
> (byte_size bytes)
|
||||
12
|
||||
> (set encoded (binary ("ASCII text" utf8)))
|
||||
#B(65 83 67 73 73 32 116 101 120 116)
|
||||
> (byte_size encoded)
|
||||
10
|
||||
Loading…
Add table
Add a link
Reference in a new issue