diff options
Diffstat (limited to '')
-rw-r--r-- | src/stable/string.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/stable/string.cpp b/src/stable/string.cpp index ce679fe..3029584 100644 --- a/src/stable/string.cpp +++ b/src/stable/string.cpp | |||
@@ -964,6 +964,25 @@ Bu::String Bu::String::toUpper() const | |||
964 | return sRet; | 964 | return sRet; |
965 | } | 965 | } |
966 | 966 | ||
967 | int16_t Bu::String::toInt16( int iRadix ) const | ||
968 | { | ||
969 | flatten(); | ||
970 | return strtol( core->pFirst->pData, NULL, iRadix ); | ||
971 | } | ||
972 | |||
973 | int32_t Bu::String::toInt32( int iRadix ) const | ||
974 | { | ||
975 | flatten(); | ||
976 | return strtol( core->pFirst->pData, NULL, iRadix ); | ||
977 | } | ||
978 | |||
979 | int64_t Bu::String::toInt64( int iRadix ) const | ||
980 | { | ||
981 | flatten(); | ||
982 | return strtoll( core->pFirst->pData, NULL, iRadix ); | ||
983 | } | ||
984 | |||
985 | |||
967 | Bu::String::const_iterator Bu::String::find( const char cChar, | 986 | Bu::String::const_iterator Bu::String::find( const char cChar, |
968 | Bu::String::const_iterator iStart ) const | 987 | Bu::String::const_iterator iStart ) const |
969 | { | 988 | { |