Lines Matching refs:value
590 yaml_free(token->data.alias.value); in yaml_token_delete()
594 yaml_free(token->data.anchor.value); in yaml_token_delete()
603 yaml_free(token->data.scalar.value); in yaml_token_delete()
628 unsigned int value; in yaml_check_utf8() local
636 value = (octet & 0x80) == 0x00 ? octet & 0x7F : in yaml_check_utf8()
645 value = (value << 6) + (octet & 0x3F); in yaml_check_utf8()
648 (width == 2 && value >= 0x80) || in yaml_check_utf8()
649 (width == 3 && value >= 0x800) || in yaml_check_utf8()
650 (width == 4 && value >= 0x10000))) return 0; in yaml_check_utf8()
712 yaml_tag_directive_t value = { NULL, NULL }; in yaml_document_start_event_initialize() local
740 value.handle = yaml_strdup(tag_directive->handle); in yaml_document_start_event_initialize()
741 value.prefix = yaml_strdup(tag_directive->prefix); in yaml_document_start_event_initialize()
742 if (!value.handle || !value.prefix) goto error; in yaml_document_start_event_initialize()
743 if (!PUSH(&context, tag_directives_copy, value)) in yaml_document_start_event_initialize()
745 value.handle = NULL; in yaml_document_start_event_initialize()
746 value.prefix = NULL; in yaml_document_start_event_initialize()
759 yaml_tag_directive_t value = POP(context, tag_directives_copy); in yaml_document_start_event_initialize() local
760 yaml_free(value.handle); in yaml_document_start_event_initialize()
761 yaml_free(value.prefix); in yaml_document_start_event_initialize()
764 yaml_free(value.handle); in yaml_document_start_event_initialize()
765 yaml_free(value.prefix); in yaml_document_start_event_initialize()
817 yaml_char_t *value, int length, in yaml_scalar_event_initialize() argument
827 assert(value); /* Non-NULL anchor is expected. */ in yaml_scalar_event_initialize()
842 length = strlen((char *)value); in yaml_scalar_event_initialize()
845 if (!yaml_check_utf8(value, length)) goto error; in yaml_scalar_event_initialize()
848 memcpy(value_copy, value, length); in yaml_scalar_event_initialize()
1005 yaml_free(event->data.scalar.value); in yaml_event_delete()
1050 yaml_tag_directive_t value = { NULL, NULL }; in yaml_document_initialize() local
1081 value.handle = yaml_strdup(tag_directive->handle); in yaml_document_initialize()
1082 value.prefix = yaml_strdup(tag_directive->prefix); in yaml_document_initialize()
1083 if (!value.handle || !value.prefix) goto error; in yaml_document_initialize()
1084 if (!PUSH(&context, tag_directives_copy, value)) in yaml_document_initialize()
1086 value.handle = NULL; in yaml_document_initialize()
1087 value.prefix = NULL; in yaml_document_initialize()
1101 yaml_tag_directive_t value = POP(&context, tag_directives_copy); in yaml_document_initialize() local
1102 yaml_free(value.handle); in yaml_document_initialize()
1103 yaml_free(value.prefix); in yaml_document_initialize()
1106 yaml_free(value.handle); in yaml_document_initialize()
1107 yaml_free(value.prefix); in yaml_document_initialize()
1133 yaml_free(node.data.scalar.value); in yaml_document_delete()
1195 yaml_char_t *tag, yaml_char_t *value, int length, in yaml_document_add_scalar() argument
1207 assert(value); /* Non-NULL value is expected. */ in yaml_document_add_scalar()
1218 length = strlen((char *)value); in yaml_document_add_scalar()
1221 if (!yaml_check_utf8(value, length)) goto error; in yaml_document_add_scalar()
1224 memcpy(value_copy, value, length); in yaml_document_add_scalar()
1363 int mapping, int key, int value) in yaml_document_append_mapping_pair() argument
1379 assert(value > 0 && document->nodes.start + value <= document->nodes.top); in yaml_document_append_mapping_pair()
1383 pair.value = value; in yaml_document_append_mapping_pair()