public class UnicodeModule extends AbstractQuercusModule
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ICONV_IMPL |
static int |
ICONV_MIME_DECODE_CONTINUE_ON_ERROR |
static int |
ICONV_MIME_DECODE_STRICT |
static java.lang.String |
ICONV_VERSION |
static int |
U_INVALID_ESCAPE |
static int |
U_INVALID_SKIP |
static int |
U_INVALID_STOP |
static int |
U_INVALID_SUBSTITUTE |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER| Constructor and Description |
|---|
UnicodeModule() |
| Modifier and Type | Method and Description |
|---|---|
IniDefinitions |
getIniDefinitions()
Returns the default quercus.ini values.
|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions implemented by the module.
|
static Value |
iconv_get_encoding(Env env,
java.lang.String type)
Returns the current encoding.
|
static Value |
iconv_mime_decode_headers(Env env,
StringValue encoded_headers,
int mode,
java.lang.String charset)
Decodes all the headers and place them in an array.
|
static Value |
iconv_mime_decode(Env env,
StringValue encodedHeader,
int mode,
java.lang.String charset)
Uses iconv.internal_encoding.
|
static Value |
iconv_mime_encode(Env env,
StringValue fieldName,
StringValue fieldValue,
ArrayValue preferences)
Encodes a MIME header.
|
static BooleanValue |
iconv_set_encoding(Env env,
java.lang.String type,
StringValue charset)
Sets the current encoding.
|
static Value |
iconv_strlen(Env env,
StringValue str,
java.lang.String charset)
Returns the length of the decoded string.
|
static Value |
iconv_strpos(Env env,
StringValue haystack,
StringValue needle,
int offset,
java.lang.String charset)
Returns the first occurence of the substring in the haystack.
|
static Value |
iconv_strrpos(Env env,
StringValue haystack,
StringValue needle,
java.lang.String charset)
Returns the last occurence of the substring in the haystack.
|
static Value |
iconv_substr(Env env,
StringValue str,
int offset,
int length,
java.lang.String charset)
Uses iconv.internal_encoding.
|
static Value |
iconv(Env env,
java.lang.String inCharset,
java.lang.String outCharset,
StringValue str)
Returns encoded string from decoded argument string.
|
static StringValue |
ob_iconv_handler(StringValue contents,
int status) |
static Value |
unicode_decode(Env env,
BinaryValue str,
java.lang.String encoding,
int errorMode) |
static Value |
unicode_encode(Env env,
UnicodeValue str,
java.lang.String encoding,
int errorMode) |
static BooleanValue |
unicode_semantics(Env env) |
addConstant, addConstant, addConstant, getConstMappublic static final int U_INVALID_STOP
public static final int U_INVALID_SKIP
public static final int U_INVALID_SUBSTITUTE
public static final int U_INVALID_ESCAPE
public static final java.lang.String ICONV_IMPL
public static final java.lang.String ICONV_VERSION
public static final int ICONV_MIME_DECODE_STRICT
public static final int ICONV_MIME_DECODE_CONTINUE_ON_ERROR
public java.lang.String[] getLoadedExtensions()
getLoadedExtensions in interface QuercusModulegetLoadedExtensions in class AbstractQuercusModulepublic IniDefinitions getIniDefinitions()
getIniDefinitions in interface QuercusModulegetIniDefinitions in class AbstractQuercusModulepublic static BooleanValue unicode_semantics(Env env)
public static Value unicode_decode(Env env, BinaryValue str, java.lang.String encoding, int errorMode)
public static Value unicode_encode(Env env, UnicodeValue str, java.lang.String encoding, int errorMode)
public static Value iconv_strpos(Env env, StringValue haystack, StringValue needle, int offset, java.lang.String charset)
public static Value iconv_strrpos(Env env, StringValue haystack, StringValue needle, java.lang.String charset)
charset - encoding of StringValue argumentspublic static Value iconv_substr(Env env, StringValue str, int offset, int length, java.lang.String charset)
env - str - encoded stringoffset - of str after decodinglength - of str after decodingcharset - encoding of StringValue argumentpublic static Value iconv(Env env, java.lang.String inCharset, java.lang.String outCharset, StringValue str)
env - inCharset - charset to decode fromoutCharset - charset to decode tostr - to decode and encodepublic static StringValue ob_iconv_handler(StringValue contents, int status)
public static Value iconv_get_encoding(Env env, java.lang.String type)
env - type - setting to returnpublic static BooleanValue iconv_set_encoding(Env env, java.lang.String type, StringValue charset)
env - type - charset - public static Value iconv_strlen(Env env, StringValue str, java.lang.String charset)
env - str - charset - public static Value iconv_mime_encode(Env env, StringValue fieldName, StringValue fieldValue, ArrayValue preferences)
fieldName - header field namefieldValue - header field valuepreferences - public static Value iconv_mime_decode_headers(Env env, StringValue encoded_headers, int mode, java.lang.String charset)
env - encoded_headers - mode - controls error recoverycharset - public static Value iconv_mime_decode(Env env, StringValue encodedHeader, int mode, java.lang.String charset)
env - encoded_header - mode - controls error recoverycharset - to encode resultant