Difference between revisions of "System.SysUtils.TEncoding.Convert"

From RAD Studio API Documentation
Jump to: navigation, search
(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 />Convert an array of bytes from one encoding to another.<section end=short />
+
<section begin=short />Converts the {{Arg|Bytes}} array of bytes from one {{Arg|Source}} encoding to {{Arg|Destination}} another.<section end=short />
  
TEncoding.Convert converts an array of bytes from one encoding to another.
+
{{Arg|Source}} refers to the encoding type applied to the original bytes.
  
'''Source''' refers to the encoding type applied to the original bytes.
+
{{Arg|Destination}} refers to the encoding type to be used for the bytes.
  
'''Destination''' refers to the encoding type to be used for the bytes.
+
{{Arg|Bytes}} the array of bytes to be converted.  
  
'''StartIndex''' specifies the index of the array to begin converting.
+
{{Arg|StartIndex}} specifies the index of the array to begin converting.
  
'''Count''' specifies the number of bytes to convert.
+
{{Arg|Count}} specifies the number of bytes to convert.
  
The '''Return Value''' is the converted array of bytes.
+
[[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.

See Also