• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/libxslt-13/libxslt/libxslt/

Lines Matching +defs:preceding +defs:token +defs:end

48     xmlChar	 token;
58 xmlChar *end;
326 default_token.token = DEFAULT_TOKEN;
333 tokens->end = NULL;
336 * Insert initial non-alphanumeric token.
337 * There is always such a token in the list, even if NULL
341 if (format[ix] == 0) /* if end of format string */
356 * number) in tokens->end, recover it.
359 tokens->tokens[tokens->nTokens].separator = tokens->end;
360 tokens->end = NULL;
373 tokens->tokens[tokens->nTokens].token = val - 1;
381 tokens->tokens[tokens->nTokens].token = val;
386 * "Any other format token indicates a numbering sequence
387 * that starts with that token. If an implementation does
389 * token, it must use a format token of 1."
391 tokens->tokens[tokens->nTokens].token = (xmlChar)'0';
419 tokens->end = xmlStrndup(&format[j], ix - j);
432 xsltFormatTokenPtr token;
435 * Handle initial non-alphanumeric token
445 * The "n"th format token will be used to format the "n"th
448 token = &(tokens->tokens[i]);
452 * last format token will be used to format the remaining
455 token = &(tokens->tokens[tokens->nTokens - 1]);
458 * If there are no format tokens, then a format token of
461 token = &default_token;
466 if (token->separator != NULL)
467 xmlBufferCat(buffer, token->separator);
484 switch (token->token) {
510 if (IS_DIGIT_ZERO(token->token)) {
513 token->token,
514 token->width,
527 * Handle final non-alphanumeric token
529 if (tokens->end != NULL)
530 xmlBufferCat(buffer, tokens->end);
587 /* Skip to next preceding or ancestor */
625 xmlNodePtr preceding;
643 /* count(preceding-sibling::*) */
645 for (preceding = ancestor;
646 preceding != NULL;
647 preceding =
648 xmlXPathNextPrecedingSibling(parser, preceding)) {
650 if ((preceding->type == ancestor->type) &&
651 xmlStrEqual(preceding->name, ancestor->name)){
652 if ((preceding->ns == ancestor->ns) ||
653 ((preceding->ns != NULL) &&
655 (xmlStrEqual(preceding->ns->href,
660 if (xsltTestCompMatchList(context, preceding,
812 if (tokens.end != NULL)
813 xmlFree(tokens.end);
836 * prefix / suffix ends at end of string or at
1005 * appears at the end, it may be part of the suffix instead