| Sgss_String_Charset_Ascii | Handles characters in strings in the ASCII character set |
| Sgss_String_Charset_Big5 | Handles characters in strings in the BIG5 character set |
| Sgss_String_Charset_Euckr | Handles characters in strings in the EUC-KR character set |
| Sgss_String_Charset_Gbk | Handles characters in strings in the GBK character set |
| Sgss_String_Charset_Iso88591 | Handles characters in strings in the ISO-8859-1 character set |
| Sgss_String_Charset_Johab | Handles characters in strings in the JOHAB character set |
| Sgss_String_Charset_Macarabic | Handles characters in strings in the MacArabic character set |
| Sgss_String_Charset_Macgreek | Handles characters in strings in the MacGreek character set |
| Sgss_String_Charset_Machebrew | Handles characters in strings in the MacHebrew character set |
| Sgss_String_Charset_Macroman | Handles characters in strings in the MacRoman character set |
| Sgss_String_Charset_Macthai | Handles characters in strings in the MacThai character set |
| Sgss_String_Charset_Shiftjis | Handles characters in strings in the ShiftJIS character set |
| Sgss_String_Charset_Utf16 | Handles characters in strings in the UTF-16 character set |
| Sgss_String_Charset_Utf8 | Handles characters in strings in the UTF-8 character set |
|
$_charset
Character set to be used in this converter |
string|null |
char (string $value, int $index)
Returns the character at the specified index of the specified string |
int |
code (string $value, int $index)
Returns the unicode codepoint of the specified index of this specified string |
string|null |
convert (string $value, string $charset)
Converts the specified string into the specified character set |
string |
getName ()
Return the name of character set used in this converter |
int |
index (string $value, String $str, int $offset, [boolean $reverse = false])
Returns the index at which the specified substring first appears in the specified string |
int |
length (string $value)
Returns the character length of the specified string |
string|null |
substr (string $value, int $offset, int $length)
Retruns the substring of the specified string with the specified offset and length |
|
_flatten (string $name)
Removes any characters but the alphabet or number from the specified character set name |
|
_regularize (string $name)
Converts the specified character set notation to the corresponding regular name |
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
Character set to be used in this converter
protected string $_charset = null
Returns the character at the specified index of the specified string
string $value
String in the character set
int $index
Index of character
Returns the character at the specified index of the specified string
public string|null char (string $value, int $index)
Returns the unicode codepoint of the specified index of this specified string
string $value
String in the character set
int $index
Index of character
Returns the unicode codepoint of the specified index of this specified string
public int code (string $value, int $index)
Converts the specified string into the specified character set
string $value
String in the character set
string $charset
Character set
Converts the specified string into the specified character set
public string|null convert (string $value, string $charset)
Return the name of character set used in this converter
public string getName ()
Returns the index at which the specified substring first appears in the specified string
string $value
Value in the character set
String $str
Substring in the character set
int $offset
Starting offset to search
boolean $reverse
Whether to search from the end of the string
Returns the index at which the specified substring appears in the specified string
public int index (string $value, String $str, int $offset, [boolean $reverse = false])
Returns the character length of the specified string
string $value
String in the character set
Returns the character length of the specified string
public int length (string $value)
Retruns the substring of the specified string with the specified offset and length
string $value
String in the specific character set
int $offset
Offset of the substring
int $length
Length of the substring
Retruns the substring of the specified string with the specified offset and length
public string|null substr (string $value, int $offset, int $length)
Removes any characters but the alphabet or number from the specified character set name
string $name
Character set name
protected static string _flatten (string $name)
Converts the specified character set notation to the corresponding regular name
string $name
Character set notation
protected static string _regularize (string $name)