• Home
  • Raw
  • Download

Lines Matching refs:flag

122                 SkString flag(string, equalIndex);  in match()  local
123 if (flag.equals(*compareName)) { in match()
187 static void print_help_for_flag(const SkFlagInfo* flag) { in print_help_for_flag() argument
188 SkDebugf(" --%s", flag->name().c_str()); in print_help_for_flag()
189 const SkString& shortName = flag->shortName(); in print_help_for_flag()
193 SkDebugf(":\ttype: %s", flag->typeAsString().c_str()); in print_help_for_flag()
194 if (flag->defaultValue().size() > 0) { in print_help_for_flag()
195 SkDebugf("\tdefault: %s", flag->defaultValue().c_str()); in print_help_for_flag()
198 const SkString& help = flag->help(); in print_help_for_flag()
202 static void print_extended_help_for_flag(const SkFlagInfo* flag) { in print_extended_help_for_flag() argument
203 print_help_for_flag(flag); in print_extended_help_for_flag()
204 print_indented(flag->extendedHelp()); in print_extended_help_for_flag()
250 for (SkFlagInfo* flag = CommandLineFlags::gHead; flag; flag = flag->next()) { in Parse() local
251 allFlags.push_back(flag); in Parse()
262 for (SkFlagInfo* flag = CommandLineFlags::gHead; flag; flag = flag->next()) { in Parse() local
264 if (flag->name().equals(helpFlags[k]) || in Parse()
265 flag->shortName().equals(helpFlags[k])) { in Parse()
266 print_extended_help_for_flag(flag); in Parse()
283 SkFlagInfo* flag = gHead; in Parse() local
285 while (flag != nullptr) { in Parse()
286 if (flag->match(argv[startI])) { in Parse()
290 SkASSERT(matchedFlag->getFlagType() == flag->getFlagType()); in Parse()
292 matchedFlag = flag; in Parse()
294 switch (flag->getFlagType()) { in Parse()
302 flag->setBool(value); in Parse()
307 flag->resetStrings(); in Parse()
317 flag->append(argv[i]); in Parse()
322 flag->setInt(atoi(argv[i])); in Parse()
326 flag->setDouble(atof(argv[i])); in Parse()
331 flag = flag->next(); in Parse()
347 SkFlagInfo* flag = gHead; in Parse() local
349 while (flag != nullptr) { in Parse()
350 SkFlagInfo* next = flag->next(); in Parse()
351 delete flag; in Parse()
352 flag = next; in Parse()