Lines Matching refs:buf
517 static void* TIDY_CALL php_tidy_realloc(void *buf, size_t len) in php_tidy_realloc() argument
519 return erealloc(buf, len); in php_tidy_realloc()
522 static void TIDY_CALL php_tidy_free(void *buf) in php_tidy_free() argument
524 efree(buf); in php_tidy_free()
637 TidyBuffer buf; in php_tidy_quick_repair() local
639 tidyBufInit(&buf); in php_tidy_quick_repair()
640 tidyBufAttach(&buf, (byte *) ZSTR_VAL(data), (uint32_t)ZSTR_LEN(data)); in php_tidy_quick_repair()
642 if (tidyParseBuffer(doc, &buf) < 0) { in php_tidy_quick_repair()
798 TidyBuffer buf; in tidy_node_cast_handler() local
817 tidyBufInit(&buf); in tidy_node_cast_handler()
819 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_node_cast_handler()
820 ZVAL_STRINGL(out, (char *) buf.bp, buf.size-1); in tidy_node_cast_handler()
824 tidyBufFree(&buf); in tidy_node_cast_handler()
865 TidyBuffer buf; in tidy_add_default_properties() local
877 tidyBufInit(&buf); in tidy_add_default_properties()
878 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_add_default_properties()
879 ADD_PROPERTY_STRINGL(obj->std.properties, value, buf.bp, buf.size ? buf.size-1 : 0); in tidy_add_default_properties()
880 tidyBufFree(&buf); in tidy_add_default_properties()
1039 TidyBuffer buf; in php_tidy_parse_string() local
1050 tidyBufInit(&buf); in php_tidy_parse_string()
1051 tidyBufAttach(&buf, (byte *) string, len); in php_tidy_parse_string()
1052 if (tidyParseBuffer(obj->ptdoc->doc, &buf) < 0) { in php_tidy_parse_string()