NextCharIndex
简述
返回指定字符的开始字节的下一个字符的字节开始位置。
NextCharIndex(const S: String; Index: Integer): Integer;
名称 | 类型 | 说明 |
---|
S | String | 字符串,源串 |
Index | Integer | 整数,字符的开始字节位置 |
返回 | Integer |
整数,字节位置 |
//‘软’的开始字节是3,下一个字符是‘T’,‘T’的开始字节位置是5
S:= "天软Tinysoft Statistical analysis Language";
return nextCharIndex(s,3);
//返回:5