Method | Description | |
---|---|---|
AlphaNumericToDigit ( char c ) : int |
Converts a character to a digit.
|
|
AsCallable ( |
Gets value as a callable object that can be invoked dynamically.
|
|
AsCallable ( string value ) : IPhpCallable |
Creates a callable object from string value.
|
|
AsObject ( |
Gets underlaying class instance or
|
|
IsInstanceOf ( object value, Reflection tinfo ) : bool |
Resolves whether given instance value is of given type tinfo.
|
|
StringToDouble ( string str ) : double |
Converts a string to double using conversion algorithm in a manner of PHP.
|
|
StringToLongInteger ( string str ) : long |
Converts a string to long integer using conversion algorithm in a manner of PHP.
|
|
StringToNumber ( string str, long &longValue, double &doubleValue ) : NumberInfo |
Converts string into integer, long integer and double value using conversion algorithm in a manner of PHP.
|
|
SubstringToDouble ( string str, int length, int &position ) : double |
Converts a part of a string starting on a specified position to a double.
|
|
SubstringToLongInteger ( string str, int length, int &position ) : long |
Converts a part of a string starting on a specified position to a long integer.
|
|
ToArray ( |
COnverts value to an array.
|
|
ToBoolean ( byte value ) : bool |
Converts string to boolean according to PHP.
|
|
ToBoolean ( char value ) : bool |
Converts string to boolean according to PHP.
|
|
ToBoolean ( object value ) : bool |
Converts class instance to boolean according to PHP.
|
|
ToBoolean ( string value ) : bool |
Converts string to boolean according to PHP.
|
|
ToClass ( IPhpArray array ) : object |
Converts given array object to stdClass.
|
|
ToClass ( |
Converts given value to a class object.
|
|
ToIntStringKey ( |
Converts given value to an array key.
|
|
ToNumber ( string str, PhpNumber &number ) : NumberInfo | ||
ToNumber ( |
Performs conversion of a value to a number. Additional conversion warnings may be thrown.
|
|
ToString ( bool value ) : string |
Gets string representation of a boolean value (according to PHP, it is
|
|
ToString ( double value, |
Gets string representation of a floating point number value.
|
|
ToString ( int value ) : string |
Gets string representation of an integer value.
|
|
ToString ( long value ) : string |
Gets string representation of an integer value.
|
|
TryToIntStringKey ( |
Tries conversion to an array key.
|
Method | Description | |
---|---|---|
IsNumber ( string s, int limit, int from, int &l, int &d, long &longValue, double &doubleValue ) : NumberInfo |
Converts a string to integer value and double value and decides whether it represents a number as a whole.
|
|
ParseDouble ( string str, bool sign, double &doubleValue ) : void |
Parses given string as a Double, using invariant culture and proper number styles.
|
public static AlphaNumericToDigit ( char c ) : int | ||
c | char | The character [0-9A-Za-z]. |
return | int |
public static AsCallable ( |
||
value | ||
return | IPhpCallable |
public static AsCallable ( string value ) : IPhpCallable | ||
value | string | |
return | IPhpCallable |
public static AsObject ( |
||
value | ||
return | object |
public static IsInstanceOf ( object value, Reflection tinfo ) : bool | ||
value | object | Value to be checked. |
tinfo | Reflection | Type descriptor. |
return | bool |
public static StringToDouble ( string str ) : double | ||
str | string | The string to convert. |
return | double |
public static StringToLongInteger ( string str ) : long | ||
str | string | The string to convert. |
return | long |
public static StringToNumber ( string str, long &longValue, double &doubleValue ) : NumberInfo | ||
str | string | The string to convert. |
longValue | long | The result of conversion to long integer. |
doubleValue | double | The result of conversion to double. |
return | NumberInfo |
public static SubstringToDouble ( string str, int length, int &position ) : double | ||
str | string | The string to be parsed. Cannot be |
length | int | Maximal length of the substring to parse. |
position | int | /// The position where to start. Points to the first character after the substring storing the double /// when returned. /// |
return | double |
public static SubstringToLongInteger ( string str, int length, int &position ) : long | ||
str | string | The string to be parsed. |
length | int | Maximal length of the substring to parse. |
position | int | /// The position where to start. Points to the first character after the substring storing the integer /// when returned. /// |
return | long |
public static ToArray ( |
||
value | ||
return |
public static ToBoolean ( byte value ) : bool | ||
value | byte | |
return | bool |
public static ToBoolean ( char value ) : bool | ||
value | char | |
return | bool |
public static ToBoolean ( object value ) : bool | ||
value | object | |
return | bool |
public static ToBoolean ( string value ) : bool | ||
value | string | |
return | bool |
public static ToClass ( IPhpArray array ) : object | ||
array | IPhpArray | Non-null reference to a PHP array. |
return | object |
public static ToClass ( |
||
value | ||
return | object |
public static ToIntStringKey ( |
||
value | ||
return | IntStringKey |
public static ToNumber ( string str, PhpNumber &number ) : NumberInfo | ||
str | string | |
number | PhpNumber | |
return | NumberInfo |
public static ToNumber ( |
||
value | ||
return | PhpNumber |
public static ToString ( bool value ) : string | ||
value | bool | |
return | string |
public static ToString ( double value, |
||
value | double | |
ctx | ||
return | string |
public static ToString ( int value ) : string | ||
value | int | |
return | string |
public static ToString ( long value ) : string | ||
value | long | |
return | string |
public static TryToIntStringKey ( |
||
value | ||
key | IntStringKey | |
return | bool |