Lines Matching refs:string

518 #define READ(parser,string)                                                     \  argument
519 (STRING_EXTEND(parser,string) ? \
520 (COPY(string,parser->buffer), \
530 #define READ_LINE(parser,string) \ argument
531 (STRING_EXTEND(parser,string) ? \
534 (*((string).pointer++) = (yaml_char_t) '\n', \
542 (*((string).pointer++) = (yaml_char_t) '\n', \
550 (*((string).pointer++) = (yaml_char_t) '\n', \
560 (*((string).pointer++) = *(parser->buffer.pointer++), \
561 *((string).pointer++) = *(parser->buffer.pointer++), \
562 *((string).pointer++) = *(parser->buffer.pointer++), \
719 yaml_mark_t start_mark, yaml_string_t *string);
2116 yaml_string_t string = NULL_STRING; in yaml_parser_scan_directive_name() local
2118 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_directive_name()
2126 if (!READ(parser, string)) goto error; in yaml_parser_scan_directive_name()
2132 if (string.start == string.pointer) { in yaml_parser_scan_directive_name()
2146 *name = string.start; in yaml_parser_scan_directive_name()
2151 STRING_DEL(parser, string); in yaml_parser_scan_directive_name()
2327 yaml_string_t string = NULL_STRING; in yaml_parser_scan_anchor() local
2329 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_anchor()
2342 if (!READ(parser, string)) goto error; in yaml_parser_scan_anchor()
2370 ANCHOR_TOKEN_INIT(*token, string.start, start_mark, end_mark); in yaml_parser_scan_anchor()
2373 ALIAS_TOKEN_INIT(*token, string.start, start_mark, end_mark); in yaml_parser_scan_anchor()
2379 STRING_DEL(parser, string); in yaml_parser_scan_anchor()
2506 yaml_string_t string = NULL_STRING; in yaml_parser_scan_tag_handle() local
2508 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_tag_handle()
2523 if (!READ(parser, string)) goto error; in yaml_parser_scan_tag_handle()
2531 if (!READ(parser, string)) goto error; in yaml_parser_scan_tag_handle()
2539 if (!READ(parser, string)) goto error; in yaml_parser_scan_tag_handle()
2549 if (directive && !(string.start[0] == '!' && string.start[1] == '\0')) { in yaml_parser_scan_tag_handle()
2556 *handle = string.start; in yaml_parser_scan_tag_handle()
2561 STRING_DEL(parser, string); in yaml_parser_scan_tag_handle()
2574 yaml_string_t string = NULL_STRING; in yaml_parser_scan_tag_uri() local
2576 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_tag_uri()
2580 while ((size_t)(string.end - string.start) <= length) { in yaml_parser_scan_tag_uri()
2581 if (!yaml_string_extend(&string.start, &string.pointer, &string.end)) { in yaml_parser_scan_tag_uri()
2594 memcpy(string.start, head+1, length-1); in yaml_parser_scan_tag_uri()
2595 string.pointer += length-1; in yaml_parser_scan_tag_uri()
2625 if (!STRING_EXTEND(parser, string)) in yaml_parser_scan_tag_uri()
2629 directive, start_mark, &string)) goto error; in yaml_parser_scan_tag_uri()
2632 if (!READ(parser, string)) goto error; in yaml_parser_scan_tag_uri()
2642 if (!STRING_EXTEND(parser, string)) in yaml_parser_scan_tag_uri()
2651 *uri = string.start; in yaml_parser_scan_tag_uri()
2656 STRING_DEL(parser, string); in yaml_parser_scan_tag_uri()
2666 yaml_mark_t start_mark, yaml_string_t *string) in yaml_parser_scan_uri_escapes() argument
2719 *(string->pointer++) = octet; in yaml_parser_scan_uri_escapes()
2739 yaml_string_t string = NULL_STRING; in yaml_parser_scan_block_scalar() local
2748 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_block_scalar()
2883 if (!STRING_EXTEND(parser, string)) goto error; in yaml_parser_scan_block_scalar()
2884 *(string.pointer ++) = ' '; in yaml_parser_scan_block_scalar()
2890 if (!JOIN(parser, string, leading_break)) goto error; in yaml_parser_scan_block_scalar()
2896 if (!JOIN(parser, string, trailing_breaks)) goto error; in yaml_parser_scan_block_scalar()
2906 if (!READ(parser, string)) goto error; in yaml_parser_scan_block_scalar()
2925 if (!JOIN(parser, string, leading_break)) goto error; in yaml_parser_scan_block_scalar()
2928 if (!JOIN(parser, string, trailing_breaks)) goto error; in yaml_parser_scan_block_scalar()
2933 SCALAR_TOKEN_INIT(*token, string.start, string.pointer-string.start, in yaml_parser_scan_block_scalar()
2943 STRING_DEL(parser, string); in yaml_parser_scan_block_scalar()
3023 yaml_string_t string = NULL_STRING; in yaml_parser_scan_flow_scalar() local
3029 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_flow_scalar()
3083 if (!STRING_EXTEND(parser, string)) goto error; in yaml_parser_scan_flow_scalar()
3084 *(string.pointer++) = '\''; in yaml_parser_scan_flow_scalar()
3114 if (!STRING_EXTEND(parser, string)) goto error; in yaml_parser_scan_flow_scalar()
3121 *(string.pointer++) = '\0'; in yaml_parser_scan_flow_scalar()
3125 *(string.pointer++) = '\x07'; in yaml_parser_scan_flow_scalar()
3129 *(string.pointer++) = '\x08'; in yaml_parser_scan_flow_scalar()
3134 *(string.pointer++) = '\x09'; in yaml_parser_scan_flow_scalar()
3138 *(string.pointer++) = '\x0A'; in yaml_parser_scan_flow_scalar()
3142 *(string.pointer++) = '\x0B'; in yaml_parser_scan_flow_scalar()
3146 *(string.pointer++) = '\x0C'; in yaml_parser_scan_flow_scalar()
3150 *(string.pointer++) = '\x0D'; in yaml_parser_scan_flow_scalar()
3154 *(string.pointer++) = '\x1B'; in yaml_parser_scan_flow_scalar()
3158 *(string.pointer++) = '\x20'; in yaml_parser_scan_flow_scalar()
3162 *(string.pointer++) = '"'; in yaml_parser_scan_flow_scalar()
3166 *(string.pointer++) = '/'; in yaml_parser_scan_flow_scalar()
3170 *(string.pointer++) = '\''; in yaml_parser_scan_flow_scalar()
3174 *(string.pointer++) = '\\'; in yaml_parser_scan_flow_scalar()
3178 *(string.pointer++) = '\xC2'; in yaml_parser_scan_flow_scalar()
3179 *(string.pointer++) = '\x85'; in yaml_parser_scan_flow_scalar()
3183 *(string.pointer++) = '\xC2'; in yaml_parser_scan_flow_scalar()
3184 *(string.pointer++) = '\xA0'; in yaml_parser_scan_flow_scalar()
3188 *(string.pointer++) = '\xE2'; in yaml_parser_scan_flow_scalar()
3189 *(string.pointer++) = '\x80'; in yaml_parser_scan_flow_scalar()
3190 *(string.pointer++) = '\xA8'; in yaml_parser_scan_flow_scalar()
3194 *(string.pointer++) = '\xE2'; in yaml_parser_scan_flow_scalar()
3195 *(string.pointer++) = '\x80'; in yaml_parser_scan_flow_scalar()
3196 *(string.pointer++) = '\xA9'; in yaml_parser_scan_flow_scalar()
3249 *(string.pointer++) = value; in yaml_parser_scan_flow_scalar()
3252 *(string.pointer++) = 0xC0 + (value >> 6); in yaml_parser_scan_flow_scalar()
3253 *(string.pointer++) = 0x80 + (value & 0x3F); in yaml_parser_scan_flow_scalar()
3256 *(string.pointer++) = 0xE0 + (value >> 12); in yaml_parser_scan_flow_scalar()
3257 *(string.pointer++) = 0x80 + ((value >> 6) & 0x3F); in yaml_parser_scan_flow_scalar()
3258 *(string.pointer++) = 0x80 + (value & 0x3F); in yaml_parser_scan_flow_scalar()
3261 *(string.pointer++) = 0xF0 + (value >> 18); in yaml_parser_scan_flow_scalar()
3262 *(string.pointer++) = 0x80 + ((value >> 12) & 0x3F); in yaml_parser_scan_flow_scalar()
3263 *(string.pointer++) = 0x80 + ((value >> 6) & 0x3F); in yaml_parser_scan_flow_scalar()
3264 *(string.pointer++) = 0x80 + (value & 0x3F); in yaml_parser_scan_flow_scalar()
3279 if (!READ(parser, string)) goto error; in yaml_parser_scan_flow_scalar()
3340 if (!STRING_EXTEND(parser, string)) goto error; in yaml_parser_scan_flow_scalar()
3341 *(string.pointer++) = ' '; in yaml_parser_scan_flow_scalar()
3344 if (!JOIN(parser, string, trailing_breaks)) goto error; in yaml_parser_scan_flow_scalar()
3350 if (!JOIN(parser, string, leading_break)) goto error; in yaml_parser_scan_flow_scalar()
3351 if (!JOIN(parser, string, trailing_breaks)) goto error; in yaml_parser_scan_flow_scalar()
3358 if (!JOIN(parser, string, whitespaces)) goto error; in yaml_parser_scan_flow_scalar()
3371 SCALAR_TOKEN_INIT(*token, string.start, string.pointer-string.start, in yaml_parser_scan_flow_scalar()
3382 STRING_DEL(parser, string); in yaml_parser_scan_flow_scalar()
3399 yaml_string_t string = NULL_STRING; in yaml_parser_scan_plain_scalar() local
3406 if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; in yaml_parser_scan_plain_scalar()
3469 if (!STRING_EXTEND(parser, string)) goto error; in yaml_parser_scan_plain_scalar()
3470 *(string.pointer++) = ' '; in yaml_parser_scan_plain_scalar()
3473 if (!JOIN(parser, string, trailing_breaks)) goto error; in yaml_parser_scan_plain_scalar()
3479 if (!JOIN(parser, string, leading_break)) goto error; in yaml_parser_scan_plain_scalar()
3480 if (!JOIN(parser, string, trailing_breaks)) goto error; in yaml_parser_scan_plain_scalar()
3489 if (!JOIN(parser, string, whitespaces)) goto error; in yaml_parser_scan_plain_scalar()
3496 if (!READ(parser, string)) goto error; in yaml_parser_scan_plain_scalar()
3562 SCALAR_TOKEN_INIT(*token, string.start, string.pointer-string.start, in yaml_parser_scan_plain_scalar()
3578 STRING_DEL(parser, string); in yaml_parser_scan_plain_scalar()