On Aug 25, 2013, at 05:55 , Marvin Humphrey <[email protected]> wrote:
> After reviewing all these varied APIs, it seems to me that providing the base > functionality suffices. > > /** Tests whether the String starts with the content of `prefix`. > */ > bool > Starts_With(String *self, String *prefix); > > /** Tests whether the String ends with the content of `suffix`. > */ > bool > Ends_With(String *self, String *suffix); +1 We should also add a Starts_With method to StringIterator. This can be used to simulate Starts_With with an offset and to replace ZCB_Starts_With in QueryLexer and Store::Lock. Nick
