- class
char(php\lib\char) - package
std - source
php/lib/char.php
Description
Char Utils for working with unicode chars (using string[0] char)
Class char
char ::of()char ::ord()char ::count()- Determines the number of {@code char} values needed tochar ::compare()char ::lower()char ::upper()char ::title()char ::isSpace()char ::isDigit()char ::isLetter()char ::isLetterOrDigit()char ::isLower()char ::isUpper()char ::isTitle()char ::isWhitespace()char ::isISOControl()char ::isDefined()- Determines if a character is defined in Unicode.char ::isMirrored()- Determines whether the specified character (Unicode code point)char ::isLowSurrogate()- Determines if the given $char value is achar ::isHighSurrogate()- Determines if the given $char value is achar ::isPrintable()char ::number()- Returns the {@code int} value that the specified Unicode
char::of(int $code): stringchar::ord(string $char): intchar::count(int $code): intDetermines the number of {@code char} values needed to represent the specified character (Unicode code point). If the specified character is equal to or greater than 0x10000, then the method returns 2. Otherwise, the method returns 1.
char::compare(string $char1, string $char2): intchar::lower(string $char): stringchar::upper(string $char): stringchar::title(string $char): stringchar::isSpace(string $char): boolchar::isDigit(string $char): boolchar::isLetter(string $char): boolchar::isLetterOrDigit(string $char): boolchar::isLower(string $char): boolchar::isUpper(string $char): boolchar::isTitle(string $char): boolchar::isWhitespace(string $char): boolchar::isISOControl(string $char): boolchar::isDefined(string $char): boolDetermines if a character is defined in Unicode.
char::isMirrored(string $char): boolDetermines whether the specified character (Unicode code point) is mirrored according to the Unicode specification. Mirrored characters should have their glyphs horizontally mirrored when displayed in text that is right-to-left.
char::isLowSurrogate(string $char): boolDetermines if the given $char value is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
char::isHighSurrogate(string $char): boolDetermines if the given $char value is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
char::isPrintable(string $char): boolchar::number(string $char): intReturns the {@code int} value that the specified Unicode character represents.
__construct(): void