Lines Matching refs:StringPiece

32 using android::StringPiece;
36 std::string GetSafePath(const StringPiece& arg) { in GetSafePath()
54 void Command::AddRequiredFlag(const StringPiece& name, const StringPiece& description, in AddRequiredFlag()
56 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlag()
64 void Command::AddRequiredFlagList(const StringPiece& name, const StringPiece& description, in AddRequiredFlagList()
66 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlagList()
74 void Command::AddOptionalFlag(const StringPiece& name, const StringPiece& description, in AddOptionalFlag()
76 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlag()
84 void Command::AddOptionalFlagList(const StringPiece& name, const StringPiece& description, in AddOptionalFlagList()
86 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlagList()
94 void Command::AddOptionalFlagList(const StringPiece& name, const StringPiece& description, in AddOptionalFlagList()
96 auto func = [value](const StringPiece& arg) -> bool { in AddOptionalFlagList()
104 void Command::AddOptionalSwitch(const StringPiece& name, const StringPiece& description, in AddOptionalSwitch()
106 auto func = [value](const StringPiece& arg) -> bool { in AddOptionalSwitch()
123 void Command::SetDescription(const StringPiece& description) { in SetDescription()
153 for (StringPiece line : util::Tokenize(subcommand->description_, '\n')) { in Usage()
171 for (StringPiece line : util::Tokenize(flag.description, '\n')) { in Usage()
181 int Command::Execute(const std::vector<StringPiece>& args, std::ostream* out_error) { in Execute()
186 const StringPiece& arg = args[i]; in Execute()
194 std::vector<StringPiece>(args.begin() + 1, args.end()), out_error); in Execute()
201 std::vector<StringPiece>(args.begin() + 1, args.end()), out_error); in Execute()