sliceString method
Implementation
String sliceString() {
var subSlices = [], sliceStart = start, sliceEnd = pos;
for (var i = 0; i < escapeCharPositions.length; i++) {
sliceEnd = escapeCharPositions[i];
subSlices.add(str.substring(sliceStart, sliceEnd));
sliceStart = sliceEnd + 1;
}
subSlices.add(str.substring(sliceStart, pos));
escapeCharPositions.length = 0;
return subSlices.join('');
}