Logo

Programming-Idioms

History of Idiom 169 > diff from v91 to v92

Edit summary for version 92 by Patrick R:
New Smalltalk implementation by user [Patrick R]

Version 91

2021-05-23, 20:04:27

Version 92

2021-09-25, 10:51:14

Idiom #169 String length

Assign to integer n the number of characters of string s.
Make sure that multibyte characters are properly handled.
n can be different from the number of bytes of s.

Idiom #169 String length

Assign to integer n the number of characters of string s.
Make sure that multibyte characters are properly handled.
n can be different from the number of bytes of s.

Variables
n,s
Variables
n,s
Extra Keywords
size characters chars number runes
Extra Keywords
size characters chars number runes
Code
n := s size.