System.SysUtils.TMarshaller.AsAnsi

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

Delphi

function AsAnsi(const S: string): TPtrWrapper; overload;
function AsAnsi(S: PWideChar): TPtrWrapper; overload;
function AsAnsi(const S: string; CodePage: Word): TPtrWrapper; overload;
function AsAnsi(S: PWideChar; CodePage: Word): TPtrWrapper; overload;

C++

System::TPtrWrapper __fastcall AsAnsi(const System::UnicodeString S)/* overload */;
System::TPtrWrapper __fastcall AsAnsi(System::WideChar * S)/* overload */;
System::TPtrWrapper __fastcall AsAnsi(const System::UnicodeString S, System::Word CodePage)/* overload */;
System::TPtrWrapper __fastcall AsAnsi(System::WideChar * S, System::Word CodePage)/* overload */;

プロパティ

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

説明

文字列の文字データを指すラップ ポインタを返します。

AsAnsi グループのオーバーロード メソッド群は、文字列を、それがバッファに格納される前に、マルチバイト文字エンコーディングに変換します。最初の 2 つのオーバーロード メソッドは、デフォルト エンコーディングを使用します。他の 2 つは、使用するエンコーディングを示す CodePage 引数を取ります。

関連項目