System.SysUtils.TMarshaller.AsUtf8

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function AsUtf8(const S: string): TPtrWrapper; overload; inline;
function AsUtf8(S: PWideChar): TPtrWrapper; overload; inline;

C++

System::TPtrWrapper __fastcall AsUtf8(const System::UnicodeString S)/* overload */;
System::TPtrWrapper __fastcall AsUtf8(System::WideChar * S)/* overload */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TMarshaller


Beschreibung

Gibt einen gekapselten Zeiger auf die Zeichendaten eines Strings zurück.

Die AsUtf8-Gruppe von überladenen Methoden wandelt den String in eine Multibyte-Zeichencodierung um, bevor dieser im Puffer gespeichert wird.

Siehe auch