diff options
| author | Josh Gao <jmgao@google.com> | 2019-02-20 19:36:00 -0800 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2019-02-25 13:49:25 -0800 |
| commit | ac8da2a7dfba9696fc7a6570b04a6cf069613183 (patch) | |
| tree | 58e9701155e1837a74e39a97bb9eed8fe03ec315 /base/errors_unix.cpp | |
| parent | aeca208385ba5a8307e1c297548eef0ef1999c6f (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
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
