Macro libyml::AS_DIGIT

source ·
macro_rules! AS_DIGIT {
    ($string:expr) => { ... };
}
Expand description

Converts the byte at the current pointer in the string to its corresponding integer value.

§Parameters

  • string: A mutable reference to a struct containing a pointer to a byte array.

§Return

  • Returns the integer value of the byte at the current pointer in the string. The byte is assumed to be in the ASCII range (0-9), so the function subtracts the ASCII value of ‘0’ (48) to convert it to its integer representation.