Convert
Overview
Helper static class that converts a base data type to another base data type.
Location
- Reference: Sugar
- Namespace: Sugar
Class Methods
HexStringToByteArray
Parameters:
- aData:
HexStringToInt32
Parameters:
- aValue:
HexStringToInt64
Parameters:
- aValue:
ToBinaryString
Parameters:
- aValue:
- aWidth:
Converts the value of the specified String to an equivalent Boolean value. Returns false
when parameter is nil
or Consts, returns true
is equals to Consts.
Parameters:
- aValue: The String to convert.
Converts the value of the specified byte to an equivalent Boolean value.
Parameters:
- aValue: The byte to convert.
Converts the value of the specified Double to an equivalent Boolean value.
Parameters:
- aValue: The Double to convert.
Converts the value of the specified Int32 to an equivalent Boolean value.
Parameters:
- aValue: The Int32 to convert.
Converts the value of the specified Int64 to an equivalent Boolean value.
Parameters:
- aValue: The Int64 to convert.
Converts the value of the specified String to an equivalent Byte value.
Parameters:
- aValue: The String to convert.
Parameters:
- aValue:
Converts the value of the specified Char to an equivalent Byte value.
Parameters:
- aValue: The Char to convert.
Converts the value of the specified String to an equivalent Byte value.
Parameters:
- aValue: The Double to convert.
Converts the value of the specified Int32 to an equivalent Byte value.
Parameters:
- aValue: The Int32 to convert.
Converts the value of the specified Int64 to an equivalent Byte value.
Parameters:
- aValue: The Int64 to convert.
Converts the value of the specified String to an equivalent Char value.
Parameters:
- aValue: The String to convert.
Parameters:
- aValue:
Converts the value of the specified Byte to an equivalent Char value.
Parameters:
- aValue: The Byte to convert.
Converts the value of the specified Int32 to an equivalent Char value.
Parameters:
- aValue: The Int32 to convert.
Converts the value of the specified Int64 to an equivalent Char value.
Parameters:
- aValue: The Int64 to convert.
Converts the value of the specified String to an equivalent Double value.
Parameters:
- aValue: The String to convert.
- aLocale:
Parameters:
- aValue:
Converts the value of the specified Byte to an equivalent Double value.
Parameters:
- aValue: The Byte to convert.
Converts the value of the specified Int32 to an equivalent Double value.
Parameters:
- aValue: The Int32 to convert.
Converts the value of the specified Int64 to an equivalent Double value.
Parameters:
- aValue: The Int64 to convert.
Parameters:
- aData:
Parameters:
- aData:
- aCount:
Parameters:
- aData:
- aOffset:
- aCount:
Parameters:
- aData:
Parameters:
- aValue:
- aWidth:
Converts the value of the specified String to an equivalent Int32 value.
Parameters:
- aValue: The String to convert.
Parameters:
- aValue:
Converts the value of the specified Byte to an equivalent Int32 value.
Parameters:
- aValue: The Byte to convert.
Converts the value of the specified Char to an equivalent Int32 value.
Parameters:
- aValue: The Char to convert.
Converts the value of the specified Double to an equivalent Int32 value.
Parameters:
- aValue: The Double to convert.
Converts the value of the specified Int64 to an equivalent Int32 value.
Parameters:
- aValue: The Int64 to convert.
Converts the value of the specified String to an equivalent Int64 value.
Parameters:
- aValue: The String to convert.
Parameters:
- aValue:
Converts the value of the specified Byte to an equivalent Int64 value.
Parameters:
- aValue: The Byte to convert.
Converts the value of the specified Char to an equivalent Int64 value.
Parameters:
- aValue: The Char to convert.
Converts the value of the specified Double to an equivalent Int64 value.
Parameters:
- aValue: The Double to convert.
Converts the value of the specified Int32 to an equivalent Int64 value.
Parameters:
- aValue: The Int32 to convert.
ToOctalString
Parameters:
- aValue:
- aWidth:
Parameters:
- aValue:
Converts the value of the specified Byte to an equivalent String value.
Parameters:
- aValue: The Byte to convert.
- aBase:
Converts the value of the specified Char to an equivalent String value.
Parameters:
- aValue: The Char to convert.
Converts the value of the specified Double to an equivalent String value.
class method ToString(aValue: Double; aDigitsAfterDecimalPoint: Int32; aLocale: Locale): not nullable String
Parameters:
- aValue: The Double to convert.
- aDigitsAfterDecimalPoint:
- aLocale:
Converts the value of the specified Int32 to an equivalent String value.
Parameters:
- aValue: The Int32 to convert.
- aBase:
Converts the value of the specified Int64 to an equivalent String value.
Parameters:
- aValue: The Int64 to convert.
- aBase:
Converts the value of the specified Double to an equivalent String value.
Parameters:
- aValue: The Object to convert.
ToStringInvariant
Parameters:
- aValue:
- aDigitsAfterDecimalPoint:
TryToDouble
Parameters:
- aValue:
- aLocale:
TryToInt32
Parameters:
- aValue:
TryToInt64
Parameters:
- aValue: