Lines Matching defs:begin
13 static const char *copy_str(const char *begin, const char *end)
15 char *s = malloc(end - begin + 1);
16 memcpy(s, begin, end - begin);
17 s[end - begin] = '\0';
35 static void value_set_string2(struct cras_expr_value *value, const char *begin,
40 value->u.string = copy_str(begin, end);
360 static struct cras_expr_expression *new_string_literal(const char *begin,
366 value_set_string2(&expr->u.literal, begin, end);
370 static struct cras_expr_expression *new_variable(const char *begin,
376 expr->u.variable = copy_str(begin, end);
436 const char *begin = *str + 1;
437 const char *end = strchr(begin, '"');
440 end = begin;
441 *str = begin;
445 return new_string_literal(begin, end);
470 const char *begin = *str;
473 return new_variable(begin, *str);