int mp_parse_num_base(const char *str, uint len, int *base);