Lines Matching refs:flag
118 SkString flag(string, equalIndex); in match() local
119 if (flag.equals(*compareName)) { in match()
147 static void print_help_for_flag(const SkFlagInfo* flag) { in print_help_for_flag() argument
148 SkDebugf(" --%s", flag->name().c_str()); in print_help_for_flag()
149 const SkString& shortName = flag->shortName(); in print_help_for_flag()
153 SkDebugf(":\ttype: %s", flag->typeAsString().c_str()); in print_help_for_flag()
154 if (flag->defaultValue().size() > 0) { in print_help_for_flag()
155 SkDebugf("\tdefault: %s", flag->defaultValue().c_str()); in print_help_for_flag()
158 const SkString& help = flag->help(); in print_help_for_flag()
236 for (SkFlagInfo* flag = SkCommandLineFlags::gHead; flag; in Parse() local
237 flag = flag->next()) { in Parse()
238 allFlags.push(flag); in Parse()
246 for (SkFlagInfo* flag = SkCommandLineFlags::gHead; flag; in Parse() local
247 flag = flag->next()) { in Parse()
249 if (flag->name().equals(helpFlags[k]) || in Parse()
250 flag->shortName().equals(helpFlags[k])) { in Parse()
251 print_help_for_flag(flag); in Parse()
268 SkFlagInfo* flag = gHead; in Parse() local
269 while (flag != NULL) { in Parse()
270 if (flag->match(argv[i])) { in Parse()
272 switch (flag->getFlagType()) { in Parse()
280 flag->setBool(value); in Parse()
285 flag->resetStrings(); in Parse()
295 flag->append(argv[i]); in Parse()
300 flag->setInt(atoi(argv[i])); in Parse()
304 flag->setDouble(atof(argv[i])); in Parse()
311 flag = flag->next(); in Parse()
330 SkFlagInfo* flag = gHead; in Parse() local
332 while (flag != NULL) { in Parse()
333 SkFlagInfo* next = flag->next(); in Parse()
334 SkDELETE(flag); in Parse()
335 flag = next; in Parse()