| 34 | namespace { |
| 35 | |
| 36 | bool ScanWord(StringPiece* input, string* word) { |
| 37 | str_util::RemoveLeadingWhitespace(input); |
| 38 | StringPiece tmp; |
| 39 | if (str_util::ConsumeNonWhitespace(input, &tmp)) { |
| 40 | word->assign(tmp.data(), tmp.size()); |
| 41 | return true; |
| 42 | } else { |
| 43 | return false; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | } // end namespace |
| 48 |
no test coverage detected