Logo

Programming-Idioms

History of Idiom 169 > diff from v100 to v101

Edit summary for version 101 by programming-idioms.org:
Linked to idiom #46 [Extract beginning of string (prefix)]

Version 100

2022-02-06, 16:44:33

Version 101

2022-03-25, 08:25:00

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