public class MbstringModule extends AbstractQuercusModule
Modifier and Type | Field and Description |
---|---|
static int |
MB_CASE_LOWER |
static int |
MB_CASE_TITLE |
static int |
MB_CASE_UPPER |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
MbstringModule() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getEncoding(Env env) |
IniDefinitions |
getIniDefinitions()
Returns the default php.ini values.
|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions implemented by the module.
|
boolean |
mb_check_encoding(Env env,
Value var,
java.lang.String encoding)
Checks if the string is correctly encoded.
|
static StringValue |
mb_convert_case(Env env,
StringValue str,
int mode,
java.lang.String encoding)
Upper-cases, lower-cases, or capitalizes first letter of words.
|
static Value |
mb_convert_encoding(Env env,
StringValue str,
java.lang.String destEncoding,
Value fromEncodings)
Converts string of one encoding to another.
|
static StringValue |
mb_convert_kana(Env env,
StringValue str,
java.lang.String option,
java.lang.String encoding)
Performs Japanese specific charset conversion.
|
static StringValue |
mb_convert_variables(Env env,
java.lang.String toEncoding,
java.lang.String fromEncodings,
Value vars)
Decodes and then encodes variables.
|
static Value |
mb_decode_mimeheader(Env env,
StringValue str)
Decodes mime field.
|
static StringValue |
mb_decode_numericentity(Env env,
StringValue str,
ArrayValue convmap,
java.lang.String encoding)
Decodes HTML numeric entity.
|
static Value |
mb_detect_encoding(Env env,
StringValue str,
Value encodingV,
boolean isStrict)
Detects encoding of string.
|
static Value |
mb_detect_order(Env env,
Value encodingV)
Specifies order of charsets to test when detecting encoding.
|
static StringValue |
mb_encode_mimeheader(Env env,
StringValue str,
java.lang.String charset,
java.lang.String transferEncoding,
java.lang.String linefeed)
Encodes a string into mime.
|
static StringValue |
mb_encode_numericentity(Env env,
StringValue str,
ArrayValue convmap,
java.lang.String encoding)
Encodes HTML numeric string entity.
|
static BooleanValue |
mb_ereg_match(Env env,
UnicodeEreg ereg,
StringValue string,
java.lang.String option)
Returns true if pattern matches a part of string.
|
static Value |
mb_ereg_replace(Env env,
Value eregValue,
StringValue replacement,
StringValue subject,
java.lang.String option)
Multibyte version of ereg_replace.
|
static LongValue |
mb_ereg_search_getpos(Env env)
Gets current position of ereg state object.
|
static Value |
mb_ereg_search_getregs(Env env)
Gets the last match of ereg state object from previous matching.
|
static BooleanValue |
mb_ereg_search_init(Env env,
StringValue string,
Value rawRegexp,
Value option)
Initializes a ereg state object.
|
static Value |
mb_ereg_search_pos(Env env,
Value rawRegexp,
Value option)
Returns index and position after matching.
|
static Value |
mb_ereg_search_regs(Env env,
Value rawRegexp,
Value option)
Returns match array after matching.
|
static BooleanValue |
mb_ereg_search_setpos(Env env,
int position)
Sets the position of the ereg state object.
|
static BooleanValue |
mb_ereg_search(Env env,
Value rawRegexp,
Value option)
Returns whether or not pattern matches string.
|
static Value |
mb_ereg(Env env,
UnicodeEreg ereg,
StringValue string,
ArrayValue regs)
Multibyte version of ereg.
|
static Value |
mb_eregi_replace(Env env,
Value pattern,
StringValue replacement,
StringValue subject,
java.lang.String option)
Multibyte version of eregi_replace.
|
static Value |
mb_eregi(Env env,
UnicodeEregi eregi,
StringValue string,
ArrayValue regs)
Multibyte version of eregi.
|
static Value |
mb_get_info(Env env,
java.lang.String type)
Returns current mb settings.
|
static Value |
mb_http_input(Env env,
java.lang.String type)
Returns and/or sets the http input encoding
|
static Value |
mb_http_output(Env env,
java.lang.String encoding)
Returns and/or sets the http output encoding
|
static Value |
mb_internal_encoding(Env env,
java.lang.String encoding)
Returns and/or sets the internal encoding.
|
static Value |
mb_language(Env env,
java.lang.String language)
Returns and/or sets the encoding for mail.
|
static ArrayValue |
mb_list_encodings(Env env)
Get all supported encodings.
|
static StringValue |
mb_output_handler(Env env,
StringValue contents,
int status)
ob_start() handler
|
static BooleanValue |
mb_parse_str(Env env,
StringValue strValue,
Value result)
Multibyte version of parse_str.
|
static StringValue |
mb_preferred_mime_name(Env env,
StringValue encoding)
Returns the preferred mime name of this encoding.
|
static Value |
mb_regex_encoding(Env env,
java.lang.String encoding)
Returns and/or sets encoding for mb regular expressions.
|
static StringValue |
mb_regex_set_options(Env env,
java.lang.String options)
XXX: what does this actually do?
|
static BooleanValue |
mb_send_mail(Env env,
StringValue to,
StringValue subject,
StringValue message,
StringValue additionalHeaders,
StringValue additionalParameters)
Multibyte version of mail.
|
static Value |
mb_split(Env env,
UnicodeEreg ereg,
StringValue string,
long limit)
Multibyte version of split.
|
static StringValue |
mb_strcut(Env env,
StringValue str,
int start,
int length,
java.lang.String encoding)
Similar to substr except start index is at the beginning of char
boundaries.
|
static StringValue |
mb_strimwidth(Env env,
StringValue str,
int start,
int width,
StringValue trimmarker,
java.lang.String encoding)
Truncates the string.
|
static LongValue |
mb_strlen(Env env,
StringValue str,
java.lang.String encoding)
Multibyte version of strlen.
|
static Value |
mb_strpos(Env env,
StringValue haystack,
StringValue needle,
int offset,
java.lang.String encoding)
Multibyte version of strpos.
|
static Value |
mb_strrpos(Env env,
StringValue haystack,
StringValue needle,
Value offsetV,
java.lang.String encoding)
Multibyte version of strrpos.
|
static StringValue |
mb_strtolower(Env env,
StringValue str,
java.lang.String encoding)
Converts all characters to lower-case.
|
static StringValue |
mb_strtoupper(Env env,
StringValue str,
java.lang.String encoding)
Converts all characters to upper-case.
|
static LongValue |
mb_strwidth(Env env,
StringValue str,
java.lang.String encoding)
Returns the width of this multibyte string.
|
static Value |
mb_substitute_character(Value substrchar)
Sets the character to use when decoding/encoding fails on a character.
|
static LongValue |
mb_substr_count(Env env,
StringValue haystack,
StringValue needle,
java.lang.String encoding) |
static StringValue |
mb_substr(Env env,
StringValue str,
int start,
Value lengthV,
java.lang.String encoding)
Multibyte version of substr.
|
addConstant, addConstant, addConstant, getConstMap
public static final int MB_CASE_UPPER
public static final int MB_CASE_LOWER
public static final int MB_CASE_TITLE
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 boolean mb_check_encoding(Env env, Value var, java.lang.String encoding)
public static StringValue mb_convert_case(Env env, StringValue str, int mode, java.lang.String encoding)
public static Value mb_convert_encoding(Env env, StringValue str, java.lang.String destEncoding, Value fromEncodings)
public static StringValue mb_convert_kana(Env env, StringValue str, java.lang.String option, java.lang.String encoding)
public static StringValue mb_convert_variables(Env env, java.lang.String toEncoding, java.lang.String fromEncodings, Value vars)
public static Value mb_decode_mimeheader(Env env, StringValue str)
public static StringValue mb_decode_numericentity(Env env, StringValue str, ArrayValue convmap, java.lang.String encoding)
public static Value mb_detect_encoding(Env env, StringValue str, Value encodingV, boolean isStrict)
public static Value mb_detect_order(Env env, Value encodingV)
public static StringValue mb_encode_mimeheader(Env env, StringValue str, java.lang.String charset, java.lang.String transferEncoding, java.lang.String linefeed)
public static StringValue mb_encode_numericentity(Env env, StringValue str, ArrayValue convmap, java.lang.String encoding)
public static BooleanValue mb_ereg_match(Env env, UnicodeEreg ereg, StringValue string, java.lang.String option)
public static Value mb_ereg_replace(Env env, Value eregValue, StringValue replacement, StringValue subject, java.lang.String option)
public static Value mb_ereg(Env env, UnicodeEreg ereg, StringValue string, ArrayValue regs)
public static Value mb_eregi_replace(Env env, Value pattern, StringValue replacement, StringValue subject, java.lang.String option)
public static Value mb_eregi(Env env, UnicodeEregi eregi, StringValue string, ArrayValue regs)
public static LongValue mb_ereg_search_getpos(Env env)
public static Value mb_ereg_search_getregs(Env env)
public static BooleanValue mb_ereg_search_init(Env env, StringValue string, Value rawRegexp, Value option)
public static Value mb_ereg_search_pos(Env env, Value rawRegexp, Value option)
public static Value mb_ereg_search_regs(Env env, Value rawRegexp, Value option)
public static BooleanValue mb_ereg_search_setpos(Env env, int position)
public static BooleanValue mb_ereg_search(Env env, Value rawRegexp, Value option)
public static Value mb_get_info(Env env, java.lang.String type)
public static Value mb_http_input(Env env, java.lang.String type)
public static Value mb_http_output(Env env, java.lang.String encoding)
public static Value mb_internal_encoding(Env env, java.lang.String encoding)
public static Value mb_language(Env env, java.lang.String language)
public static ArrayValue mb_list_encodings(Env env)
public static StringValue mb_output_handler(Env env, StringValue contents, int status)
public static BooleanValue mb_parse_str(Env env, StringValue strValue, Value result)
public static StringValue mb_preferred_mime_name(Env env, StringValue encoding)
public static Value mb_regex_encoding(Env env, java.lang.String encoding)
public static StringValue mb_regex_set_options(Env env, java.lang.String options)
public static BooleanValue mb_send_mail(Env env, StringValue to, StringValue subject, StringValue message, StringValue additionalHeaders, StringValue additionalParameters)
public static Value mb_split(Env env, UnicodeEreg ereg, StringValue string, long limit)
public static StringValue mb_strcut(Env env, StringValue str, int start, int length, java.lang.String encoding)
public static StringValue mb_strimwidth(Env env, StringValue str, int start, int width, StringValue trimmarker, java.lang.String encoding)
public static LongValue mb_strlen(Env env, StringValue str, java.lang.String encoding)
public static Value mb_strpos(Env env, StringValue haystack, StringValue needle, int offset, java.lang.String encoding)
public static Value mb_strrpos(Env env, StringValue haystack, StringValue needle, Value offsetV, java.lang.String encoding)
public static StringValue mb_strtolower(Env env, StringValue str, java.lang.String encoding)
public static StringValue mb_strtoupper(Env env, StringValue str, java.lang.String encoding)
public static LongValue mb_strwidth(Env env, StringValue str, java.lang.String encoding)
public static Value mb_substitute_character(Value substrchar)
public static LongValue mb_substr_count(Env env, StringValue haystack, StringValue needle, java.lang.String encoding)
public static StringValue mb_substr(Env env, StringValue str, int start, Value lengthV, java.lang.String encoding)
public static java.lang.String getEncoding(Env env)