Lines Matching refs:parser
288 static void ParseUInt32(const CParser &parser, unsigned index, UInt32 &res)
290 if (parser[index].ThereIs)
291 res = GetNumber(parser[index].PostStrings[0]);
355 CParser parser;
358 if (!parser.ParseStrings(kSwitchForms, Z7_ARRAY_SIZE(kSwitchForms), commandStrings))
360 PrintError2(parser.ErrorMessage, parser.ErrorLine);
369 if (parser[NKey::kHelp1].ThereIs || parser[NKey::kHelp2].ThereIs)
375 bool stdInMode = parser[NKey::kStdIn].ThereIs;
376 bool stdOutMode = parser[NKey::kStdOut].ThereIs;
381 const UStringVector ¶ms = parser.NonSwitchStrings;
392 if (parser[NKey::kDict].ThereIs)
395 const UString &s = parser[NKey::kDict].PostStrings[0];
402 if (parser[NKey::kLevel].ThereIs)
404 const UString &s = parser[NKey::kLevel].PostStrings[0];
410 if (parser[NKey::kMatchFinder].ThereIs)
411 mf = parser[NKey::kMatchFinder].PostStrings[0];
417 if (parser[NKey::kMultiThread].ThereIs)
419 const UString &s = parser[NKey::kMultiThread].PostStrings[0];
430 if (parser[NKey::kMethod].ThereIs)
432 const UString &s = parser[NKey::kMethod].PostStrings[0];
536 if (parser[NKey::kFilter86].ThereIs)
543 if (parser[NKey::kEOS].ThereIs || stdInMode)
584 5, dict, parser[NKey::kFilter86].PostCharIndex == 0 ? SZ_FILTER_YES : SZ_FILTER_AUTO);
651 bool eos = parser[NKey::kEOS].ThereIs || stdInMode;
653 ParseUInt32(parser, NKey::kAlgo, algo);
654 ParseUInt32(parser, NKey::kFb, fb);
655 ParseUInt32(parser, NKey::kLc, lc);
656 ParseUInt32(parser, NKey::kLp, lp);
657 ParseUInt32(parser, NKey::kPb, pb);
659 mcDefined = parser[NKey::kMc].ThereIs;
661 mc = GetNumber(parser[NKey::kMc].PostStrings[0]);