Changeset 58281 for trunk/src/wp-includes/class-wp-token-map.php
- Timestamp:
- 06/02/2024 03:14:35 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-token-map.php
r58188 r58281 436 436 * @since 6.6.0 437 437 * 438 * @param string 439 * @param ?string $case_sensitivity 'ascii-case-insensitive' to ignore ASCII case or default of'case-sensitive'.438 * @param string $word Determine if this word is a lookup key in the map. 439 * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'. 440 440 * @return bool Whether there's an entry for the given word in the map. 441 441 */ … … 522 522 * 523 523 * @param string $text String in which to search for a lookup key. 524 * @param ?int $offset How many bytes into the string where the lookup key ought to start.525 * @param ?int &$matched_token_byte_length Holds byte-length of found token matched, otherwise not set.526 * @param ?string $case_sensitivity 'ascii-case-insensitive' to ignore ASCII case or default of'case-sensitive'.527 * @return string| false Mapped value of lookup key if found, otherwise `false`.524 * @param int $offset Optional. How many bytes into the string where the lookup key ought to start. Default 0. 525 * @param ?int &$matched_token_byte_length Optional. Holds byte-length of found token matched, otherwise not set. Default null. 526 * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'. 527 * @return string|null Mapped value of lookup key if found, otherwise `null`. 528 528 */ 529 529 public function read_token( $text, $offset = 0, &$matched_token_byte_length = null, $case_sensitivity = 'case-sensitive' ) { … … 540 540 return strlen( $this->small_words ) > 0 541 541 ? $this->read_small_token( $text, $offset, $matched_token_byte_length, $case_sensitivity ) 542 : false;542 : null; 543 543 } 544 544 … … 565 565 return strlen( $this->small_words ) > 0 566 566 ? $this->read_small_token( $text, $offset, $matched_token_byte_length, $case_sensitivity ) 567 : false;567 : null; 568 568 } 569 569 … … 573 573 * @since 6.6.0. 574 574 * 575 * @param string 576 * @param ?int $offset How many bytes into the string where the lookup key ought to start.577 * @param ?int &$matched_token_byte_length Holds byte-length of found lookup key if matched, otherwise not set.578 * @param ?string $case_sensitivity 'ascii-case-insensitive' to ignore ASCII case or default of'case-sensitive'.579 * @return string| false Mapped value of lookup key if found, otherwise `false`.575 * @param string $text String in which to search for a lookup key. 576 * @param int $offset Optional. How many bytes into the string where the lookup key ought to start. Default 0. 577 * @param ?int &$matched_token_byte_length Optional. Holds byte-length of found lookup key if matched, otherwise not set. Default null. 578 * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'. 579 * @return string|null Mapped value of lookup key if found, otherwise `null`. 580 580 */ 581 581 private function read_small_token( $text, $offset, &$matched_token_byte_length, $case_sensitivity = 'case-sensitive' ) { … … 617 617 } 618 618 619 return false;619 return null; 620 620 } 621 621 … … 693 693 * @since 6.6.0 694 694 * 695 * @param ?string $indent Use this string for indentation, or rely on the default horizontal tab character.695 * @param string $indent Optional. Use this string for indentation, or rely on the default horizontal tab character. Default "\t". 696 696 * @return string Value which can be pasted into a PHP source file for quick loading of table. 697 697 */
Note: See TracChangeset
for help on using the changeset viewer.