RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TUnicodeEncoding.GetMaxCharCount Method

Calculates the maximum number of characters generated to decode a specified number of bytes.

Pascal
function GetMaxCharCount(ByteCount: Integer): Integer; override;
C++
virtual __fastcall int GetMaxCharCount(int ByteCount);

TEncoding.GetMaxCharCount calculates the maximum number of characters generated to decode ByteCount number of bytes. 

The Return Value is the number of characters calculated. 

 

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