Lines Matching refs:length
620 yaml_check_utf8(yaml_char_t *start, size_t length) in yaml_check_utf8() argument
622 yaml_char_t *end = start+length; in yaml_check_utf8()
817 yaml_char_t *value, int length, in yaml_scalar_event_initialize() argument
841 if (length < 0) { 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()
846 value_copy = yaml_malloc(length+1); in yaml_scalar_event_initialize()
848 memcpy(value_copy, value, length); in yaml_scalar_event_initialize()
849 value_copy[length] = '\0'; in yaml_scalar_event_initialize()
851 SCALAR_EVENT_INIT(*event, anchor_copy, tag_copy, value_copy, length, in yaml_scalar_event_initialize()
1195 yaml_char_t *tag, yaml_char_t *value, int length, in yaml_document_add_scalar() argument
1217 if (length < 0) { 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()
1222 value_copy = yaml_malloc(length+1); in yaml_document_add_scalar()
1224 memcpy(value_copy, value, length); in yaml_document_add_scalar()
1225 value_copy[length] = '\0'; in yaml_document_add_scalar()
1227 SCALAR_NODE_INIT(node, tag_copy, value_copy, length, style, mark, mark); in yaml_document_add_scalar()