mbsubstring()

可用性

Flash Lite 1.0。

用法

mbsubstring(value, index, count)

Operands

value 要从其中提取新的多字节字符串的多字节字符串。

index 要提取的第一个字符的编号。

count 要包含在所提取字符串中的字符的数目,其中不包括 index 处的字符。

说明

字符串函数;从多字节字符串中提取一个新的多字节字符串。

示例

以下示例从 myString 变量所包含的字符串中提取新的多字节字符串:

myString = mbchr(36) add mbchr(49) add mbchr(50) add mbchr(48);
trace (mbsubstring(myString, 0, 2));                                // 输出:$1

另请参见

mbchr()