Lines Matching defs:endc

1923  * ch->endc.  The modifier doesn't have to check for this delimiter character,
1927 * need to be followed by a ':' or endc; this was an unintended mistake.
2028 char const_member endc;
2149 int endc = startc == '(' ? ')' : '}';
2156 if (*p == endc)
2247 return c == ':' || c == ch->endc || c == '\0';
2546 if (!ParseModifierPart(&p, ':', ch->endc, ch->expr->emode,
3072 /* ":ts<any><endc>" or ":ts<any>:" */
3073 if (sep[0] != ch->endc && IsDelimiter(sep[1], ch)) {
3079 /* ":ts<endc>" or ":ts:" */
3182 return AMR_BAD; /* Found ":t<endc>" or ":t:". */
3226 /* Found ":t<unrecognized>:" or ":t<unrecognized><endc>". */
3489 if (!ParseModifierPart(pp, ch->endc, ch->endc, else_emode,
3495 (*pp)--; /* Go back to the ch->endc. */
3567 if (!ParseModifierPart(pp, ch->endc, ch->endc, expr->emode,
3572 (*pp)--; /* Go back to the ch->endc. */
3693 IsSysVModifier(const char *p, char startc, char endc)
3701 else if (*p == endc)
3708 return *p == endc && eqFound;
3724 if (!IsSysVModifier(mod, ch->startc, ch->endc))
3731 if (!ParseModifierPart(pp, ch->endc, ch->endc, expr->emode,
3738 (*pp)--; /* Go back to the ch->endc. */
3934 * If the expression is not followed by ch->endc or ':', fall
3966 else if (*p == '\0' && ch->endc != '\0') {
3970 ch->endc);
4017 if (*p == '\0' && ch->endc != '\0') {
4021 ch->endc, (int)(p - mod), mod);
4024 } else if (opts.strict && *p != '\0' && *p != ch->endc) {
4038 #define ModChain_Init(expr, startc, endc, sep, oneBigWord) \
4039 (ModChain) { expr, startc, endc, sep, oneBigWord }
4042 ModChain_Init(Expr *expr, char startc, char endc, char sep, bool oneBigWord)
4047 ch.endc = endc;
4060 char endc /* ')' or '}'; or '\0' for indirect modifiers */
4063 ModChain ch = ModChain_Init(expr, startc, endc, ' ', false);
4068 assert(endc == ')' || endc == '}' || endc == '\0');
4073 if (*p == '\0' && endc != '\0') {
4075 "Unclosed expression, expecting '%c'", ch.endc);
4079 while (*p != '\0' && *p != endc) {
4194 ParseVarname(const char **pp, char startc, char endc,
4204 if ((*p == endc || *p == ':') && depth == 0)
4208 if (*p == endc)
4373 char endc = startc == '(' ? ')' : '}';
4376 ParseVarname(&p, startc, endc, scope, nested_emode, &varname);
4381 else if (*p == endc)
4396 * ':' or at endc.
4416 p++; /* skip endc */
4445 *out_true_endc = endc;
4536 char endc; /* the expected '}' or ')' or '\0' */
4563 endc = '\0'; /* Appease GCC. */
4574 &endc, &v, &haveModifier, &extramodifiers,
4638 ApplyModifiers(&expr, &p, startc, endc);
4641 if (*p != '\0') /* Skip past endc if possible. */