Branch Coverage

emitter.c
Criterion Covered Total %
branch 673 2040 32.9


line true false branch
294 7 929 if (!ENQUEUE(emitter, emitter->events, *event)) {
7 0 if (!ENQUEUE(emitter, emitter->events, *event)) {
0 936 if (!ENQUEUE(emitter, emitter->events, *event)) {
299 936 936 while (!yaml_emitter_need_more_events(emitter)) {
300 0 936 if (!yaml_emitter_analyze_event(emitter, emitter->events.head))
302 0 936 if (!yaml_emitter_state_machine(emitter, emitter->events.head))
326 590 1282 if (QUEUE_EMPTY(emitter, emitter->events))
343 204 365 if (emitter->events.tail - emitter->events.head > accumulate)
346 595 346 for (event = emitter->events.head; event != emitter->events.tail; event ++) {
363 19 576 if (!level)
382 111 222 tag_directive != emitter->tag_directives.top; tag_directive ++) {
383 0 111 if (strcmp((char *)value.handle, (char *)tag_directive->handle) == 0) {
384 0 0 if (allow_duplicates)
393 222 0 if (!copy.handle || !copy.prefix) {
0 222 if (!copy.handle || !copy.prefix) {
398 0 222 if (!PUSH(emitter, emitter->tag_directives, copy))
0 0 if (!PUSH(emitter, emitter->tag_directives, copy))
0 222 if (!PUSH(emitter, emitter->tag_directives, copy))
417 0 407 if (!PUSH(emitter, emitter->indents, emitter->indent))
0 0 if (!PUSH(emitter, emitter->indents, emitter->indent))
0 407 if (!PUSH(emitter, emitter->indents, emitter->indent))
420 111 296 if (emitter->indent < 0) {
421 46 65 emitter->indent = flow ? emitter->best_indent : 0;
423 293 3 else if (!indentless) {
509 89 0 if (event->type == YAML_STREAM_START_EVENT)
511 89 0 if (!emitter->encoding) {
515 89 0 if (!emitter->encoding) {
519 89 0 if (emitter->best_indent < 2 || emitter->best_indent > 9) {
0 89 if (emitter->best_indent < 2 || emitter->best_indent > 9) {
523 89 0 if (emitter->best_width >= 0
524 0 89 && emitter->best_width <= emitter->best_indent*2) {
528 0 89 if (emitter->best_width < 0) {
532 89 0 if (!emitter->line_break) {
543 0 89 if (emitter->encoding != YAML_UTF8_ENCODING) {
544 0 0 if (!yaml_emitter_write_bom(emitter))
565 111 89 if (event->type == YAML_DOCUMENT_START_EVENT)
575 0 111 if (event->data.document_start.version_directive) {
576 0 0 if (!yaml_emitter_analyze_version_directive(emitter,
582 0 111 tag_directive != event->data.document_start.tag_directives.end;
584 0 0 if (!yaml_emitter_analyze_tag_directive(emitter, *tag_directive))
586 0 0 if (!yaml_emitter_append_tag_directive(emitter, *tag_directive, 0))
591 222 111 tag_directive->handle; tag_directive ++) {
592 0 222 if (!yaml_emitter_append_tag_directive(emitter, *tag_directive, 1))
597 88 23 if (!first || emitter->canonical) {
0 88 if (!first || emitter->canonical) {
601 111 0 if ((event->data.document_start.version_directive ||
603 0 111 != event->data.document_start.tag_directives.end)) &&
604 0 0 emitter->open_ended)
606 0 0 if (!yaml_emitter_write_indicator(emitter, "...", 1, 0, 0))
608 0 0 if (!yaml_emitter_write_indent(emitter))
612 0 111 if (event->data.document_start.version_directive) {
614 0 0 if (!yaml_emitter_write_indicator(emitter, "%YAML", 1, 0, 0))
616 0 0 if (!yaml_emitter_write_indicator(emitter, "1.1", 1, 0, 0))
618 0 0 if (!yaml_emitter_write_indent(emitter))
623 0 111 != event->data.document_start.tag_directives.end) {
626 0 0 tag_directive != event->data.document_start.tag_directives.end;
628 0 0 if (!yaml_emitter_write_indicator(emitter, "%TAG", 1, 0, 0))
630 0 0 if (!yaml_emitter_write_tag_handle(emitter, tag_directive->handle,
633 0 0 if (!yaml_emitter_write_tag_content(emitter, tag_directive->prefix,
636 0 0 if (!yaml_emitter_write_indent(emitter))
641 0 111 if (yaml_emitter_check_empty_document(emitter)) {
645 111 0 if (!implicit) {
646 0 111 if (!yaml_emitter_write_indent(emitter))
648 0 111 if (!yaml_emitter_write_indicator(emitter, "---", 1, 0, 0))
650 0 111 if (emitter->canonical) {
651 0 0 if (!yaml_emitter_write_indent(emitter))
661 89 0 else if (event->type == YAML_STREAM_END_EVENT)
664 0 89 if (!yaml_emitter_flush(emitter))
684 0 111 if (!PUSH(emitter, emitter->states, YAML_EMIT_DOCUMENT_END_STATE))
0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_DOCUMENT_END_STATE))
0 111 if (!PUSH(emitter, emitter->states, YAML_EMIT_DOCUMENT_END_STATE))
698 111 0 if (event->type == YAML_DOCUMENT_END_EVENT)
700 0 111 if (!yaml_emitter_write_indent(emitter))
702 0 111 if (!event->data.document_end.implicit) {
703 0 0 if (!yaml_emitter_write_indicator(emitter, "...", 1, 0, 0))
705 0 0 if (!yaml_emitter_write_indent(emitter))
708 0 111 if (!yaml_emitter_flush(emitter))
713 222 111 while (!STACK_EMPTY(emitter, emitter->tag_directives)) {
736 10 0 if (first)
738 0 10 if (!yaml_emitter_write_indicator(emitter, "[", 1, 1, 0))
740 0 10 if (!yaml_emitter_increase_indent(emitter, 1, 0))
745 10 0 if (event->type == YAML_SEQUENCE_END_EVENT)
749 0 10 if (emitter->canonical && !first) {
0 0 if (emitter->canonical && !first) {
750 0 0 if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0))
752 0 0 if (!yaml_emitter_write_indent(emitter))
755 0 10 if (!yaml_emitter_write_indicator(emitter, "]", 0, 0, 0))
762 0 0 if (!first) {
763 0 0 if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0))
767 0 0 if (emitter->canonical || emitter->column > emitter->best_width) {
0 0 if (emitter->canonical || emitter->column > emitter->best_width) {
768 0 0 if (!yaml_emitter_write_indent(emitter))
771 0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE))
0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE))
0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE))
785 9 0 if (first)
787 0 9 if (!yaml_emitter_write_indicator(emitter, "{", 1, 1, 0))
789 0 9 if (!yaml_emitter_increase_indent(emitter, 1, 0))
794 9 0 if (event->type == YAML_MAPPING_END_EVENT)
798 0 9 if (emitter->canonical && !first) {
0 0 if (emitter->canonical && !first) {
799 0 0 if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0))
801 0 0 if (!yaml_emitter_write_indent(emitter))
804 0 9 if (!yaml_emitter_write_indicator(emitter, "}", 0, 0, 0))
811 0 0 if (!first) {
812 0 0 if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0))
815 0 0 if (emitter->canonical || emitter->column > emitter->best_width) {
0 0 if (emitter->canonical || emitter->column > emitter->best_width) {
816 0 0 if (!yaml_emitter_write_indent(emitter))
820 0 0 if (!emitter->canonical && yaml_emitter_check_simple_key(emitter))
0 0 if (!emitter->canonical && yaml_emitter_check_simple_key(emitter))
822 0 0 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
830 0 0 if (!yaml_emitter_write_indicator(emitter, "?", 1, 0, 0))
832 0 0 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
848 0 0 if (simple) {
849 0 0 if (!yaml_emitter_write_indicator(emitter, ":", 0, 0, 0))
853 0 0 if (emitter->canonical || emitter->column > emitter->best_width) {
0 0 if (emitter->canonical || emitter->column > emitter->best_width) {
854 0 0 if (!yaml_emitter_write_indent(emitter))
857 0 0 if (!yaml_emitter_write_indicator(emitter, ":", 1, 0, 0))
860 0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_MAPPING_KEY_STATE))
0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_MAPPING_KEY_STATE))
0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_FLOW_MAPPING_KEY_STATE))
873 34 91 if (first)
875 0 34 if (!yaml_emitter_increase_indent(emitter, 0,
876 7 27 emitter->indentless_map && (emitter->mapping_context && !emitter->indention)))
3 4 emitter->indentless_map && (emitter->mapping_context && !emitter->indention)))
3 0 emitter->indentless_map && (emitter->mapping_context && !emitter->indention)))
880 34 91 if (event->type == YAML_SEQUENCE_END_EVENT)
888 0 91 if (!yaml_emitter_write_indent(emitter))
890 0 91 if (!yaml_emitter_write_indicator(emitter, "-", 1, 0, 1))
892 0 91 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 91 if (!PUSH(emitter, emitter->states,
907 59 111 if (first)
909 0 59 if (!yaml_emitter_increase_indent(emitter, 0, 0))
913 59 111 if (event->type == YAML_MAPPING_END_EVENT)
921 0 111 if (!yaml_emitter_write_indent(emitter))
924 111 0 if (yaml_emitter_check_simple_key(emitter))
926 0 111 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 111 if (!PUSH(emitter, emitter->states,
934 0 0 if (!yaml_emitter_write_indicator(emitter, "?", 1, 0, 1))
936 0 0 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
952 111 0 if (simple) {
953 0 111 if (!yaml_emitter_write_indicator(emitter, ":", 0, 0, 0))
957 0 0 if (!yaml_emitter_write_indent(emitter))
959 0 0 if (!yaml_emitter_write_indicator(emitter, ":", 1, 0, 1))
962 0 111 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 111 if (!PUSH(emitter, emitter->states,
1009 0 17 if (!yaml_emitter_process_anchor(emitter))
1023 0 295 if (!yaml_emitter_select_scalar_style(emitter, event))
1025 0 295 if (!yaml_emitter_process_anchor(emitter))
1027 0 295 if (!yaml_emitter_process_tag(emitter))
1029 0 295 if (!yaml_emitter_increase_indent(emitter, 1, 0))
1031 0 295 if (!yaml_emitter_process_scalar(emitter))
1046 0 44 if (!yaml_emitter_process_anchor(emitter))
1048 0 44 if (!yaml_emitter_process_tag(emitter))
1051 44 0 if (emitter->flow_level || emitter->canonical
44 0 if (emitter->flow_level || emitter->canonical
1052 44 0 || event->data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE
1053 10 34 || yaml_emitter_check_empty_sequence(emitter)) {
1070 0 68 if (!yaml_emitter_process_anchor(emitter))
1072 0 68 if (!yaml_emitter_process_tag(emitter))
1075 68 0 if (emitter->flow_level || emitter->canonical
68 0 if (emitter->flow_level || emitter->canonical
1076 68 0 || event->data.mapping_start.style == YAML_FLOW_MAPPING_STYLE
1077 9 59 || yaml_emitter_check_empty_mapping(emitter)) {
1104 0 44 if (emitter->events.tail - emitter->events.head < 2)
1108 44 0 && emitter->events.head[1].type == YAML_SEQUENCE_END_EVENT);
10 34 && emitter->events.head[1].type == YAML_SEQUENCE_END_EVENT);
1118 0 68 if (emitter->events.tail - emitter->events.head < 2)
1122 68 0 && emitter->events.head[1].type == YAML_MAPPING_END_EVENT);
9 59 && emitter->events.head[1].type == YAML_MAPPING_END_EVENT);
1142 0 111 if (emitter->scalar_data.multiline)
1151 0 0 if (!yaml_emitter_check_empty_sequence(emitter))
1159 0 0 if (!yaml_emitter_check_empty_mapping(emitter))
1170 0 111 if (length > 128)
1184 282 13 int no_tag = (!emitter->tag_data.handle && !emitter->tag_data.suffix);
282 0 int no_tag = (!emitter->tag_data.handle && !emitter->tag_data.suffix);
1186 282 13 if (no_tag && !event->data.scalar.plain_implicit
0 282 if (no_tag && !event->data.scalar.plain_implicit
1187 0 0 && !event->data.scalar.quoted_implicit) {
1192 0 295 if (style == YAML_ANY_SCALAR_STYLE)
1195 0 295 if (emitter->canonical)
1198 111 184 if (emitter->simple_key_context && emitter->scalar_data.multiline)
0 111 if (emitter->simple_key_context && emitter->scalar_data.multiline)
1201 266 29 if (style == YAML_PLAIN_SCALAR_STYLE)
1203 0 266 if ((emitter->flow_level && !emitter->scalar_data.flow_plain_allowed)
0 0 if ((emitter->flow_level && !emitter->scalar_data.flow_plain_allowed)
1204 266 0 || (!emitter->flow_level && !emitter->scalar_data.block_plain_allowed))
10 256 || (!emitter->flow_level && !emitter->scalar_data.block_plain_allowed))
1206 0 266 if (!emitter->scalar_data.length
1207 0 0 && (emitter->flow_level || emitter->simple_key_context))
0 0 && (emitter->flow_level || emitter->simple_key_context))
1209 258 8 if (no_tag && !event->data.scalar.plain_implicit)
0 258 if (no_tag && !event->data.scalar.plain_implicit)
1213 33 262 if (style == YAML_SINGLE_QUOTED_SCALAR_STYLE)
1215 5 28 if (!emitter->scalar_data.single_quoted_allowed)
1219 292 3 if (style == YAML_LITERAL_SCALAR_STYLE || style == YAML_FOLDED_SCALAR_STYLE)
0 292 if (style == YAML_LITERAL_SCALAR_STYLE || style == YAML_FOLDED_SCALAR_STYLE)
1221 3 0 if (!emitter->scalar_data.block_allowed
1222 3 0 || emitter->flow_level || emitter->simple_key_context)
0 3 || emitter->flow_level || emitter->simple_key_context)
1226 282 13 if (no_tag && !event->data.scalar.quoted_implicit
0 282 if (no_tag && !event->data.scalar.quoted_implicit
1227 0 0 && style != YAML_PLAIN_SCALAR_STYLE)
1245 391 33 if (!emitter->anchor_data.anchor)
1248 0 33 if (!yaml_emitter_write_indicator(emitter,
1249 17 16 (emitter->anchor_data.alias ? "*" : "&"), 1, 0, 0))
1263 364 43 if (!emitter->tag_data.handle && !emitter->tag_data.suffix)
364 0 if (!emitter->tag_data.handle && !emitter->tag_data.suffix)
1266 43 0 if (emitter->tag_data.handle)
1268 0 43 if (!yaml_emitter_write_tag_handle(emitter, emitter->tag_data.handle,
1271 43 0 if (emitter->tag_data.suffix) {
1272 0 43 if (!yaml_emitter_write_tag_content(emitter, emitter->tag_data.suffix,
1279 0 0 if (!yaml_emitter_write_indicator(emitter, "!<", 1, 0, 0))
1281 0 0 if (!yaml_emitter_write_tag_content(emitter, emitter->tag_data.suffix,
1284 0 0 if (!yaml_emitter_write_indicator(emitter, ">", 0, 0, 0))
1338 0 0 if (version_directive.major != 1 || version_directive.minor != 1) {
0 0 if (version_directive.major != 1 || version_directive.minor != 1) {
1364 0 0 if (handle.start == handle.end) {
1369 0 0 if (handle.start[0] != '!') {
1374 0 0 if (handle.end[-1] != '!') {
1381 0 0 while (handle.pointer < handle.end-1) {
1382 0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
0 0 if (!IS_ALPHA(handle)) {
1386 0 0 MOVE(handle);
0 0 MOVE(handle);
0 0 MOVE(handle);
0 0 MOVE(handle);
1389 0 0 if (prefix.start == prefix.end) {
1411 0 33 if (string.start == string.end) {
1412 0 0 return yaml_emitter_set_emitter_error(emitter, alias ?
1417 33 33 while (string.pointer != string.end) {
1418 33 0 if (!IS_ALPHA(string)) {
0 33 if (!IS_ALPHA(string)) {
0 0 if (!IS_ALPHA(string)) {
0 0 if (!IS_ALPHA(string)) {
0 0 if (!IS_ALPHA(string)) {
0 0 if (!IS_ALPHA(string)) {
0 0 if (!IS_ALPHA(string)) {
0 0 if (!IS_ALPHA(string)) {
1419 0 0 return yaml_emitter_set_emitter_error(emitter, alias ?
1423 0 33 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
1448 0 43 if (string.start == string.end) {
1454 86 0 tag_directive != emitter->tag_directives.top; tag_directive ++) {
1456 86 0 if (prefix_length < (size_t)(string.end - string.start)
1457 43 43 && strncmp((char *)tag_directive->prefix, (char *)string.start,
1508 5 290 if (string.start == string.end)
1519 0 290 if ((CHECK_AT(string, '-', 0)
1520 0 0 && CHECK_AT(string, '-', 1)
1521 0 0 && CHECK_AT(string, '-', 2))
1522 0 290 || (CHECK_AT(string, '.', 0)
1523 0 0 && CHECK_AT(string, '.', 1)
1524 0 0 && CHECK_AT(string, '.', 2))) {
1530 21 269 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
286 4 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 265 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
285 1 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 264 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
285 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 264 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
282 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 261 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1 281 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 1 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 261 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 282 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 261 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 282 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 261 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
18 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 18 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
68 214 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1532 1613 290 while (string.pointer != string.end)
1534 290 1323 if (string.start == string.pointer)
1536 290 0 if (CHECK(string, '#') || CHECK(string, ',')
290 0 if (CHECK(string, '#') || CHECK(string, ',')
1537 290 0 || CHECK(string, '[') || CHECK(string, ']')
290 0 || CHECK(string, '[') || CHECK(string, ']')
1538 285 5 || CHECK(string, '{') || CHECK(string, '}')
285 0 || CHECK(string, '{') || CHECK(string, '}')
1539 284 1 || CHECK(string, '&') || CHECK(string, '*')
283 1 || CHECK(string, '&') || CHECK(string, '*')
1540 283 0 || CHECK(string, '!') || CHECK(string, '|')
282 1 || CHECK(string, '!') || CHECK(string, '|')
1541 282 0 || CHECK(string, '>') || CHECK(string, '\'')
282 0 || CHECK(string, '>') || CHECK(string, '\'')
1542 282 0 || CHECK(string, '"') || CHECK(string, '%')
282 0 || CHECK(string, '"') || CHECK(string, '%')
1543 282 0 || CHECK(string, '@') || CHECK(string, '`')) {
0 282 || CHECK(string, '@') || CHECK(string, '`')) {
1548 289 1 if (CHECK(string, '?') || CHECK(string, ':')) {
0 289 if (CHECK(string, '?') || CHECK(string, ':')) {
1550 1 0 if (followed_by_whitespace) {
1555 0 290 if (CHECK(string, '-') && followed_by_whitespace) {
0 0 if (CHECK(string, '-') && followed_by_whitespace) {
1562 1319 4 if (CHECK(string, ',') || CHECK(string, '?')
1313 6 if (CHECK(string, ',') || CHECK(string, '?')
1563 1313 0 || CHECK(string, '[') || CHECK(string, ']')
1313 0 || CHECK(string, '[') || CHECK(string, ']')
1564 1313 0 || CHECK(string, '{') || CHECK(string, '}')) {
5 1308 || CHECK(string, '{') || CHECK(string, '}')) {
1568 11 1312 if (CHECK(string, ':')) {
1570 1 10 if (followed_by_whitespace) {
1575 0 1323 if (CHECK(string, '#') && preceded_by_whitespace) {
0 0 if (CHECK(string, '#') && preceded_by_whitespace) {
1581 1595 18 if (!IS_PRINTABLE(string)
1587 8 if (!IS_PRINTABLE(string)
73 1514 if (!IS_PRINTABLE(string)
5 76 if (!IS_PRINTABLE(string)
4 1 if (!IS_PRINTABLE(string)
68 12 if (!IS_PRINTABLE(string)
0 68 if (!IS_PRINTABLE(string)
0 12 if (!IS_PRINTABLE(string)
0 0 if (!IS_PRINTABLE(string)
12 0 if (!IS_PRINTABLE(string)
0 12 if (!IS_PRINTABLE(string)
0 0 if (!IS_PRINTABLE(string)
0 0 if (!IS_PRINTABLE(string)
0 0 if (!IS_PRINTABLE(string)
0 0 if (!IS_PRINTABLE(string)
0 0 if (!IS_PRINTABLE(string)
1582 69 1532 || (!IS_ASCII(string) && !emitter->unicode)) {
0 69 || (!IS_ASCII(string) && !emitter->unicode)) {
1586 1612 1 if (IS_BREAK(string)) {
1594 18 if (IS_BREAK(string)) {
5 1589 if (IS_BREAK(string)) {
5 0 if (IS_BREAK(string)) {
0 1594 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 1594 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
1590 119 1494 if (IS_SPACE(string))
1592 0 119 if (string.start == string.pointer) {
1595 0 119 if (string.pointer+WIDTH(string) == string.end) {
0 0 if (string.pointer+WIDTH(string) == string.end) {
0 0 if (string.pointer+WIDTH(string) == string.end) {
0 0 if (string.pointer+WIDTH(string) == string.end) {
0 119 if (string.pointer+WIDTH(string) == string.end) {
1598 7 112 if (previous_break) {
1604 1493 1 else if (IS_BREAK(string))
1475 18 else if (IS_BREAK(string))
5 1470 else if (IS_BREAK(string))
5 0 else if (IS_BREAK(string))
0 1475 else if (IS_BREAK(string))
0 0 else if (IS_BREAK(string))
0 0 else if (IS_BREAK(string))
0 1475 else if (IS_BREAK(string))
0 0 else if (IS_BREAK(string))
0 0 else if (IS_BREAK(string))
1606 0 19 if (string.start == string.pointer) {
1609 0 19 if (string.pointer+WIDTH(string) == string.end) {
0 0 if (string.pointer+WIDTH(string) == string.end) {
0 0 if (string.pointer+WIDTH(string) == string.end) {
0 0 if (string.pointer+WIDTH(string) == string.end) {
4 15 if (string.pointer+WIDTH(string) == string.end) {
1612 0 19 if (previous_space) {
1624 1494 119 preceded_by_whitespace = IS_BLANKZ(string);
1493 1 preceded_by_whitespace = IS_BLANKZ(string);
1492 1 preceded_by_whitespace = IS_BLANKZ(string);
1474 18 preceded_by_whitespace = IS_BLANKZ(string);
5 1469 preceded_by_whitespace = IS_BLANKZ(string);
5 0 preceded_by_whitespace = IS_BLANKZ(string);
0 1474 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
0 1474 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
5 1469 preceded_by_whitespace = IS_BLANKZ(string);
1625 73 1540 MOVE(string);
57 16 MOVE(string);
0 57 MOVE(string);
0 0 MOVE(string);
1626 1323 290 if (string.pointer != string.end) {
1627 52 1271 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
39 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 39 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1208 115 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1158 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1208 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1158 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1207 1 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1157 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1192 15 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1142 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
4 1188 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 4 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
4 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1142 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 1192 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1142 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 1192 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 1142 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
37 13 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 37 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
0 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
227 965 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1638 290 0 if (leading_space || leading_break || trailing_space || trailing_break) {
290 0 if (leading_space || leading_break || trailing_space || trailing_break) {
290 0 if (leading_space || leading_break || trailing_space || trailing_break) {
4 286 if (leading_space || leading_break || trailing_space || trailing_break) {
1643 0 290 if (trailing_space) {
1647 2 288 if (break_space) {
1653 290 0 if (space_break || special_characters) {
6 284 if (space_break || special_characters) {
1660 6 284 if (line_breaks) {
1665 19 271 if (flow_indicators) {
1669 10 280 if (block_indicators) {
1696 0 17 if (!yaml_emitter_analyze_anchor(emitter,
1702 0 295 if (event->data.scalar.anchor) {
1703 0 0 if (!yaml_emitter_analyze_anchor(emitter,
1707 276 19 if (event->data.scalar.tag && (emitter->canonical ||
276 0 if (event->data.scalar.tag && (emitter->canonical ||
1708 13 263 (!event->data.scalar.plain_implicit
1709 13 0 && !event->data.scalar.quoted_implicit))) {
1710 0 13 if (!yaml_emitter_analyze_tag(emitter, event->data.scalar.tag))
1713 0 295 if (!yaml_emitter_analyze_scalar(emitter,
1719 6 38 if (event->data.sequence_start.anchor) {
1720 0 6 if (!yaml_emitter_analyze_anchor(emitter,
1724 3 41 if (event->data.sequence_start.tag && (emitter->canonical ||
3 0 if (event->data.sequence_start.tag && (emitter->canonical ||
1725 3 0 !event->data.sequence_start.implicit)) {
1726 0 3 if (!yaml_emitter_analyze_tag(emitter,
1733 10 58 if (event->data.mapping_start.anchor) {
1734 0 10 if (!yaml_emitter_analyze_anchor(emitter,
1738 27 41 if (event->data.mapping_start.tag && (emitter->canonical ||
27 0 if (event->data.mapping_start.tag && (emitter->canonical ||
1739 27 0 !event->data.mapping_start.implicit)) {
1740 0 27 if (!yaml_emitter_analyze_tag(emitter,
1758 0 0 if (!FLUSH(emitter))
0 0 if (!FLUSH(emitter))
1773 133 306 if (!emitter->indention || emitter->column > indent
133 0 if (!emitter->indention || emitter->column > indent
1774 112 21 || (emitter->column == indent && !emitter->whitespace)) {
0 112 || (emitter->column == indent && !emitter->whitespace)) {
1775 0 306 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 306 if (!PUT_BREAK(emitter))
306 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
1779 159 439 while (emitter->column < indent) {
1780 0 159 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1801 293 168 if (need_whitespace && !emitter->whitespace) {
91 202 if (need_whitespace && !emitter->whitespace) {
1802 0 91 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1806 683 461 while (string.pointer != string.end) {
1807 0 683 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
683 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1812 234 227 emitter->indention = (emitter->indention && is_indention);
91 143 emitter->indention = (emitter->indention && is_indention);
1825 33 33 while (string.pointer != string.end) {
1826 0 33 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
33 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1843 43 0 if (!emitter->whitespace) {
1844 0 43 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1848 86 43 while (string.pointer != string.end) {
1849 0 86 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
86 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1867 0 43 if (need_whitespace && !emitter->whitespace) {
0 0 if (need_whitespace && !emitter->whitespace) {
1868 0 0 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1872 530 43 while (string.pointer != string.end) {
1873 487 43 if (IS_ALPHA(string)
487 0 if (IS_ALPHA(string)
453 77 if (IS_ALPHA(string)
426 27 if (IS_ALPHA(string)
426 77 if (IS_ALPHA(string)
0 426 if (IS_ALPHA(string)
77 0 if (IS_ALPHA(string)
77 0 if (IS_ALPHA(string)
1874 77 0 || CHECK(string, ';') || CHECK(string, '/')
34 43 || CHECK(string, ';') || CHECK(string, '/')
1875 34 0 || CHECK(string, '?') || CHECK(string, ':')
0 34 || CHECK(string, '?') || CHECK(string, ':')
1876 0 0 || CHECK(string, '@') || CHECK(string, '&')
0 0 || CHECK(string, '@') || CHECK(string, '&')
1877 0 0 || CHECK(string, '=') || CHECK(string, '+')
0 0 || CHECK(string, '=') || CHECK(string, '+')
1878 0 0 || CHECK(string, '$') || CHECK(string, ',')
0 0 || CHECK(string, '$') || CHECK(string, ',')
1879 0 0 || CHECK(string, '_') || CHECK(string, '.')
0 0 || CHECK(string, '_') || CHECK(string, '.')
1880 0 0 || CHECK(string, '~') || CHECK(string, '*')
0 0 || CHECK(string, '~') || CHECK(string, '*')
1881 0 0 || CHECK(string, '\'') || CHECK(string, '(')
0 0 || CHECK(string, '\'') || CHECK(string, '(')
1882 0 0 || CHECK(string, ')') || CHECK(string, '[')
0 0 || CHECK(string, ')') || CHECK(string, '[')
1883 0 0 || CHECK(string, ']')) {
1884 0 530 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
530 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1888 0 0 int width = WIDTH(string);
0 0 int width = WIDTH(string);
0 0 int width = WIDTH(string);
0 0 int width = WIDTH(string);
1890 0 0 while (width --) {
1892 0 0 if (!PUT(emitter, '%'))
0 0 if (!PUT(emitter, '%'))
1894 0 0 if (!PUT(emitter, (v >> 4)
0 0 if (!PUT(emitter, (v >> 4)
0 0 if (!PUT(emitter, (v >> 4)
1897 0 0 if (!PUT(emitter, (v & 0x0F)
0 0 if (!PUT(emitter, (v & 0x0F)
0 0 if (!PUT(emitter, (v & 0x0F)
1920 145 111 if (!emitter->whitespace) {
1921 0 145 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1925 1273 256 while (string.pointer != string.end)
1927 76 1197 if (IS_SPACE(string)) {
1928 75 1 if (allow_breaks && !spaces
75 0 if (allow_breaks && !spaces
1929 1 74 && emitter->column > emitter->best_width
1930 1 0 && !IS_SPACE_AT(string, 1)) {
1931 0 1 if (!yaml_emitter_write_indent(emitter))
1933 0 1 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
1936 0 75 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
75 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1941 1197 0 else if (IS_BREAK(string)) {
1197 0 else if (IS_BREAK(string)) {
1 1196 else if (IS_BREAK(string)) {
1 0 else if (IS_BREAK(string)) {
0 1197 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 1197 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
1942 0 0 if (!breaks && CHECK(string, '\n')) {
0 0 if (!breaks && CHECK(string, '\n')) {
1943 0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
1946 0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
1952 0 1197 if (breaks) {
1953 0 0 if (!yaml_emitter_write_indent(emitter))
1956 0 1197 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1128 69 if (!WRITE(emitter, string))
12 57 if (!WRITE(emitter, string))
57 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1989 0 28 if (!yaml_emitter_write_indicator(emitter, "'", 1, 0, 0))
1992 109 28 while (string.pointer != string.end)
1994 8 101 if (IS_SPACE(string)) {
1995 8 0 if (allow_breaks && !spaces
8 0 if (allow_breaks && !spaces
1996 0 8 && emitter->column > emitter->best_width
1997 0 0 && string.pointer != string.start
1998 0 0 && string.pointer != string.end - 1
1999 0 0 && !IS_SPACE_AT(string, 1)) {
2000 0 0 if (!yaml_emitter_write_indent(emitter))
2002 0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
2005 0 8 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
8 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
2010 101 0 else if (IS_BREAK(string)) {
101 0 else if (IS_BREAK(string)) {
0 101 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 101 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 101 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
2011 0 0 if (!breaks && CHECK(string, '\n')) {
0 0 if (!breaks && CHECK(string, '\n')) {
2012 0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
2015 0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
2022 0 101 if (breaks) {
2023 0 0 if (!yaml_emitter_write_indent(emitter))
2026 0 101 if (CHECK(string, '\'')) {
2027 0 0 if (!PUT(emitter, '\''))
0 0 if (!PUT(emitter, '\''))
2030 0 101 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
101 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
2038 0 28 if (breaks)
2039 0 0 if (!yaml_emitter_write_indent(emitter)) return 0;
2041 0 28 if (!yaml_emitter_write_indicator(emitter, "'", 0, 0, 0))
2059 0 8 if (!yaml_emitter_write_indicator(emitter, "\"", 1, 0, 0))
2062 62 8 while (string.pointer != string.end)
2064 56 6 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
48 8 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
4 44 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
4 8 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
4 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 12 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 12 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
12 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 12 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 50 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
0 0 if (!IS_PRINTABLE(string) || (!emitter->unicode && !IS_ASCII(string))
2065 0 50 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
50 0 || IS_BOM(string) || IS_BREAK(string)
44 6 || IS_BOM(string) || IS_BREAK(string)
0 44 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
0 44 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
0 44 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
0 0 || IS_BOM(string) || IS_BREAK(string)
2066 44 0 || CHECK(string, '"') || CHECK(string, '\\'))
0 44 || CHECK(string, '"') || CHECK(string, '\\'))
2074 4 14 width = (octet & 0x80) == 0x00 ? 1 :
2075 0 4 (octet & 0xE0) == 0xC0 ? 2 :
2076 0 0 (octet & 0xF0) == 0xE0 ? 3 :
2077 0 0 (octet & 0xF8) == 0xF0 ? 4 : 0;
2078 14 4 v = (octet & 0x80) == 0x00 ? octet & 0x7F :
2079 4 0 (octet & 0xE0) == 0xC0 ? octet & 0x1F :
2080 0 0 (octet & 0xF0) == 0xE0 ? octet & 0x0F :
2081 0 0 (octet & 0xF8) == 0xF0 ? octet & 0x07 : 0;
2082 4 18 for (k = 1; k < (int)width; k ++) {
2088 0 18 if (!PUT(emitter, '\\'))
0 0 if (!PUT(emitter, '\\'))
2094 0 5 if (!PUT(emitter, '0'))
0 0 if (!PUT(emitter, '0'))
2099 0 1 if (!PUT(emitter, 'a'))
0 0 if (!PUT(emitter, 'a'))
2104 0 0 if (!PUT(emitter, 'b'))
0 0 if (!PUT(emitter, 'b'))
2109 0 1 if (!PUT(emitter, 't'))
0 0 if (!PUT(emitter, 't'))
2114 0 6 if (!PUT(emitter, 'n'))
0 0 if (!PUT(emitter, 'n'))
2119 0 0 if (!PUT(emitter, 'v'))
0 0 if (!PUT(emitter, 'v'))
2124 0 0 if (!PUT(emitter, 'f'))
0 0 if (!PUT(emitter, 'f'))
2129 0 1 if (!PUT(emitter, 'r'))
0 0 if (!PUT(emitter, 'r'))
2134 0 0 if (!PUT(emitter, 'e'))
0 0 if (!PUT(emitter, 'e'))
2139 0 0 if (!PUT(emitter, '\"'))
0 0 if (!PUT(emitter, '\"'))
2144 0 0 if (!PUT(emitter, '\\'))
0 0 if (!PUT(emitter, '\\'))
2149 0 0 if (!PUT(emitter, 'N'))
0 0 if (!PUT(emitter, 'N'))
2154 0 0 if (!PUT(emitter, '_'))
0 0 if (!PUT(emitter, '_'))
2159 0 0 if (!PUT(emitter, 'L'))
0 0 if (!PUT(emitter, 'L'))
2164 0 0 if (!PUT(emitter, 'P'))
0 0 if (!PUT(emitter, 'P'))
2169 4 0 if (v <= 0xFF) {
2170 0 4 if (!PUT(emitter, 'x'))
0 0 if (!PUT(emitter, 'x'))
2174 0 0 else if (v <= 0xFFFF) {
2175 0 0 if (!PUT(emitter, 'u'))
0 0 if (!PUT(emitter, 'u'))
2180 0 0 if (!PUT(emitter, 'U'))
0 0 if (!PUT(emitter, 'U'))
2184 8 4 for (k = (width-1)*4; k >= 0; k -= 4) {
2186 0 8 if (!PUT(emitter, digit + (digit < 10 ? '0' : 'A'-10)))
0 0 if (!PUT(emitter, digit + (digit < 10 ? '0' : 'A'-10)))
8 0 if (!PUT(emitter, digit + (digit < 10 ? '0' : 'A'-10)))
2192 0 44 else if (IS_SPACE(string)) {
2193 0 0 if (allow_breaks && !spaces
0 0 if (allow_breaks && !spaces
2194 0 0 && emitter->column > emitter->best_width
2195 0 0 && string.pointer != string.start
2196 0 0 && string.pointer != string.end - 1) {
2197 0 0 if (!yaml_emitter_write_indent(emitter))
2199 0 0 if (IS_SPACE_AT(string, 1)) {
2200 0 0 if (!PUT(emitter, '\\'))
0 0 if (!PUT(emitter, '\\'))
2203 0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
2206 0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
2212 0 44 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
44 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
2218 0 8 if (!yaml_emitter_write_indicator(emitter, "\"", 0, 0, 0))
2234 3 0 if (IS_SPACE(string) || IS_BREAK(string)) {
3 0 if (IS_SPACE(string) || IS_BREAK(string)) {
3 0 if (IS_SPACE(string) || IS_BREAK(string)) {
0 3 if (IS_SPACE(string) || IS_BREAK(string)) {
0 0 if (IS_SPACE(string) || IS_BREAK(string)) {
0 3 if (IS_SPACE(string) || IS_BREAK(string)) {
0 0 if (IS_SPACE(string) || IS_BREAK(string)) {
0 0 if (IS_SPACE(string) || IS_BREAK(string)) {
0 3 if (IS_SPACE(string) || IS_BREAK(string)) {
0 0 if (IS_SPACE(string) || IS_BREAK(string)) {
0 0 if (IS_SPACE(string) || IS_BREAK(string)) {
2237 0 0 if (!yaml_emitter_write_indicator(emitter, indent_hint, 0, 0, 0))
2244 0 3 if (string.start == string.pointer) {
2250 0 3 } while ((*string.pointer & 0xC0) == 0x80);
2251 3 0 if (!IS_BREAK(string)) {
2 1 if (!IS_BREAK(string)) {
0 2 if (!IS_BREAK(string)) {
0 0 if (!IS_BREAK(string)) {
0 2 if (!IS_BREAK(string)) {
0 0 if (!IS_BREAK(string)) {
0 0 if (!IS_BREAK(string)) {
0 2 if (!IS_BREAK(string)) {
0 0 if (!IS_BREAK(string)) {
0 0 if (!IS_BREAK(string)) {
2254 0 1 else if (string.start == string.pointer) {
2261 0 1 } while ((*string.pointer & 0xC0) == 0x80);
2262 1 0 if (IS_BREAK(string)) {
1 0 if (IS_BREAK(string)) {
0 1 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 1 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 1 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
2269 2 1 if (chomp_hint) {
2270 0 2 if (!yaml_emitter_write_indicator(emitter, chomp_hint, 0, 0, 0))
2286 0 3 if (!yaml_emitter_write_indicator(emitter, "|", 1, 0, 0))
2288 0 3 if (!yaml_emitter_write_block_scalar_hints(emitter, string))
2290 0 3 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 3 if (!PUT_BREAK(emitter))
3 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
2295 169 3 while (string.pointer != string.end)
2297 169 0 if (IS_BREAK(string))
157 12 if (IS_BREAK(string))
0 157 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 157 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 157 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
2299 0 12 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
12 0 if (!WRITE_BREAK(emitter, string))
0 12 if (!WRITE_BREAK(emitter, string))
12 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
2306 14 143 if (breaks) {
2307 0 14 if (!yaml_emitter_write_indent(emitter))
2310 0 157 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
157 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
2330 0 0 if (!yaml_emitter_write_indicator(emitter, ">", 1, 0, 0))
2332 0 0 if (!yaml_emitter_write_block_scalar_hints(emitter, string))
2334 0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
2339 0 0 while (string.pointer != string.end)
2341 0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
0 0 if (IS_BREAK(string))
2343 0 0 if (!breaks && !leading_spaces && CHECK(string, '\n')) {
0 0 if (!breaks && !leading_spaces && CHECK(string, '\n')) {
0 0 if (!breaks && !leading_spaces && CHECK(string, '\n')) {
2345 0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
0 0 while (IS_BREAK_AT(string, k)) {
2346 0 0 k += WIDTH_AT(string, k);
0 0 k += WIDTH_AT(string, k);
0 0 k += WIDTH_AT(string, k);
0 0 k += WIDTH_AT(string, k);
2348 0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
0 0 if (!IS_BLANKZ_AT(string, k)) {
2349 0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
2353 0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
0 0 if (!WRITE_BREAK(emitter, string))
2360 0 0 if (breaks) {
2361 0 0 if (!yaml_emitter_write_indent(emitter))
2363 0 0 leading_spaces = IS_BLANK(string);
0 0 leading_spaces = IS_BLANK(string);
2365 0 0 if (!breaks && IS_SPACE(string) && !IS_SPACE_AT(string, 1)
0 0 if (!breaks && IS_SPACE(string) && !IS_SPACE_AT(string, 1)
0 0 if (!breaks && IS_SPACE(string) && !IS_SPACE_AT(string, 1)
2366 0 0 && emitter->column > emitter->best_width) {
2367 0 0 if (!yaml_emitter_write_indent(emitter))
2369 0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
2372 0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))