int MultiDigit::from_string(char * s)
{
    if (!strncmp(s,"0x",2))
    {
        // return from_hexstring(s+2);
    }
    else
    {
        MultiDigit d, accum2(0), ten(10);

        from_number(0);

        while (((*s) >= '0') && ((*s) <= '9'))
        {
            d.from_number(*s-'0');
            multiply_multi_digit(*(this), ten, &accum2);
            add_multi_digit(accum2, d, this);
        }
    }
}
MultiDigit::MultiDigit(unsigned long long value)
{
    digits  = NULL;
    from_number(value);
}
Exemple #3
0
 bool operator()(const sql_number &value) const
 {
     return value.apply_visitor<from_number, bool>(from_number(stmt_, index_));
 }