Class ascii
ASCII character set.
Code | …0 | …1 | …2 | …3 | …4 | …5 | …6 | …7 | …8 | …9 | …A | …B | …C | …D | …E | …F |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0… | NUL | SOH | STX | ETX | EOT | ENQ | ACK | BEL | BS | HT | LF | VT | FF | CR | SO | SI |
1… | DLE | DC1 | DC2 | DC3 | DC4 | NAK | SYN | ETB | CAN | EM | SUB | ESC | FS | GS | RS | US |
2… | SP | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / |
3… | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
4… | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
5… | P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ | _ |
6… | ` | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o |
7… | p | q | r | s | t | u | v | w | x | y | z | { | | | } | ~ | DEL |
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Charset
- Core\Charset\Driver\ascii
Direct known subclasses
Indirect known subclasses
Package: Core\Charset
Link: http://en.wikipedia.org/wiki/ASCII
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Charset/Driver/ascii.inc.php
Methods summary
public
string
|
#
convertFromUTF8( string $string )
Converts a string encoded in UTF-8 to the current character set. |
public
string
|
#
convertToUTF8( string $string )
Converts a string encoded in the character set of this instance to UTF-8. |
public
|
|
public
string
|
#
pad( string $string, integer $length, string $padding, integer $flags, string $truncationMarker = null )
Fits a string by padding or truncation to a desired length. Padding uses characters from from an optional padding string. |
public
string
|
#
sub( string $string, integer $from, integer $length = null )
Returns a substring of a given string. |
public
string
|
#
toLower( string $string )
Transforms a given string to lowercase based on Unicode character properties with respect to this character set. |
public
string
|
#
toUpper( string $string )
Transforms a given string to uppercase based on Unicode character properties with respect to this character set. |
public
string
|
#
truncate( string $string, integer $start, integer $width, string $marker = null )
Truncates a string based on the desired visual width of the string. |
public
integer
|
|
public
string
|
#
xmlSpecials( $string, integer $quotes = null )
Encodes all special XML characters in provided string with respect to this character set instance. |
Methods inherited from Core\Charset
_restoreEnvironment()
,
_setupEnvironment()
,
activate()
,
active()
,
alias()
,
all()
,
convertFrom()
,
convertFromActive()
,
convertTo()
,
convertToActive()
,
convertUCS2ToUTF8()
,
convertUTF8ToUCS2()
,
format()
,
get()
,
hash()
,
iterator()
,
registerAlias()
,
sizeof()
,
vformat()
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Charset
ACK
,
BEL
,
BS
,
CAN
,
CR
,
CRLF
,
DEL
,
DLE
,
DoubleQuotesFlag
,
EM
,
ENQ
,
EOT
,
ESC
,
ETB
,
ETX
,
FF
,
FS
,
GS
,
LF
,
LeftPadFlag
,
NAK
,
NUL
,
NoQuotesFlag
,
RS
,
RightPadFlag
,
SI
,
SO
,
SOH
,
STX
,
SUB
,
SYN
,
SingleQuotesFlag
,
TAB
,
TruncatePadFlag
,
US
,
VT
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
string
|
$_v_displayName
|
#
'ASCII (ANSI_X3.4-1968)'
|
protected
string
|
$_v_name
|
#
'ascii'
|