Logo

Programming-Idioms

History of Idiom 169 > diff from v84 to v85

Edit summary for version 85 by programming-idioms.org:
More explicit requirement: Make sure that multibyte characters are properly handled.

Version 84

2020-12-24, 16:54:53

Version 85

2020-12-28, 22:37:03

Idiom #169 String length

Assign to integer n the number of characters of string s.

This 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