Logo

Programming-Idioms

History of Idiom 169 > diff from v113 to v114

Edit summary for version 114 by programming-idioms.org:
Linked to idiom #321 [Access character in string, by index]

Version 113

2022-08-29, 07:53:45

Version 114

2022-12-12, 10:38:13

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.

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