表示: Delphi
C++
表示設定
System.SysUtils.StrPos
提供:XE2 API Documentation
Delphi
function StrPos(const Str1, Str2: PAnsiChar): PAnsiChar; function StrPos(const Str1, Str2: PWideChar): PWideChar;
C++
extern PACKAGE char * __fastcall StrPos(const char * Str1, const char * Str2)/* overload */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
説明
Str1 内の最初の Str2 を指すポインタを返します。
StrPos 関数は,Str1 内の最初の Str2 を指すポインタを返します。Str2 が Str1 にない場合,StrPos は nil(Delphi)または NULL(C++)を返します。
メモ: ソース文字列に国別文字が含まれている場合は,かわりに AnsiStrPos を使用します。