Home
last modified time | relevance | path

Searched refs:offset (Results 226 – 250 of 812) sorted by path

12345678910>>...33

/php-src/ext/dom/lexbor/lexbor/dom/interfaces/
H A Dcharacter_data.h44 size_t offset, size_t count);
/php-src/ext/dom/lexbor/lexbor/encoding/
H A Ddecode.c1550 lxb_char_t first, second, third, offset; in lxb_encoding_decode_gb18030() local
1661 offset = (second < 0x7F) ? 0x40 : 0x41; in lxb_encoding_decode_gb18030()
1667 pointer = (first - 0x81) * 190 + (second - offset); in lxb_encoding_decode_gb18030()
2983 lxb_char_t first, second, third, offset; in lxb_encoding_decode_gb18030_single() local
3054 offset = (second < 0x7F) ? 0x40 : 0x41; in lxb_encoding_decode_gb18030_single()
3060 pointer = (first - 0x81) * 190 + (second - offset); in lxb_encoding_decode_gb18030_single()
/php-src/ext/dom/lexbor/lexbor/html/tokenizer/
H A Dstate.h101 #define lxb_html_tokenizer_state_token_set_end_down(tkz, v_end, offset) \ argument
104 v_end, offset); \
/php-src/ext/dom/lexbor/patches/
H A D0001-Expose-line-and-column-information-for-use-in-PHP.patch77 + /* Other characters can be mapped back to the unicode codepoint offset because UTF…
/php-src/ext/dom/
H A Dnodelist.c257 ZVAL_DEREF(offset); in dom_modern_nodelist_get_index()
259 if (Z_TYPE_P(offset) == IS_LONG) { in dom_modern_nodelist_get_index()
261 ret.lval = Z_LVAL_P(offset); in dom_modern_nodelist_get_index()
262 } else if (Z_TYPE_P(offset) == IS_DOUBLE) { in dom_modern_nodelist_get_index()
264 ret.lval = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in dom_modern_nodelist_get_index()
265 } else if (Z_TYPE_P(offset) == IS_STRING) { in dom_modern_nodelist_get_index()
267 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), lval)) { in dom_modern_nodelist_get_index()
272 ret.str = Z_STR_P(offset); in dom_modern_nodelist_get_index()
283 if (UNEXPECTED(!offset)) { in dom_modern_nodelist_read_dimension()
288 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(offset); in dom_modern_nodelist_read_dimension()
[all …]
H A Dnodelist.h36 dom_nodelist_dimension_index dom_modern_nodelist_get_index(const zval *offset);
37 zval *dom_modern_nodelist_read_dimension(zend_object *object, zval *offset, int type, zval *rv);
H A Dphp_dom.c2186 if (UNEXPECTED(!offset)) { in dom_nodelist_read_dimension()
2191 ZVAL_DEREF(offset); in dom_nodelist_read_dimension()
2211 zend_long offset; in dom_nodelist_has_dimension() local
2217 return offset >= 0 && offset < php_dom_get_nodelist_length(php_dom_obj_from_obj(object)); in dom_nodelist_has_dimension()
2278 if (UNEXPECTED(!offset)) { in dom_nodemap_read_dimension()
2283 ZVAL_DEREF(offset); in dom_nodemap_read_dimension()
2309 zend_long offset; in dom_nodemap_has_dimension() local
2320 if (UNEXPECTED(!offset)) { in dom_modern_nodemap_read_dimension()
2327 ZVAL_DEREF(offset); in dom_modern_nodemap_read_dimension()
2365 return offset >= 0 && offset < php_dom_get_namednodemap_length(obj); in dom_modern_nodemap_has_dimension()
[all …]
H A Dphp_dom.stub.php543 public function substringData(int $offset, int $count) {} argument
546 public function insertData(int $offset, string $data): bool {} argument
549 public function deleteData(int $offset, int $count): bool {} argument
552 public function replaceData(int $offset, int $count, string $data): bool {} argument
919 public function splitText(int $offset) {} argument
1411 public function substringData(int $offset, int $count): string {} argument
1413 public function insertData(int $offset, string $data): void {} argument
1414 public function deleteData(int $offset, int $count): void {} argument
1415 public function replaceData(int $offset, int $count, string $data): void {} argument
1432 public function splitText(int $offset): Text {} argument
H A Dphp_dom_arginfo.h180 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
185 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
190 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
195 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
492 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
839 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
848 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
853 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
858 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
872 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
H A Dtext.c109 zend_long offset; in PHP_METHOD() local
114 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &offset) == FAILURE) { in PHP_METHOD()
119 if (offset < 0) { in PHP_METHOD()
131 if (ZEND_LONG_INT_OVFL(offset) || (int)offset > length) { in PHP_METHOD()
138 first = xmlUTF8Strndup(cur, (int)offset); in PHP_METHOD()
139 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_METHOD()
H A Dxml_document.c311 size_t offset = php_stream_tell(stream); in php_new_dom_dump_node_to_file() local
315 return status < 0 ? status : (zend_long) offset; in php_new_dom_dump_node_to_file()
/php-src/ext/dom/tests/
H A DDOMCharacterData_deleteData_error_002.phpt2 DOMCharacterData::deleteData() with offset exceeding string size.
H A DDOMComment_insertData_basic.phpt11 //correct offset
H A DDOMComment_insertData_error1.phpt11 //Negative offset
18 echo "Throws DOMException for -ve offset\n";
24 Throws DOMException for -ve offset
H A DDOMComment_insertData_error2.phpt11 //offset to large
18 echo "Throws DOMException for offset too large\n";
24 Throws DOMException for offset too large
H A DDOMComment_replaceData_error1.phpt11 //Negative offset
18 echo "Throws DOMException for -ve offset\n";
24 Throws DOMException for -ve offset
H A DDOMComment_replaceData_error2.phpt11 //offset to large
18 echo "Throws DOMException for offset too large\n";
24 Throws DOMException for offset too large
H A DDOMNamedNodeMap_edge_case_offset.phpt29 Cannot access DOMNamedNodeMap without offset
H A Dbug67949.phpt29 $offset = ['test'];
30 var_dump($offset);
31 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
35 $offset = &$something;
37 var_dump($offset);
38 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
41 $offset = 'test';
42 var_dump($offset);
43 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
68 --- testing offset not a long: array ---
[all …]
/php-src/ext/dom/tests/modern/html/interactions/
H A DHTMLCollection_dimension_errors.phpt31 Cannot access offset of type bool on Dom\HTMLCollection
32 Cannot access offset of type bool in isset or empty
/php-src/ext/dom/tests/modern/spec/
H A DCharacterData_insertData_negative_offset.phpt2 insertData() negative offset
H A DCharacterData_insertData_negative_offset_mod32.phpt2 insertData() negative offset (mod 32)
H A DNamedNodeMap_dimensions.phpt61 Cannot access offset of type bool on Dom\NamedNodeMap
63 Cannot access offset of type null on Dom\NamedNodeMap
H A DNodeList_dimensions.phpt61 Cannot access offset of type bool on Dom\NodeList
63 Cannot access offset of type null on Dom\NodeList
73 Cannot access offset of type string on Dom\NodeList
75 Cannot access offset of type string on Dom\NodeList
H A DText_splitText_edge_case.phpt23 Dom\Text::splitText(): Argument #1 ($offset) must be greater than or equal to 0

Completed in 78 milliseconds

12345678910>>...33