Difference between revisions of "System.SysUtils.TEncoding.Convert"
(RS-77279) |
(Undo revision 890133 by Gustavo.ramos (talk)) (Tag: Undo) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{#lst:API:System.SysUtils.TEncoding.Convert|api}} | {{#lst:API:System.SysUtils.TEncoding.Convert|api}} | ||
| − | |||
==Description== | ==Description== | ||
{{#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 />Converts the {{Arg|Bytes}} array of bytes from one {{Arg|Source}} encoding to {{Arg|Destination}} | + | <section begin=short />Converts the {{Arg|Bytes}} array of bytes from one {{Arg|Source}} encoding to another {{Arg|Destination}}.<section end=short /> |
{{Arg|Source}} refers to the encoding type applied to the original bytes. | {{Arg|Source}} refers to the encoding type applied to the original bytes. | ||
| − | {{Arg|Destination}} refers to the encoding type to be | + | {{Arg|Destination}} refers to the encoding type to be applied. |
{{Arg|Bytes}} the array of bytes to be converted. | {{Arg|Bytes}} the array of bytes to be converted. | ||
| − | {{Arg|StartIndex}} specifies the index of the array to begin converting. | + | {{Arg|StartIndex}} specifies the index of the array from which to begin converting. |
{{Arg|Count}} specifies the number of bytes to convert. | {{Arg|Count}} specifies the number of bytes to convert. | ||
| Line 21: | Line 20: | ||
* [http://msdn2.microsoft.com/en-us/library/system.text.encoding.convert Encoding.Convert (MSDN)] | * [http://msdn2.microsoft.com/en-us/library/system.text.encoding.convert Encoding.Convert (MSDN)] | ||
| − | |||
[[Category:API Documentation]] | [[Category:API Documentation]] | ||
| − | |||
Latest revision as of 14:05, 28 March 2023
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 another Destination.
Source refers to the encoding type applied to the original bytes.
Destination refers to the encoding type to be applied.
Bytes the array of bytes to be converted.
StartIndex specifies the index of the array from which to begin converting.
Count specifies the number of bytes to convert.
Convert returns the converted array of bytes.