PluginProbe
Gutenberg / 14.8.4
Gutenberg v14.8.4
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / lib / experimental / html / class-wp-html-span.php

class-wp-html-span.php in Gutenberg 14.8.4, at lib/experimental/html/class-wp-html-span.php

53 lines 1019 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * HTML Span: Represents a textual span inside an HTML document.
4 *
5 * @package WordPress
6 * @subpackage HTML
7 * @since 6.2.0
8 */
9
10 /**
11 * Represents a textual span inside an HTML document.
12 *
13 * This is a two-tuple in disguise, used to avoid the memory
14 * overhead involved in using an array for the same purpose.
15 *
16 * This class is for internal usage of the WP_HTML_Tag_Processor class.
17 *
18 * @access private
19 * @since 6.2.0
20 *
21 * @see WP_HTML_Tag_Processor
22 */
23 class WP_HTML_Span {
24 /**
25 * Byte offset into document where span begins.
26 *
27 * @since 6.2.0
28 * @var int
29 */
30 public $start;
31
32 /**
33 * Byte offset into document where span ends.
34 *
35 * @since 6.2.0
36 * @var int
37 */
38 public $end;
39
40 /**
41 * Constructor.
42 *
43 * @since 6.2.0
44 *
45 * @param int $start Byte offset into document where replacement span begins.
46 * @param int $end Byte offset into document where replacement span ends.
47 */
48 public function __construct( $start, $end ) {
49 $this->start = $start;
50 $this->end = $end;
51 }
52 }
53