Class Net_IDNA_php4
Adapter class for aligning the API of idna_convert with that of Net_IDNA
-
idna_convert
-
Net_IDNA_php4
Methods summary
public
boolean
|
#
setParams( mixed $option, string $param = false )
Sets a new option value. Available options and values: [encoding - Use either
UTF-8, UCS4 as array or UCS4 as string as input ('utf8' for UTF-8,
'ucs4_string' and 'ucs4_array' respectively for UCS4); The output is always
UTF-8] [overlong - Unicode does not allow unnecessarily long encodings of
chars,
to allow this, set this parameter to true, else to false;
default is false.] [strict - true: strict mode, good for registration purposes -
Causes errors
on failures; false: loose mode, ideal for "wildlife" applications
by silently ignoring errors and returning the original input instead
Sets a new option value. Available options and values: [encoding - Use either
UTF-8, UCS4 as array or UCS4 as string as input ('utf8' for UTF-8, 'ucs4_string'
and 'ucs4_array' respectively for UCS4); The output is always UTF-8] [overlong -
Unicode does not allow unnecessarily long encodings of chars, to allow this, set
this parameter to true, else to false; default is false.] [strict - true: strict
mode, good for registration purposes - Causes errors on failures; false: loose
mode, ideal for "wildlife" applications by silently ignoring errors and
returning the original input instead
Parameters
- $option
mixed Parameter to set (string: single parameter; array of Parameter => Value
pairs)
- $param
string Value to use (if parameter 1 is a string)
Returns
boolean true on success, false otherwise
|
Methods inherited from idna_convert
_adapt(),
_apply_cannonical_ordering(),
_combine(),
_decode(),
_decode_digit(),
_encode(),
_encode_digit(),
_error(),
_get_combining_class(),
_hangul_compose(),
_hangul_decompose(),
_nameprep(),
_ucs4_string_to_ucs4(),
_ucs4_to_ucs4_string(),
_ucs4_to_utf8(),
_utf8_to_ucs4(),
decode(),
encode(),
get_last_error(),
idna_convert(),
set_parameter()
|
Properties inherited from idna_convert
$NP,
$_allow_overlong,
$_api_encoding,
$_base,
$_damp,
$_error,
$_initial_bias,
$_initial_n,
$_invalid_ucs,
$_lbase,
$_lcount,
$_max_ucs,
$_ncount,
$_punycode_prefix,
$_sbase,
$_scount,
$_skew,
$_strict_mode,
$_tbase,
$_tcount,
$_tmax,
$_tmin,
$_vbase,
$_vcount
|