all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
8
Task/String-length/Forth/string-length-4.fth
Normal file
8
Task/String-length/Forth/string-length-4.fth
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
: count-utf8 ( zstr -- n )
|
||||
0
|
||||
begin
|
||||
swap dup c@
|
||||
while
|
||||
utf8+
|
||||
swap 1+
|
||||
repeat drop ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue