Difference between revisions of "System.SysUtils.TEncoding.Convert"
(Scoping Libraries) |
(RS-77279) |
||
| Line 4: | Line 4: | ||
{{#ifeq: {{PAGENAME}} | System.SysUtils.TEncoding.Convert | |{{InheritsFrom|System.SysUtils.TEncoding.Convert}}}} | {{#ifeq: {{PAGENAME}} | System.SysUtils.TEncoding.Convert | |{{InheritsFrom|System.SysUtils.TEncoding.Convert}}}} | ||
| − | <section begin=short /> | + | <section begin=short />Converts the {{Arg|Bytes}} array of bytes from one {{Arg|Source}} encoding to {{Arg|Destination}} another.<section end=short /> |
| − | + | {{Arg|Source}} refers to the encoding type applied to the original bytes. | |
| − | + | {{Arg|Destination}} refers to the encoding type to be used for the bytes. | |
| − | + | {{Arg|Bytes}} the array of bytes to be converted. | |
| − | + | {{Arg|StartIndex}} specifies the index of the array to begin converting. | |
| − | + | {{Arg|Count}} specifies the number of bytes to convert. | |
| − | + | [[System.SysUtils.TEncoding.Convert|Convert]] returns the converted array of bytes. | |
===See Also=== | ===See Also=== | ||
Revision as of 16:12, 5 May 2016
Delphi
class function Convert(const Source, Destination: TEncoding; const Bytes: array of Byte): TBytes; overload;
class function Convert(const Source, Destination: TEncoding; const Bytes: TBytes): TBytes; overload;
class function Convert(const Source, Destination: TEncoding; const Bytes: array of Byte; StartIndex, Count: Integer): TBytes; overload;
class function Convert(const Source, Destination: TEncoding; const Bytes: TBytes; StartIndex, Count: Integer): TBytes; overload;
C++
__classmethod TBytes __fastcall Convert(TEncoding* const Source, TEncoding* const Destination, const System::Byte *Bytes, const System::NativeInt Bytes_High)/* overload */;
__classmethod TBytes __fastcall Convert(TEncoding* const Source, TEncoding* const Destination, const TBytes Bytes)/* overload */;
__classmethod TBytes __fastcall Convert(TEncoding* const Source, TEncoding* const Destination, const System::Byte *Bytes, const System::NativeInt Bytes_High, int StartIndex, int Count)/* overload */;
__classmethod TBytes __fastcall Convert(TEncoding* const Source, TEncoding* const Destination, const TBytes Bytes, int StartIndex, int Count)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TEncoding |
Description
Converts the Bytes array of bytes from one Source encoding to Destination another.
Source refers to the encoding type applied to the original bytes.
Destination refers to the encoding type to be used for the bytes.
Bytes the array of bytes to be converted.
StartIndex specifies the index of the array to begin converting.
Count specifies the number of bytes to convert.
Convert returns the converted array of bytes.