RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCharacter.GetNumericValue Method (Char)

Determines the numeric value of a UTF-16 character.

Pascal
class function GetNumericValue(C: Char): Double; overload; static;
class function GetNumericValue(const S: string; Index: Integer): Double; overload; static;
C++
static __fastcall Double GetNumericValue(Char C);
static __fastcall Double GetNumericValue(const AnsiString S, int Index);

This method is overloaded. 

Returns the numeric value of the UTF-16 character C. If C is not in a numeric Unicode category, then the return value is undefined. 

Returns the numeric value of the UTF-16 character and index Index of the string S. If this character is not in a numeric Unicode category, then the return value is undefined. 

 

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