• Home
  • Raw
  • Download

Lines Matching refs:Start

496 static unsigned PluralNumber(const char *&Start, const char *End) {  in PluralNumber()  argument
499 while (Start != End && *Start >= '0' && *Start <= '9') { in PluralNumber()
501 Val += *Start - '0'; in PluralNumber()
502 ++Start; in PluralNumber()
508 static bool TestPluralRange(unsigned Val, const char *&Start, const char *End) { in TestPluralRange() argument
509 if (*Start != '[') { in TestPluralRange()
510 unsigned Ref = PluralNumber(Start, End); in TestPluralRange()
514 ++Start; in TestPluralRange()
515 unsigned Low = PluralNumber(Start, End); in TestPluralRange()
516 assert(*Start == ',' && "Bad plural expression syntax: expected ,"); in TestPluralRange()
517 ++Start; in TestPluralRange()
518 unsigned High = PluralNumber(Start, End); in TestPluralRange()
519 assert(*Start == ']' && "Bad plural expression syntax: expected )"); in TestPluralRange()
520 ++Start; in TestPluralRange()
525 static bool EvalPluralExpr(unsigned ValNo, const char *Start, const char *End) { in EvalPluralExpr() argument
527 if (*Start == ':') in EvalPluralExpr()
531 char C = *Start; in EvalPluralExpr()
534 ++Start; in EvalPluralExpr()
535 unsigned Arg = PluralNumber(Start, End); in EvalPluralExpr()
536 assert(*Start == '=' && "Bad plural expression syntax: expected ="); in EvalPluralExpr()
537 ++Start; in EvalPluralExpr()
539 if (TestPluralRange(ValMod, Start, End)) in EvalPluralExpr()
545 if (TestPluralRange(ValNo, Start, End)) in EvalPluralExpr()
550 Start = std::find(Start, End, ','); in EvalPluralExpr()
551 if (Start == End) in EvalPluralExpr()
553 ++Start; in EvalPluralExpr()