System.SysUtils.TStringHelper.LastIndexOf

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

Delphi

function LastIndexOf(Value: Char): Integer; overload;
function LastIndexOf(const Value: string): Integer; overload;
function LastIndexOf(Value: Char; StartIndex: Integer): Integer; overload;
function LastIndexOf(const Value: string; StartIndex: Integer): Integer; overload;
function LastIndexOf(Value: Char; StartIndex: Integer; Count: Integer): Integer; overload;
function LastIndexOf(const Value: string; StartIndex: Integer; Count: Integer): Integer; overload;

プロパティ

種類 可視性 ソース ユニット
function public System.SysUtils.pas System.SysUtils TStringHelper

説明

現在の 0 基準の文字列内における、Value 文字列の最後のインデックスを返します。

StartIndex で、LastIndexOf メソッドが検索を開始する 0 基準の文字列内でのオフセットを示し、Count で、検索を終了する終端オフセットを指定します。

LastIndexOf には 6 つのオーバーロード メソッドがあり、この 0 基準の文字列内のある指定された文字列の最後のインデックスを取得する際に、さまざまなオプションを指定することができます。

関連項目