Top Description Fields Constructors Methods
ch.randelshofer.fastdoubleparser

pack-priv abstract Class AbstractFloatValueParser

extends AbstractNumberParser
Class Inheritance
Known Direct Subclasses
ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromByteArray, ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray, ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence, ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromByteArray, ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharArray, ch.randelshofer.fastdoubleparser.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_double_parser, 4x faster than strtod. Apache License 2.0 or Boost Software License.
github.com
Daniel Lemire, fast_float number parsing library: 4x faster than strtod. Apache License 2.0.
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

Modifier and TypeField and Description
pack-priv static final int
MAX_EXPONENT_NUMBER

The decimal exponent of a double has a range of -324 to +308.

public static final int
pack-priv static final long
Inherited from ch.randelshofer.fastdoubleparser.AbstractNumberParser:
CHAR_TO_HEX_MAPDECIMAL_POINT_CLASSILLEGAL_OFFSET_OR_ILLEGAL_LENGTHOTHER_CLASSSYNTAX_ERRORVALUE_EXCEEDS_LIMITS

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from ch.randelshofer.fastdoubleparser.AbstractNumberParser:
charAtcharAtcharAtlookupHexlookupHex

Field Detail

MAX_EXPONENT_NUMBERback to summary
pack-priv 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.

MAX_INPUT_LENGTHback to summary
public static final int MAX_INPUT_LENGTH
MINIMAL_NINETEEN_DIGIT_INTEGERback to summary
pack-priv static final long MINIMAL_NINETEEN_DIGIT_INTEGER

Constructor Detail

AbstractFloatValueParserback to summary
pack-priv AbstractFloatValueParser()