More uses of string_view
This commit is contained in:
parent
d0ee5fc308
commit
19eeaef2ea
11 changed files with 53 additions and 45 deletions
|
@ -8,7 +8,7 @@ bool AndroidContentURI::Parse(std::string_view path) {
|
|||
|
||||
std::string_view components = path.substr(strlen(prefix));
|
||||
|
||||
std::vector<std::string> parts;
|
||||
std::vector<std::string_view> parts;
|
||||
SplitString(components, '/', parts);
|
||||
if (parts.size() == 3) {
|
||||
// Single file URI.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue