Finds using StringPiece::find_first_of(), therefore the length of the found delimiter is 1.
| 72 | // Finds using StringPiece::find_first_of(), therefore the length of the found |
| 73 | // delimiter is 1. |
| 74 | struct AnyOfPolicy { |
| 75 | size_t Find(StringPiece text, StringPiece delimiter) { |
| 76 | return text.find_first_of(delimiter); |
| 77 | } |
| 78 | int Length(StringPiece delimiter) { |
| 79 | return 1; |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | } // namespace |
| 84 |