YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
int
__gmp_istream_set_base (istream &i, char &c, bool &zero, bool &showbase)
{ int base;
zero = showbase = false; switch (i.flags() & ios::basefield)
{ case ios::dec:
base = 10; break; case ios::hex:
base = 16; break; case ios::oct:
base = 8; break; default:
showbase = true; // look for initial "0" or "0x" or "0X" if (c == '0')
{ if (! i.get(c))
c = 0; // reset or we might loop indefinitely
if (c == 'x' || c == 'X')
{
base = 16;
i.get(c);
} else
{
base = 8;
zero = true; // if no other digit is read, the "0" counts
}
} else
base = 10; break;
}
return base;
}
void
__gmp_istream_set_digits (string &s, istream &i, char &c, bool &ok, int base)
{ switch (base)
{ case10: while (isdigit(c))
{
ok = true; // at least a valid digit was read
s += c; if (! i.get(c)) break;
} break; case8: while (isdigit(c) && c != '8' && c != '9')
{
ok = true; // at least a valid digit was read
s += c; if (! i.get(c)) break;
} break; case16: while (isxdigit(c))
{
ok = true; // at least a valid digit was read
s += c; if (! i.get(c)) break;
} break;
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.