RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEncoding.GetCharCount Method (PByte, Integer)

Calcuates a number of characters generated by decoding a sequence of bytes.

Pascal
function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; virtual; abstract; overload;
function GetCharCount(const Bytes: TBytes): Integer; overload;
function GetCharCount(const Bytes: TBytes; ByteIndex: Integer; ByteCount: Integer): Integer; overload;
C++
virtual __fastcall int GetCharCount(PByte Bytes, int ByteCount) = 0;
__fastcall int GetCharCount(const TBytes Bytes);
__fastcall int GetCharCount(const TBytes Bytes, int ByteIndex, int ByteCount);

TEncoding.GetCharCount generates a number of characters by decoding Bytes

Bytes can be a byte array, or a byte pointer. 

The ByteCount parameter specifies the number of bytes to decode. 

The Return Value is the number of characters decoded. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!