|
$length
Character length of this string |
|
$_charset
Character set converter |
|
$_length
Character length of this string |
|
$_value
String in the specified character set |
|
__construct ([mixed $value = ""], [string|null $charset = null])
The constructor |
string |
char (int $index)
Returns the character at the specified index of this string |
array |
chars ()
Returns an array of all the characters in this string |
int |
code (int $index)
Returns the unicode codepoint of the specified index of this string |
array |
codes ()
Returns an array of all the unicode codepoints in this string |
Sgss_String |
convert ([string|null $charset = null])
Returns the string object in the specified character set |
int |
count ()
|
Iterator |
getIterator ()
|
int |
index (string|Sgss_String $str, [int $offset = 0], [boolean $reverse = false])
Returns the index at which the specified string first appears in this string |
int |
length ()
Returns the character length of this string |
boolean |
offsetExists (mixed $offset)
|
mixed |
offsetGet (mixed $offset)
|
mixed |
offsetSet (mixed $offset, mixed $value)
|
void |
offsetUnset (mixed $offset)
|
string|null |
substr (int $offset, [int|null $length = null])
Retruns the substring of this string with the specified offset and length |
Sgss_String |
substring (int $offset, [int|null $length = null])
Retruns the substring object of this string with the specified offset and length |
string |
value ([string|null $charset = null])
Returns the string in the specified character set |
mixed |
__get (mixed $name)
|
string |
__toString ()
|
Character set converter
protected Sgss_String_Charset_Interface $_charset
Character length of this string
protected int $_length
String in the specified character set
protected string $_value
The constructor
mixed $value
String in the specified character set
string|null $charset
Character set used in the string
public __construct ([mixed $value = ""], [string|null $charset = null])
Returns the character at the specified index of this string
int $index
Index of the character
When the index out of bounds
public string char (int $index)
Returns an array of all the characters in this string
public array chars ()
Returns the unicode codepoint of the specified index of this string
int $index
Index of the character
When the index out of bounds
public int code (int $index)
Returns an array of all the unicode codepoints in this string
public array codes ()
Returns the string object in the specified character set
string|null $charset
Character set
public Sgss_String convert ([string|null $charset = null])
public int count ()
public Iterator getIterator ()
Returns the index at which the specified string first appears in this string
string|Sgss_String $str
String to search
int $offset
Starting offset to search
boolean $reverse
Whether to search from the end of this string
public int index (string|Sgss_String $str, [int $offset = 0], [boolean $reverse = false])
Returns the character length of this string
public int length ()
mixed $offset
public boolean offsetExists (mixed $offset)
mixed $offset
public mixed offsetGet (mixed $offset)
mixed $offset
mixed $value
public mixed offsetSet (mixed $offset, mixed $value)
mixed $offset
public void offsetUnset (mixed $offset)
Retruns the substring of this string with the specified offset and length
int $offset
Offset of the substring
int|null $length
Length of the substring
public string|null substr (int $offset, [int|null $length = null])
Retruns the substring object of this string with the specified offset and length
This is the same as substr() except the returned value is Sgss_String.
int $offset
Offset of the substring
int|null $length
Length of the substring
public Sgss_String substring (int $offset, [int|null $length = null])
Returns the string in the specified character set
string|null $charset
Character set
public string value ([string|null $charset = null])
mixed $name
public mixed __get (mixed $name)
public string __toString ()