IntlChar::isUWhiteSpace
(PHP 7)
IntlChar::isUWhiteSpace — Check if code point has the White_Space Unicode property
Описание
Check if a code point has the White_Space Unicode property.
This is the same as IntlChar::hasBinaryProperty($codepoint, IntlChar::PROPERTY_WHITE_SPACE)
Замечание:
This is different from both IntlChar::isspace() and IntlChar::isWhitespace().
Список параметров
Возвращаемые значения
Returns TRUE
if
codepoint
has the White_Space Unicode property, FALSE
if not.
Примеры
Пример #1 Testing different code points
<?php
var_dump(IntlChar::isUWhiteSpace("A"));
var_dump(IntlChar::isUWhiteSpace(" "));
var_dump(IntlChar::isUWhiteSpace("\n"));
var_dump(IntlChar::isUWhiteSpace("\t"));
var_dump(IntlChar::isUWhiteSpace("\u{00A0}"));
?>
Результат выполнения данного примера:
bool(false) bool(true) bool(true) bool(true) bool(true)
Смотрите также
- IntlChar::isspace() - Check if code point is a space character
- IntlChar::isWhitespace() - Check if code point is a whitespace character according to ICU
- IntlChar::isJavaSpaceChar() - Check if code point is a space character according to Java
- IntlChar::hasBinaryProperty() - Check a binary Unicode property for a code point
IntlChar::PROPERTY_WHITE_SPACE
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Поддержка языков и кодировок
- Internationalization Functions
- IntlChar::charAge
- IntlChar::charDigitValue
- IntlChar::charDirection
- IntlChar::charFromName
- IntlChar::charMirror
- IntlChar::charName
- IntlChar::charType
- IntlChar::chr
- IntlChar::digit
- IntlChar::enumCharNames
- IntlChar::enumCharTypes
- IntlChar::foldCase
- IntlChar::forDigit
- IntlChar::getBidiPairedBracket
- IntlChar::getBlockCode
- IntlChar::getCombiningClass
- IntlChar::getFC_NFKC_Closure
- IntlChar::getIntPropertyMaxValue
- IntlChar::getIntPropertyMinValue
- IntlChar::getIntPropertyValue
- IntlChar::getNumericValue
- IntlChar::getPropertyEnum
- IntlChar::getPropertyName
- IntlChar::getPropertyValueEnum
- IntlChar::getPropertyValueName
- IntlChar::getUnicodeVersion
- IntlChar::hasBinaryProperty
- IntlChar::isalnum
- IntlChar::isalpha
- IntlChar::isbase
- IntlChar::isblank
- IntlChar::iscntrl
- IntlChar::isdefined
- IntlChar::isdigit
- IntlChar::isgraph
- IntlChar::isIDIgnorable
- IntlChar::isIDPart
- IntlChar::isIDStart
- IntlChar::isISOControl
- IntlChar::isJavaIDPart
- IntlChar::isJavaIDStart
- IntlChar::isJavaSpaceChar
- IntlChar::islower
- IntlChar::isMirrored
- IntlChar::isprint
- IntlChar::ispunct
- IntlChar::isspace
- IntlChar::istitle
- IntlChar::isUAlphabetic
- IntlChar::isULowercase
- IntlChar::isupper
- IntlChar::isUUppercase
- IntlChar::isUWhiteSpace
- IntlChar::isWhitespace
- IntlChar::isxdigit
- IntlChar::ord
- IntlChar::tolower
- IntlChar::totitle
- IntlChar::toupper
Коментарии
404 Not Found