FloatParseOptions
struct FloatParseOptionsimport FloatParseOptions from Wax;Floating-point prefix-parser syntax choices. The default General grammar accepts decimal/fixed and scientific forms plus inf/nan, but does not skip whitespace or accept leading plus. Options do not require whole-input consumption; check the result position when that matters.
Members
formatfield
public uint64 formatA combination of the exposed format bits. Prefer a named preset for ordinary parsing.
decimalPointfield
public uint8 decimalPointThe single byte used as the decimal separator, normally ASCII dot.
constructorconstructor
public constructor ()Selects General grammar and the dot decimal separator.
Customconstructor
public constructor Custom (uint64 format, uint8 decimalPoint)Stores explicit format bits and a one-byte decimal separator.
Generalconstructor
public constructor General ()Selects fixed and scientific decimal syntax with inf/nan allowed, dot decimal point, and no leading whitespace or plus.
Jsonconstructor
public constructor Json ()Selects JSON number syntax, rejecting inf/nan, leading plus, and leading zeros. The parser still accepts a prefix; check full consumption separately.
JsonOrInfnanconstructor
public constructor JsonOrInfnan ()Selects JSON number syntax with inf/nan additionally permitted.
Fortranconstructor
public constructor Fortran ()Selects Fortran-style syntax, including d/D and bare signed exponents.
Scientificgetter
public static get Scientific() : uint64Enables scientific exponent syntax. Without Fixed, an exponent is required.
Fixedgetter
public static get Fixed() : uint64Enables fixed decimal syntax. Combine with Scientific to allow optional exponents.
NoInfnangetter
public static get NoInfnan() : uint64Disables inf, infinity, and nan spellings.
BasicJsongetter
public static get BasicJson() : uint64Enables JSON lexical restrictions; combine with NoInfnan for the Json preset.
BasicFortrangetter
public static get BasicFortran() : uint64Enables Fortran exponent conventions.
AllowLeadingPlusgetter
public static get AllowLeadingPlus() : uint64Allows an initial plus sign.
SkipWhiteSpacegetter
public static get SkipWhiteSpace() : uint64Skips leading ASCII space, tab, newline, vertical tab, formfeed, and carriage return.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.