Class ConfigurableDoubleBitsFromByteArrayUtf8

    • Constructor Detail

      • ConfigurableDoubleBitsFromByteArrayUtf8

        public ConfigurableDoubleBitsFromByteArrayUtf8​(NumberFormatSymbols symbols,
                                                       boolean ignoreCase)
        Creates a new instance.
    • Method Detail

      • valueOfFloatLiteral

        long valueOfFloatLiteral​(byte[] str,
                                 int integerStartIndex,
                                 int integerEndIndex,
                                 int fractionStartIndex,
                                 int fractionEndIndex,
                                 boolean isSignificandNegative,
                                 long significand,
                                 int exponent,
                                 boolean isSignificandTruncated,
                                 int exponentOfTruncatedSignificand,
                                 int exponentValue,
                                 int startIndex,
                                 int endIndex)
        Computes a float value from the given components of a decimal float literal.
        Specified by:
        valueOfFloatLiteral in class AbstractConfigurableFloatingPointBitsFromByteArrayUtf8
        Parameters:
        str - the string that contains the float literal (and maybe more)
        integerStartIndex - the start index (inclusive) of the integer part of the significand inside the string
        integerEndIndex - the end index (exclusive) of the integer part of the significand the string
        fractionStartIndex - the start index (inclusive) of the fraction part of the significand inside the string
        fractionEndIndex - the end index (exclusive) of the fraction part of the significand the string
        isSignificandNegative - whether the significand value is negative
        significand - the significand of the float value (can be truncated)
        exponent - the exponent of the float value considering the significand
        isSignificandTruncated - whether the significand is truncated
        exponentOfTruncatedSignificand - the exponent value of the truncated significand
        exponentValue - the exponent of the float value without considering the significand
        startIndex - the start index of the literal in str
        endIndex - the end index of the literal in str
        Returns:
        the bit pattern of the parsed value, if the input is legal; otherwise, -1L.