Logo

Programming-Idioms

History of Idiom 38 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-21, 23:14:53

Version 9

2015-08-21, 23:15:39

Idiom #38 Extract a substring

Find substring t consisting in characters i (included) to j (excluded) of string s.
(character indexes start at 0 unless specified otherwise)

Idiom #38 Extract a substring

Find substring t consisting in characters i (included) to j (excluded) of string s.
(character indexes start at 0 unless specified otherwise)

Code
var t = s.substring(i, j);
Code
var t = s.substring(i, j);
Doc URL
https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-core.String#id_substring
Origin
https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-core.String#id_substring