summaryrefslogtreecommitdiff
path: root/src/stable/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/string.cpp')
-rw-r--r--src/stable/string.cpp19
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
967int16_t Bu::String::toInt16( int iRadix ) const
968{
969 flatten();
970 return strtol( core->pFirst->pData, NULL, iRadix );
971}
972
973int32_t Bu::String::toInt32( int iRadix ) const
974{
975 flatten();
976 return strtol( core->pFirst->pData, NULL, iRadix );
977}
978
979int64_t Bu::String::toInt64( int iRadix ) const
980{
981 flatten();
982 return strtoll( core->pFirst->pData, NULL, iRadix );
983}
984
985
967Bu::String::const_iterator Bu::String::find( const char cChar, 986Bu::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{