wpseek.com
A WordPress-centric search engine for devs and theme authors
_wp_has_noncharacters_fallback is private and should not be used in themes or plugins directly.
_wp_has_noncharacters_fallback › WordPress Function
Since6.9.0
Deprecatedn/a
› _wp_has_noncharacters_fallback ( $text )
| Access: |
|
| Parameters: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
| Codex: |
Fallback support for determining if a string contains Unicode noncharacters.
Related Functions: _wp_scrub_utf8_fallback, _wp_utf8_encode_fallback, _wp_is_valid_utf8_fallback, wp_rel_callback, _sort_name_callback
Source
function _wp_has_noncharacters_fallback( string $text ): bool {
$at = 0;
$invalid_length = 0;
$has_noncharacters = false;
$end = strlen( $text );
while ( $at < $end && ! $has_noncharacters ) {
_wp_scan_utf8( $text, $at, $invalid_length, null, null, $has_noncharacters );
$at += $invalid_length;
}
return $has_noncharacters;
}