Lines Matching refs:pi
363 lxb_dom_processing_instruction_t *pi; in lxb_dom_document_create_processing_instruction() local
365 pi = lxb_dom_processing_instruction_interface_create(document); in lxb_dom_document_create_processing_instruction()
366 if (pi == NULL) { in lxb_dom_document_create_processing_instruction()
370 lexbor_str_init(&pi->char_data.data, document->text, data_len); in lxb_dom_document_create_processing_instruction()
371 if (pi->char_data.data.data == NULL) { in lxb_dom_document_create_processing_instruction()
372 return lxb_dom_processing_instruction_interface_destroy(pi); in lxb_dom_document_create_processing_instruction()
375 lexbor_str_init(&pi->target, document->text, target_len); in lxb_dom_document_create_processing_instruction()
376 if (pi->target.data == NULL) { in lxb_dom_document_create_processing_instruction()
377 lexbor_str_destroy(&pi->char_data.data, document->text, false); in lxb_dom_document_create_processing_instruction()
379 return lxb_dom_processing_instruction_interface_destroy(pi); in lxb_dom_document_create_processing_instruction()
382 lexbor_str_append(&pi->char_data.data, document->text, data, data_len); in lxb_dom_document_create_processing_instruction()
383 lexbor_str_append(&pi->target, document->text, target, target_len); in lxb_dom_document_create_processing_instruction()
385 return pi; in lxb_dom_document_create_processing_instruction()