Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
|
|
@ -1 +1 @@
|
|||
"J̲o̲s̲é̲".bytesize
|
||||
"J̲o̲s̲é̲".bytesize #=> 13
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
"J̲o̲s̲é̲".chars.length
|
||||
"J̲o̲s̲é̲".size #=> 8
|
||||
|
|
|
|||
1
Task/String-length/Crystal/string-length-3.cr
Normal file
1
Task/String-length/Crystal/string-length-3.cr
Normal file
|
|
@ -0,0 +1 @@
|
|||
"J̲o̲s̲é̲".grapheme_size #=> 4
|
||||
31
Task/String-length/Uxntal/string-length.uxnatl
Normal file
31
Task/String-length/Uxntal/string-length.uxnatl
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
%DBG { [ LIT2 01 -System/debug ] DEO }
|
||||
|
||||
|0e @System/debug
|
||||
|
||||
|100
|
||||
|
||||
@on-reset ( -> )
|
||||
;my-string slen-bytes ( 0007 )
|
||||
;my-string slen-chars ( 0005 )
|
||||
DBG
|
||||
BRK
|
||||
|
||||
@next-glyph ( addr* -- addr* )
|
||||
INC2 LDAk #06 SFT #02 EQU ?next-glyph
|
||||
JMP2r
|
||||
|
||||
@slen-chars ( str* -- len* )
|
||||
LIT2r 0000
|
||||
&>loop ( -- )
|
||||
INC2r next-glyph LDAk ?&>loop
|
||||
POP2 STH2r
|
||||
JMP2r
|
||||
|
||||
@slen-bytes ( str* -- len* )
|
||||
STH2k
|
||||
&>loop
|
||||
INC2 LDAk ?&>loop
|
||||
STH2r SUB2
|
||||
JMP2r
|
||||
|
||||
@my-string "møøse $1
|
||||
Loading…
Add table
Add a link
Reference in a new issue