QT_BEGIN_NAMESPACE
-QString qulltoa(qulonglong l, int base, const QChar _zero)
+QString qulltoa(qulonglong l, int base, const QChar zero)
{
ushort buff[65]; // length of MAX_ULLONG in base 2
ushort *p = buff + 65;
- if (base != 10 || _zero.unicode() == '0') {
+ if (base != 10 || zero.unicode() == '0') {
while (l != 0) {
int c = l % base;
while (l != 0) {
int c = l % base;
- *(--p) = _zero.unicode() + c;
+ *(--p) = zero.unicode() + c;
l /= base;
}
QT_BEGIN_NAMESPACE
-QString qulltoa(qulonglong l, int base, const QChar _zero);
+QString qulltoa(qulonglong l, int base, const QChar zero);
QString qlltoa(qlonglong l, int base, const QChar zero);
enum PrecisionMode {
static inline bool qIsUpper(char ch)
{
- return ch >= 'A' && ch <= 'Z';
+ return (ch >= 'A' && ch <= 'Z');
}
static inline bool qIsDigit(char ch)
{
- return ch >= '0' && ch <= '9';
+ return (ch >= '0' && ch <= '9');
}
static inline char qToLower(char ch)
{
if (ch >= 'A' && ch <= 'Z')
- return ch - 'A' + 'a';
- else
- return ch;
-}
-
-static inline bool qIsAlnum(char c)
-{
- return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'z');
+ return (ch - 'A' + 'a');
+ return ch;
}
// Removes thousand-group separators in "C" locale.