diff options
Diffstat (limited to 'qtools/qcstring.h')
-rw-r--r-- | qtools/qcstring.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/qtools/qcstring.h b/qtools/qcstring.h index abf30b3..f484207 100644 --- a/qtools/qcstring.h +++ b/qtools/qcstring.h @@ -282,19 +282,20 @@ public: QCString &remove( uint index, uint len ); QCString &replace( uint index, uint len, const char *s); QCString &replace( const QRegExp &rx, const char *str ); - short toShort( bool *ok=0 ) const; - ushort toUShort( bool *ok=0 ) const; - int toInt( bool *ok=0 ) const; - uint toUInt( bool *ok=0 ) const; - long toLong( bool *ok=0 ) const; - ulong toULong( bool *ok=0 ) const; - uint64 toUInt64( bool *ok=0 ) const; + short toShort( bool *ok=0, int base=10 ) const; + ushort toUShort( bool *ok=0, int base=10 ) const; + int toInt( bool *ok=0, int base=10 ) const; + uint toUInt( bool *ok=0, int base=10 ) const; + long toLong( bool *ok=0, int base=10 ) const; + ulong toULong( bool *ok=0, int base=10 ) const; + uint64 toUInt64( bool *ok=0, int base=10 ) const; QCString &setNum(short n); QCString &setNum(ushort n); QCString &setNum(int n); QCString &setNum(uint n); QCString &setNum(long n); QCString &setNum(ulong n); + bool startsWith( const char *s ) const; /** Converts the string to a plain C string */ operator const char *() const |