commit | 44e4847dc44e6e0670f5a8a7a8ef81a646f73d94 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri May 03 09:02:45 2019 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri May 03 12:49:31 2019 -0700 |
tree | 3e2ffd39f262073f43528c25845860dcb46b43d2 | |
parent | e5a21fec55450187aa311358d6110da7d7193914 [diff] |
libbase: add ConsumePrefix/ConsumeSuffix. adb was already using ConsumePrefix, and now we have another would-be user in cutils. (There appears to be one place in adb that should use ConsumeSuffix, so I'm assuming we'll want that sooner or later.) I've kept these inline because adb and google3's versions both were, and I'm easily led. Test: treehugger Change-Id: I29d99032f6f6ccbfaefece59725db8afb02a4c87