StringSubstr

子串的摘要从指定位置的文本字符串开始。

string  StringSubstr(
   string  string_value,     // 字符串
   int     start_pos,        // 初始位置
   int     length=-1         // 提取的字符串的长度
   );

参量

string_value

[in]  字符串提取子串。

start_pos

[in] 子串的初始位置,从0到 StringLen(文本) -1。

length=-1

[in] 提取子串的长度,如果参量值是-1或者没有建立参量,子串会从指定位置提取直到字符串结束。

返回值

复制提取的子串,如果可能的话,否则返回空字符串

另见

StringSplit, StringFind, StringGetCharacter