Logo

Programming-Idioms

History of Idiom 38 > diff from v44 to v45

Edit summary for version 45 by Matek:
New Pascal implementation by user [Matek]

Version 44

2016-11-30, 21:21:19

Version 45

2018-03-10, 23:49:40

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)

Illustration

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)

Illustration
Imports
uses Sysutils;
Code
t := s.Substring(i,j-i);