Branch Coverage

emitter.c
Criterion Covered Total %
branch 668 2040 32.7


line true false branch
294 7 913 if (!ENQUEUE(emitter, emitter->events, *event)) {
7 0 if (!ENQUEUE(emitter, emitter->events, *event)) {
0 920 if (!ENQUEUE(emitter, emitter->events, *event)) {
299 920 920 while (!yaml_emitter_need_more_events(emitter)) {
300 0 920 if (!yaml_emitter_analyze_event(emitter, emitter->events.head))
302 0 920 if (!yaml_emitter_state_machine(emitter, emitter->events.head))
326 582 1258 if (QUEUE_EMPTY(emitter, emitter->events))
343 200 357 if (emitter->events.tail - emitter->events.head > accumulate)
346 581 338 for (event = emitter->events.head; event != emitter->events.tail; event ++) {
363 19 562 if (!level)
381 109 218 for (tag_directive = emitter->tag_directives.start;
383 0 109 if (strcmp((char *)value.handle, (char *)tag_directive->handle) == 0) {
384 0 0 if (allow_duplicates)
393 218 0 if (!copy.handle || !copy.prefix) {
0 218 if (!copy.handle || !copy.prefix) {
398 0 218 if (!PUSH(emitter, emitter->tag_directives, copy))
0 0 if (!PUSH(emitter, emitter->tag_directives, copy))
0 218 if (!PUSH(emitter, emitter->tag_directives, copy))
417 0 401 if (!PUSH(emitter, emitter->indents, emitter->indent))
0 0 if (!PUSH(emitter, emitter->indents, emitter->indent))
0 401 if (!PUSH(emitter, emitter->indents, emitter->indent))
420 109 292 if (emitter->indent < 0) {
421 46 63 emitter->indent = flow ? emitter->best_indent : 0;
423 289 3 else if (!indentless) {
509 87 0 if (event->type == YAML_STREAM_START_EVENT)
511 87 0 if (!emitter->encoding) {
515 87 0 if (!emitter->encoding) {
519 87 0 if (emitter->best_indent < 2 || emitter->best_indent > 9) {
0 87 if (emitter->best_indent < 2 || emitter->best_indent > 9) {
523 87 0 if (emitter->best_width >= 0
524 0 87 && emitter->best_width <= emitter->best_indent*2) {
528 0 87 if (emitter->best_width < 0) {
532 87 0 if (!emitter->line_break) {
543 0 87 if (emitter->encoding != YAML_UTF8_ENCODING) {
544 0 0 if (!yaml_emitter_write_bom(emitter))
565 109 87 if (event->type == YAML_DOCUMENT_START_EVENT)
575 0 109 if (event->data.document_start.version_directive) {
576 0 0 if (!yaml_emitter_analyze_version_directive(emitter,
581 0 109 for (tag_directive = event->data.document_start.tag_directives.start;
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))
590 218 109 for (tag_directive = default_tag_directives;
592 0 218 if (!yaml_emitter_append_tag_directive(emitter, *tag_directive, 1))
597 86 23 if (!first || emitter->canonical) {
0 86 if (!first || emitter->canonical) {
601 109 0 if ((event->data.document_start.version_directive ||
0 109 if ((event->data.document_start.version_directive ||
603 0 0 != event->data.document_start.tag_directives.end)) &&
606 0 0 if (!yaml_emitter_write_indicator(emitter, "...", 1, 0, 0))
608 0 0 if (!yaml_emitter_write_indent(emitter))
612 0 109 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))
622 0 109 if (event->data.document_start.tag_directives.start
625 0 0 for (tag_directive = event->data.document_start.tag_directives.start;
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 109 if (yaml_emitter_check_empty_document(emitter)) {
645 109 0 if (!implicit) {
646 0 109 if (!yaml_emitter_write_indent(emitter))
648 0 109 if (!yaml_emitter_write_indicator(emitter, "---", 1, 0, 0))
650 0 109 if (emitter->canonical) {
651 0 0 if (!yaml_emitter_write_indent(emitter))
661 87 0 else if (event->type == YAML_STREAM_END_EVENT)
664 0 87 if (!yaml_emitter_flush(emitter))
684 0 109 if (!PUSH(emitter, emitter->states, YAML_EMIT_DOCUMENT_END_STATE))
0 0 if (!PUSH(emitter, emitter->states, YAML_EMIT_DOCUMENT_END_STATE))
0 109 if (!PUSH(emitter, emitter->states, YAML_EMIT_DOCUMENT_END_STATE))
698 109 0 if (event->type == YAML_DOCUMENT_END_EVENT)
700 0 109 if (!yaml_emitter_write_indent(emitter))
702 0 109 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 109 if (!yaml_emitter_flush(emitter))
713 218 109 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 7 27 if (!yaml_emitter_increase_indent(emitter, 0,
3 4 if (!yaml_emitter_increase_indent(emitter, 0,
0 34 if (!yaml_emitter_increase_indent(emitter, 0,
876 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 57 109 if (first)
909 0 57 if (!yaml_emitter_increase_indent(emitter, 0, 0))
913 57 109 if (event->type == YAML_MAPPING_END_EVENT)
921 0 109 if (!yaml_emitter_write_indent(emitter))
924 109 0 if (yaml_emitter_check_simple_key(emitter))
926 0 109 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 109 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 109 0 if (simple) {
953 0 109 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 109 if (!PUSH(emitter, emitter->states,
0 0 if (!PUSH(emitter, emitter->states,
0 109 if (!PUSH(emitter, emitter->states,
1009 0 17 if (!yaml_emitter_process_anchor(emitter))
1023 0 291 if (!yaml_emitter_select_scalar_style(emitter, event))
1025 0 291 if (!yaml_emitter_process_anchor(emitter))
1027 0 291 if (!yaml_emitter_process_tag(emitter))
1029 0 291 if (!yaml_emitter_increase_indent(emitter, 1, 0))
1031 0 291 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 66 if (!yaml_emitter_process_anchor(emitter))
1072 0 66 if (!yaml_emitter_process_tag(emitter))
1075 66 0 if (emitter->flow_level || emitter->canonical
66 0 if (emitter->flow_level || emitter->canonical
1076 66 0 || event->data.mapping_start.style == YAML_FLOW_MAPPING_STYLE
1077 9 57 || 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 66 if (emitter->events.tail - emitter->events.head < 2)
1122 66 0 && emitter->events.head[1].type == YAML_MAPPING_END_EVENT);
9 57 && emitter->events.head[1].type == YAML_MAPPING_END_EVENT);
1142 0 109 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 109 if (length > 128)
1184 278 13 int no_tag = (!emitter->tag_data.handle && !emitter->tag_data.suffix);
278 0 int no_tag = (!emitter->tag_data.handle && !emitter->tag_data.suffix);
1186 278 13 if (no_tag && !event->data.scalar.plain_implicit
0 278 if (no_tag && !event->data.scalar.plain_implicit
1187 0 0 && !event->data.scalar.quoted_implicit) {
1192 0 291 if (style == YAML_ANY_SCALAR_STYLE)
1195 0 291 if (emitter->canonical)
1198 109 182 if (emitter->simple_key_context && emitter->scalar_data.multiline)
0 109 if (emitter->simple_key_context && emitter->scalar_data.multiline)
1201 262 29 if (style == YAML_PLAIN_SCALAR_STYLE)
1203 0 262 if ((emitter->flow_level && !emitter->scalar_data.flow_plain_allowed)
0 0 if ((emitter->flow_level && !emitter->scalar_data.flow_plain_allowed)
1204 262 0 || (!emitter->flow_level && !emitter->scalar_data.block_plain_allowed))
10 252 || (!emitter->flow_level && !emitter->scalar_data.block_plain_allowed))
1206 0 262 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 254 8 if (no_tag && !event->data.scalar.plain_implicit)
0 254 if (no_tag && !event->data.scalar.plain_implicit)
1213 33 258 if (style == YAML_SINGLE_QUOTED_SCALAR_STYLE)
1215 5 28 if (!emitter->scalar_data.single_quoted_allowed)
1219 288 3 if (style == YAML_LITERAL_SCALAR_STYLE || style == YAML_FOLDED_SCALAR_STYLE)
0 288 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 278 13 if (no_tag && !event->data.scalar.quoted_implicit
0 278 if (no_tag && !event->data.scalar.quoted_implicit
1227 0 0 && style != YAML_PLAIN_SCALAR_STYLE)
1245 385 33 if (!emitter->anchor_data.anchor)
1248 17 16 if (!yaml_emitter_write_indicator(emitter,
0 33 if (!yaml_emitter_write_indicator(emitter,
1263 358 43 if (!emitter->tag_data.handle && !emitter->tag_data.suffix)
358 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) {
1453 86 0 for (tag_directive = emitter->tag_directives.start;
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 286 if (string.start == string.end)
1519 0 286 if ((CHECK_AT(string, '-', 0)
1520 0 0 && CHECK_AT(string, '-', 1)
1521 0 0 && CHECK_AT(string, '-', 2))
1522 0 286 || (CHECK_AT(string, '.', 0)
1523 0 0 && CHECK_AT(string, '.', 1)
1524 0 0 && CHECK_AT(string, '.', 2))) {
1530 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));
282 4 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));
281 1 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 260 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));
281 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 260 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));
278 3 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
21 257 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 277 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 257 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 278 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 257 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 278 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 257 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 210 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1532 1389 286 while (string.pointer != string.end)
1534 286 1103 if (string.start == string.pointer)
1536 286 0 if (CHECK(string, '#') || CHECK(string, ',')
286 0 if (CHECK(string, '#') || CHECK(string, ',')
1537 286 0 || CHECK(string, '[') || CHECK(string, ']')
286 0 || CHECK(string, '[') || CHECK(string, ']')
1538 281 5 || CHECK(string, '{') || CHECK(string, '}')
281 0 || CHECK(string, '{') || CHECK(string, '}')
1539 280 1 || CHECK(string, '&') || CHECK(string, '*')
279 1 || CHECK(string, '&') || CHECK(string, '*')
1540 279 0 || CHECK(string, '!') || CHECK(string, '|')
278 1 || CHECK(string, '!') || CHECK(string, '|')
1541 278 0 || CHECK(string, '>') || CHECK(string, '\'')
278 0 || CHECK(string, '>') || CHECK(string, '\'')
1542 278 0 || CHECK(string, '"') || CHECK(string, '%')
278 0 || CHECK(string, '"') || CHECK(string, '%')
1543 278 0 || CHECK(string, '@') || CHECK(string, '`')) {
0 278 || CHECK(string, '@') || CHECK(string, '`')) {
1548 285 1 if (CHECK(string, '?') || CHECK(string, ':')) {
0 285 if (CHECK(string, '?') || CHECK(string, ':')) {
1550 1 0 if (followed_by_whitespace) {
1555 0 286 if (CHECK(string, '-') && followed_by_whitespace) {
0 0 if (CHECK(string, '-') && followed_by_whitespace) {
1562 1103 0 if (CHECK(string, ',') || CHECK(string, '?')
1097 6 if (CHECK(string, ',') || CHECK(string, '?')
1563 1097 0 || CHECK(string, '[') || CHECK(string, ']')
1097 0 || CHECK(string, '[') || CHECK(string, ']')
1564 1097 0 || CHECK(string, '{') || CHECK(string, '}')) {
5 1092 || CHECK(string, '{') || CHECK(string, '}')) {
1568 11 1092 if (CHECK(string, ':')) {
1570 1 10 if (followed_by_whitespace) {
1575 0 1103 if (CHECK(string, '#') && preceded_by_whitespace) {
0 0 if (CHECK(string, '#') && preceded_by_whitespace) {
1581 1371 18 if (!IS_PRINTABLE(string)
1363 8 if (!IS_PRINTABLE(string)
73 1290 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 1308 || (!IS_ASCII(string) && !emitter->unicode)) {
0 69 || (!IS_ASCII(string) && !emitter->unicode)) {
1586 1388 1 if (IS_BREAK(string)) {
1370 18 if (IS_BREAK(string)) {
5 1365 if (IS_BREAK(string)) {
5 0 if (IS_BREAK(string)) {
0 1370 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 1370 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
0 0 if (IS_BREAK(string)) {
1590 85 1304 if (IS_SPACE(string))
1592 0 85 if (string.start == string.pointer) {
1595 0 85 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 85 if (string.pointer+WIDTH(string) == string.end) {
1598 7 78 if (previous_break) {
1604 1303 1 else if (IS_BREAK(string))
1285 18 else if (IS_BREAK(string))
5 1280 else if (IS_BREAK(string))
5 0 else if (IS_BREAK(string))
0 1285 else if (IS_BREAK(string))
0 0 else if (IS_BREAK(string))
0 0 else if (IS_BREAK(string))
0 1285 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 1304 85 preceded_by_whitespace = IS_BLANKZ(string);
1303 1 preceded_by_whitespace = IS_BLANKZ(string);
1302 1 preceded_by_whitespace = IS_BLANKZ(string);
1284 18 preceded_by_whitespace = IS_BLANKZ(string);
5 1279 preceded_by_whitespace = IS_BLANKZ(string);
5 0 preceded_by_whitespace = IS_BLANKZ(string);
0 1284 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
0 1284 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
0 0 preceded_by_whitespace = IS_BLANKZ(string);
5 1279 preceded_by_whitespace = IS_BLANKZ(string);
1625 73 1316 MOVE(string);
57 16 MOVE(string);
0 57 MOVE(string);
0 0 MOVE(string);
1626 1103 286 if (string.pointer != string.end) {
1627 52 1051 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));
1022 81 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 972 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));
1022 0 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 972 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));
1021 1 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 971 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));
1006 15 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
50 956 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 1002 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 956 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 1006 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 956 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 1006 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 956 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));
223 783 followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
1638 286 0 if (leading_space || leading_break || trailing_space || trailing_break) {
286 0 if (leading_space || leading_break || trailing_space || trailing_break) {
286 0 if (leading_space || leading_break || trailing_space || trailing_break) {
4 282 if (leading_space || leading_break || trailing_space || trailing_break) {
1643 0 286 if (trailing_space) {
1647 2 284 if (break_space) {
1653 286 0 if (space_break || special_characters) {
6 280 if (space_break || special_characters) {
1660 6 280 if (line_breaks) {
1665 17 269 if (flow_indicators) {
1669 10 276 if (block_indicators) {
1696 0 17 if (!yaml_emitter_analyze_anchor(emitter,
1702 0 291 if (event->data.scalar.anchor) {
1703 0 0 if (!yaml_emitter_analyze_anchor(emitter,
1707 272 19 if (event->data.scalar.tag && (emitter->canonical ||
272 0 if (event->data.scalar.tag && (emitter->canonical ||
13 259 if (event->data.scalar.tag && (emitter->canonical ||
1709 13 0 && !event->data.scalar.quoted_implicit))) {
1710 0 13 if (!yaml_emitter_analyze_tag(emitter, event->data.scalar.tag))
1713 0 291 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 ||
3 0 if (event->data.sequence_start.tag && (emitter->canonical ||
1726 0 3 if (!yaml_emitter_analyze_tag(emitter,
1733 10 56 if (event->data.mapping_start.anchor) {
1734 0 10 if (!yaml_emitter_analyze_anchor(emitter,
1738 27 39 if (event->data.mapping_start.tag && (emitter->canonical ||
27 0 if (event->data.mapping_start.tag && (emitter->canonical ||
27 0 if (event->data.mapping_start.tag && (emitter->canonical ||
1740 0 27 if (!yaml_emitter_analyze_tag(emitter,
1758 0 0 if (!FLUSH(emitter))
0 0 if (!FLUSH(emitter))
1773 131 301 if (!emitter->indention || emitter->column > indent
131 0 if (!emitter->indention || emitter->column > indent
1774 110 21 || (emitter->column == indent && !emitter->whitespace)) {
0 110 || (emitter->column == indent && !emitter->whitespace)) {
1775 0 301 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
0 301 if (!PUT_BREAK(emitter))
301 0 if (!PUT_BREAK(emitter))
0 0 if (!PUT_BREAK(emitter))
1779 157 432 while (emitter->column < indent) {
1780 0 157 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1801 291 166 if (need_whitespace && !emitter->whitespace) {
91 200 if (need_whitespace && !emitter->whitespace) {
1802 0 91 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1806 675 457 while (string.pointer != string.end) {
1807 0 675 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
675 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1812 232 225 emitter->indention = (emitter->indention && is_indention);
91 141 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 143 109 if (!emitter->whitespace) {
1921 0 143 if (!PUT(emitter, ' '))
0 0 if (!PUT(emitter, ' '))
1925 1049 252 while (string.pointer != string.end)
1927 42 1007 if (IS_SPACE(string)) {
1928 41 1 if (allow_breaks && !spaces
41 0 if (allow_breaks && !spaces
1929 0 41 && emitter->column > emitter->best_width
1930 0 0 && !IS_SPACE_AT(string, 1)) {
1931 0 0 if (!yaml_emitter_write_indent(emitter))
1933 0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
0 0 MOVE(string);
1936 0 42 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
42 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
1941 1007 0 else if (IS_BREAK(string)) {
1007 0 else if (IS_BREAK(string)) {
1 1006 else if (IS_BREAK(string)) {
1 0 else if (IS_BREAK(string)) {
0 1007 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 0 else if (IS_BREAK(string)) {
0 1007 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 1007 if (breaks) {
1953 0 0 if (!yaml_emitter_write_indent(emitter))
1956 0 1007 if (!WRITE(emitter, string))
0 0 if (!WRITE(emitter, string))
938 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 :
0 4 width = (octet & 0x80) == 0x00 ? 1 :
0 0 width = (octet & 0x80) == 0x00 ? 1 :
0 0 width = (octet & 0x80) == 0x00 ? 1 :
2078 14 4 v = (octet & 0x80) == 0x00 ? octet & 0x7F :
4 0 v = (octet & 0x80) == 0x00 ? octet & 0x7F :
0 0 v = (octet & 0x80) == 0x00 ? octet & 0x7F :
0 0 v = (octet & 0x80) == 0x00 ? octet & 0x7F :
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))