Logo

Programming-Idioms

History of Idiom 38 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-08-20, 10:00:37

Version 7

2015-08-20, 15:53:14

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
auto t = s[i .. j];