Logo

Programming-Idioms

History of Idiom 169 > diff from v93 to v94

Edit summary for version 94 by programming-idioms.org:
Linked to idiom #287 [Number of bytes of a string]

Version 93

2021-12-13, 13:30:20

Version 94

2021-12-13, 13:41:28

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