跳到主要内容

utf8_sub

获取UTF8编码字符串的子串

声明

string utf8_sub(string str, int start, int n)

参数

参数名描述
strUTF8编码的字符串
start起始字符位置(0-based)
n子串字符数量

返回值

UTF8编码的子串

使用方式

返回文档