Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Code snippets that let you check if you can convert a data type to another.
Convert code snippets let you convert a data type to another.
0.
AnsiIsDouble, check if AnsiString can be converted
to double
1.
AnsiIsInt, check if AnsiString can be converted to
integer
2.
Assert
3.
CanCast, check if std::string can be converted to any
data type
4.
CanLexicalCast, check if std::string can be
converted to any data type
5.
Check if AnsiString can be converted to double,
AnsiIsDouble
6.
Check if AnsiString can be converted to integer,
AnsiIsInt
7.
Check if hexadecimal std::string can be converted to
integer
8.
Check if std::string can be converted to any data type,
CanCast
9.
Check if std::string can be converted to any data
type, CanLexicalCast
10.
Check if std::string can be converted to double,
IsDouble
11.
Check if std::string can be converted to integer, IsInt
12.
Check if WideString can be converted to double,
WideIsDouble
13.
Check if WideString can be converted to integer,
WideIsInt
14.
IsDouble, check if std::string can be converted to
double
15.
IsInt, check if std::string can be converted to integer
16.
WideIsDouble, check if WideString can be converted
to double
17.
WideIsInt, check if WideString can be converted to integer