Class JsonDoubleBitsFromCharArray

    • Constructor Detail

      • JsonDoubleBitsFromCharArray

        public JsonDoubleBitsFromCharArray()
        Creates a new instance.
    • Method Detail

      • valueOfFloatLiteral

        long valueOfFloatLiteral​(char[] str,
                                 int startIndex,
                                 int endIndex,
                                 boolean isNegative,
                                 long significand,
                                 int exponent,
                                 boolean isSignificandTruncated,
                                 int exponentOfTruncatedSignificand)
        Description copied from class: AbstractJsonFloatingPointBitsFromCharArray
        Computes a float value from the given components of a decimal float literal.
        Specified by:
        valueOfFloatLiteral in class AbstractJsonFloatingPointBitsFromCharArray
        Parameters:
        str - the string that contains the float literal (and maybe more)
        startIndex - the start index (inclusive) of the float literal inside the string
        endIndex - the end index (exclusive) of the float literal inside the string
        isNegative - whether the float value is negative
        significand - the significand of the float value (can be truncated)
        exponent - the exponent of the float value
        isSignificandTruncated - whether the significand is truncated
        exponentOfTruncatedSignificand - the exponent value of the truncated significand
        Returns:
        the bit pattern of the parsed value, if the input is legal; otherwise, -1L.