|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.i18n.UnicodeModule
public class UnicodeModule
Unicode handling. Also includes iconv, etc.
Field Summary | |
---|---|
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
|
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
Constructor Summary | |
---|---|
UnicodeModule()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
addConstant, addConstant, addConstant, getConstMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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
Constructor Detail |
---|
public UnicodeModule()
Method Detail |
---|
public java.lang.String[] getLoadedExtensions()
getLoadedExtensions
in interface QuercusModule
getLoadedExtensions
in class AbstractQuercusModule
public IniDefinitions getIniDefinitions()
getIniDefinitions
in interface QuercusModule
getIniDefinitions
in class AbstractQuercusModule
public 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 arguments
public 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 argument
public 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 return
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |