It actually can't use it directly, because stripStartsWith doesn't take a range directly, and it handles incrementing the position, which skipOver doesn't do. However, stripStartsWith can be simplified to use skipOver internally.
#10
This reduces the complexity of skipStartsWith. However, at some point,
it should be further improved to strip off the wrappers around arrays of
char so that skipOver can use == when comparing when the type being
parsed is an array of char.
dxml/source/dxml/parser.d
Line 1859 in 8dbc4a4
You should be able to utilize: https://dlang.org/library/std/algorithm/searching/skip_over.skip_over.html
rather than the custom function.
The text was updated successfully, but these errors were encountered: