ParsedNumber
struct ParsedNumberimport ParsedNumber from Wax;The lexical scan result for a decimal prefix, including its significant digits and byte ranges. Use valid/outcome before consuming the mantissa. Ranges refer to the exact input span passed to ParseNumberString.
Members
mantissafield
public uint64 mantissaThe accumulated leading decimal significand; tooManyDigits signals truncation requiring the slow path.
exponentfield
public int64 exponentThe base-10 scale applied to the significand.
negativefield
public bool negativeWhether the parsed prefix has a minus sign.
validfield
public bool validWhether lexical numeric scanning succeeded.
tooManyDigitsfield
public bool tooManyDigitsWhether more significant digits were present than the fast significand can retain.
intPartStartfield
public int32 intPartStartThe integer-part start byte offset.
intPartLenfield
public int32 intPartLenThe integer-part byte length.
fracPartStartfield
public int32 fracPartStartThe fractional-part start byte offset.
fracPartLenfield
public int32 fracPartLenThe fractional-part byte length.
lastMatchfield
public int32 lastMatchThe first unconsumed byte offset, or reported failure location.
outcomefield
public int32 outcomeA FloatParse outcome code describing lexical scanning.
constructorconstructor
public constructor ()Creates a zero-initialized, invalid scan record.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.