Function eat_digits

Synopsis

#include <include/cpptoml.h>

int eat_digits(int len)

Description

No description yet.

Source

Lines 1806-1816 in include/cpptoml.h.

int eat_digits(int len)
{
    int val = 0;
    for (int i = 0; i < len; ++i)
    {
        if (!is_number(*it_) || it_ == end_)
            on_error_();
        val = 10 * val + (*it_++ - '0');
    }
    return val;
}





Add Discussion as Guest

Log in