commit | bbb770b0aaa20ef89d80fd442b7e2c1544104269 | [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 | 58e9701155e1837a74e39a97bb9eed8fe03ec315 | |
parent | 947d8baa31e748972f0ca27ef3290756ccade551 [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