commit | 1bfd13514bc70d07ef43a4b03af09bcc5c35820a | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Feb 20 19:36:00 2019 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Feb 25 13:49:25 2019 -0800 |
tree | 8e9147e6369a054dd98e4530ee3d206a9c17d25d | |
parent | 8477cb4a3ab8650ea0e23b24384fc18686fbd323 [diff] |
adb: add helper to consume a prefix on a string_view. It's error-prone to manually writing code of the following form: if (foo.starts_with("some_prefix:")) { foo.remove_prefix(strlen("some_prefix:")); } Add a helper to do that for us. Test: mma Change-Id: I5df391deba8b6c036fcbf17a1f1c79af8d9abd2b