wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_wp_has_noncharacters_fallback is private and should not be used in themes or plugins directly.
_wp_has_noncharacters_fallback › WordPress Function
Seit6.9.0
Veraltetn/v
› _wp_has_noncharacters_fallback ( $text )
| Zugriff: |
|
| Parameter: |
|
| Siehe: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Fallback support for determining if a string contains Unicode noncharacters.
Ähnliche Funktionen: _wp_scrub_utf8_fallback, _wp_utf8_encode_fallback, _wp_is_valid_utf8_fallback, wp_rel_callback, _sort_name_callback
Quellcode
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;
}