スクリプト (MEL) |
MEL でのみ使用可能 |
endString |
カテゴリ内: 言語, 文字列 |
ジャンプ先: 概要. 戻り値. 関連. MEL 例.
string endString(string $s, int $count)
このプロシージャは、文字列 $s の最後の $count 文字を返します。$count が 0 か負の場合は、空の文字列が返されます。$count が $s の文字数と同じかそれ以上の長さの場合は、文字列全体が返されます。
なし
endsWith, startString, startsWith
endString("abc", 1);
// Result: c //
endString("abc", 8);
// Result: abc //
endString("abc", 0);
endString("", 3);