string StringSubstr(string text, int start, int length=0)
Extracts a substring from text string starting from the given position.
テキスト文字列の指定した位置から、部分文字列を抽出します。
The function returns a copy of the extracted substring if possible, otherwise, it returns an empty string.
この関数は、可能ならば、抽出された部分文字列のコピーを返します。それ以外の場合は、空の文字列を返します。
Parameters:
パラメータ:
|
Sample:
サンプル:
1 2 3 |
string text="The quick brown dog jumps over the lazy fox"; string substr=StringSubstr(text, 4, 5); // subtracted string is the "quick" word |