Method | Description | |
---|---|---|
IsIntType ( |
Determines if value passed in is an integral-type
|
|
NarrowIntType ( |
Changes the given integral-type object to the smallest integral data type that can contain its value. If xdata has a CompileTimeType that is unsigned, then the smallest unsigned integral type is used. Otherwise the smallest signed type is used. The only current exception to this is byte vs. sbyte as they are considered special cases and therefore, regardless if the original type is unsigned or not, byte is always attempted in place of sbyte.
|
|
ParseEscSeqs ( string &data, bool isVerbatim ) : void |
Parses escape sequences found in char or string literals
|
Method | Description | |
---|---|---|
IsUnsignedType ( |
Determines whether the xdata's CompileTimeType is an unsigned integral type or not
|
|
ParseBool ( string data ) : |
Parses bool literals
|
|
ParseChar ( string data ) : |
Parses char literals
|
|
ParseEType ( string data ) : |
Parses literals that contain the exponential 'e' character
|
|
ParseFloatType ( string data, bool hasSuffix ) : |
Parses float-type literals
|
|
ParseFloatType ( string data, string suffix ) : |
Parses float-type literals
|
|
ParseIntType ( string data, bool hasSuffix ) : |
Parses integral-type literals
|
|
ParseIntType ( string data, string suffix ) : |
Parses integral-type literals
|
|
ParseStr ( string data ) : |
Parses string literals
|
public static IsIntType ( |
||
data | Value to examine | |
return | bool |
public static NarrowIntType ( |
||
xdata | Integral-type value to narrow | |
return |
public static ParseEscSeqs ( string &data, bool isVerbatim ) : void | ||
data | string | String containing the literal that may have escape sequences |
isVerbatim | bool | /// Used to tell if the literal passed is a verbatim string. /// True if data represents verbatim string, false otherwise /// |
return | void |