2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,10 +1,11 @@
|
|||
/*REXX program to show lengths (in bytes/characters) for various strings*/
|
||||
/* 1 */ /*a handy over/under scale.*/
|
||||
/*REXX program displays the lengths (in bytes/characters) for various strings. */
|
||||
/* 1 */ /*a handy-dandy over/under scale.*/
|
||||
/* 123456789012345 */
|
||||
hello = 'Hello, world!' ; say 'length of HELLO is ' length(hello)
|
||||
happy = 'Hello, world! ☺' ; say 'length of HAPPY is ' length(happy)
|
||||
jose = 'José' ; say 'length of JOSE is ' length(jose)
|
||||
nill = '' ; say 'length of NILL is ' length(nill)
|
||||
null = ; say 'length of NULL is ' length(null)
|
||||
sum = 5+1 ; say 'length of SUM is ' length(sum)
|
||||
/*stick a fork in it, we're done.*/
|
||||
hello = 'Hello, world!' ; say 'the length of HELLO is ' length(hello)
|
||||
happy = 'Hello, world! ☺' ; say 'the length of HAPPY is ' length(happy)
|
||||
jose = 'José' ; say 'the length of JOSE is ' length(jose)
|
||||
nill = '' ; say 'the length of NILL is ' length(nill)
|
||||
null = ; say 'the length of NULL is ' length(null)
|
||||
sum = 5+1 ; say 'the length of SUM is ' length(sum)
|
||||
/* [↑] is, of course, 6. */
|
||||
/*stick a fork in it, we're done.*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue