System.UnicodeString.Delete

提供: RAD Studio API Documentation
移動先: 案内検索

C++

UnicodeString& Delete(int index, int count) _ALWAYS_INLINE {

プロパティ

種類 可視性 ソース ユニット
function public ustring.h System UnicodeString

説明

文字列から、指定した数の文字を削除します。

Delete は、UnicodeString オブジェクトを変更して、index で指定した位置から count の値にある数の文字を文字列から削除します。このとき、先頭文字のインデックスは 1 です。処理の結果変更された文字列(*this)を返します。

indexUnicodeString オブジェクトの文字長よりも大きいか、1 より小さい場合、文字は削除されません。

count が、index を先頭とした残りの文字数より大きい場合、Delete は残りの文字列を削除します。count が 0 より小さい場合、文字は削除されません。