Lines Matching refs:tok_begin
406 char *tok_begin, *tok_end, *append;
419 tok_begin = strstr(path_left, "%{");
421 if (tok_begin && tok_begin != path_left) {
423 append = malloc((tok_begin - path_left) + 1);
425 memcpy(append, path_left, tok_begin - path_left);
426 append[tok_begin - path_left] = '\0';
428 path_left = tok_begin;
430 } else if (tok_begin) {
432 tok_end = strchr(tok_begin, '}');
442 if (_expand_token(context, tok_begin, tok_end, &append)) {