Package ch.randelshofer.fastdoubleparser
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 class AbstractFloatValueParser extends AbstractNumberParser
Abstract base class for parsers that parse aFloatingPointLiteralfrom 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
Fields Modifier and Type Field Description (package private) static intMAX_EXPONENT_NUMBERThe decimal exponent of a double has a range of -324 to +308.static intMAX_INPUT_LENGTHThis is the maximal input length that a Java array can have.(package private) static longMINIMAL_NINETEEN_DIGIT_INTEGERThis is the smallest non-negative number that has 19 decimal digits.-
Fields inherited from class ch.randelshofer.fastdoubleparser.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 Constructor Description AbstractFloatValueParser()
-
Method Summary
-
Methods inherited from class ch.randelshofer.fastdoubleparser.AbstractNumberParser
charAt, charAt, charAt, checkBounds, checkBounds, lookupHex, lookupHex
-
-
-
-
Field Detail
-
MAX_INPUT_LENGTH
public static final int MAX_INPUT_LENGTH
This is the maximal input length that a Java array can have.- See Also:
- Constant Field Values
-
MINIMAL_NINETEEN_DIGIT_INTEGER
static final long MINIMAL_NINETEEN_DIGIT_INTEGER
This is the smallest non-negative number that has 19 decimal digits.- See Also:
- Constant Field Values
-
MAX_EXPONENT_NUMBER
static final int MAX_EXPONENT_NUMBER
The 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:
- Constant Field Values
-
-