- 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): string
char::ord(string $char): int
char::count(int $code): int
Determines 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): int
char::lower(string $char): string
char::upper(string $char): string
char::title(string $char): string
char::isSpace(string $char): bool
char::isDigit(string $char): bool
char::isLetter(string $char): bool
char::isLetterOrDigit(string $char): bool
char::isLower(string $char): bool
char::isUpper(string $char): bool
char::isTitle(string $char): bool
char::isWhitespace(string $char): bool
char::isISOControl(string $char): bool
char::isDefined(string $char): bool
Determines if a character is defined in Unicode.
char::isMirrored(string $char): bool
Determines 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): bool
Determines if the given $char value is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
char::isHighSurrogate(string $char): bool
Determines if the given $char value is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
char::isPrintable(string $char): bool
char::number(string $char): int
Returns the {@code int} value that the specified Unicode character represents.
__construct(): void