Logo

Programming-Idioms

History of Idiom 169 > diff from v103 to v104

Edit summary for version 104 by programming-idioms.org:
Lead: better style

Version 103

2022-05-24, 08:42:11

Version 104

2022-05-24, 08:42:20

Idiom #169 String length

Assign to integer n the number of characters of the 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 the integer n the number of characters of the 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