- string const numbertype(label, i + 1, j - i - 1);
- string const counter(label, j + 1, k - j - 1);
- string const rep = labelItem(counter, numbertype);
- label = string(label, 0, i) + rep + string(label, k + 1, string::npos);
+ docstring const numbertype(label, i + 1, j - i - 1);
+ docstring const counter(label, j + 1, k - j - 1);
+ docstring const rep = labelItem(counter, numbertype);
+ label = docstring(label, 0, i) + rep
+ + docstring(label, k + 1, docstring::npos);