> > Once step at a time, hopefully we can revisit this down the road. I > guess I misunderstand the complexity because the doc says "like RE, > StringPiece is defined in the pcrecpp namespace." When I look at the > cc code, it looks like most or all of the services are already using > StringPiece internally.
Yes, but that is hidden since I can pass in a string and a stringpiece gets created by the constructor invisibly. But if memory serves, consume _returns_ a stringpiece. The other functions just return strings. I did not want to get into trying to pass the stringpiece back to PowerPro, encoded somehow in a PowerPro char* string (e.g. one encoding that occured to me was line 1=first index, line 2=length, line3=original string) One thing I could do is just throw away the stringpiece extra info and return only the remaining string subset. I'll see if that is possible and, if Julien does not mind, modify the latest to try it. >
