Logo

Programming-Idioms

History of Idiom 169 > diff from v8 to v9

Edit summary for version 9 by Edward E.:
[Dart] To conform with other code examples

Version 8

2018-01-14, 07:30:52

Version 9

2018-01-14, 07:32:20

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.

This can be different from the number of bytes of s.

Extra Keywords
size
Extra Keywords
size
Code
print(s.length);
Code
int n = s.length;