Class AbstractFloatValueParser
java.lang.Object
ch.randelshofer.fastdoubleparser.AbstractNumberParser
ch.randelshofer.fastdoubleparser.AbstractFloatValueParser
- Direct Known Subclasses:
AbstractConfigurableFloatingPointBitsFromByteArrayAscii, AbstractConfigurableFloatingPointBitsFromByteArrayUtf8, AbstractConfigurableFloatingPointBitsFromCharArray, AbstractConfigurableFloatingPointBitsFromCharSequence, AbstractJavaFloatingPointBitsFromByteArray, AbstractJavaFloatingPointBitsFromCharArray, AbstractJavaFloatingPointBitsFromCharSequence, AbstractJsonFloatingPointBitsFromByteArray, AbstractJsonFloatingPointBitsFromCharArray, AbstractJsonFloatingPointBitsFromCharSequence
Abstract base class for parsers that parse a
FloatingPointLiteral from a
character sequence (str).
This is a C++ to Java port of Daniel Lemire's fast_double_parser.
References:
- Daniel Lemire, fast_float number parsing library: 4x faster than strtod. MIT License.
- github.com
- Daniel Lemire, Number Parsing at a Gigabyte per Second, Software: Practice and Experience 51 (8), 2021. arXiv.2101.11408v3 [cs.DS] 24 Feb 2021
- arxiv.org
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intThe decimal exponent of a double has a range of -324 to +308.static final intThis is the maximal input length that a Java array can have.(package private) static final longThis is the smallest non-negative number that has 19 decimal digits.Fields inherited from class AbstractNumberParser
CHAR_TO_HEX_MAP, DECIMAL_POINT_CLASS, ILLEGAL_OFFSET_OR_ILLEGAL_LENGTH, OTHER_CLASS, SYNTAX_ERROR, SYNTAX_ERROR_BITS, VALUE_EXCEEDS_LIMITS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractNumberParser
charAt, charAt, charAt, checkBounds, checkBounds, lookupHex, lookupHex
-
Field Details
-
MAX_INPUT_LENGTH
public static final int MAX_INPUT_LENGTHThis is the maximal input length that a Java array can have.- See Also:
-
MINIMAL_NINETEEN_DIGIT_INTEGER
static final long MINIMAL_NINETEEN_DIGIT_INTEGERThis is the smallest non-negative number that has 19 decimal digits.- See Also:
-
MAX_EXPONENT_NUMBER
static final int MAX_EXPONENT_NUMBERThe decimal exponent of a double has a range of -324 to +308. The hexadecimal exponent of a double has a range of -1022 to +1023.- See Also:
-
-
Constructor Details
-
AbstractFloatValueParser
AbstractFloatValueParser()
-