From cb219e9b51f3436b9fb6d63a2c7a05333e4c86ed Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 11 Aug 2009 14:55:17 +0000 Subject: Added some more functions to Bu::FBasicString, including a setSize function. Also added some awesome helpers to Bu::FString in the form of << operators to convert a string to many common types. Handy. --- src/fstring.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/fstring.h') diff --git a/src/fstring.h b/src/fstring.h index 0793154..1fc02ca 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -20,6 +20,22 @@ namespace Bu template void __tracer_format( const t &v ); template<> void __tracer_format( const FString &v ); + + bool &operator<<( bool &dst, const FString &sIn ); + uint8_t &operator<<( uint8_t &dst, const FString &sIn ); + int8_t &operator<<( int8_t &dst, const FString &sIn ); + char &operator<<( char &dst, const FString &sIn ); + uint16_t &operator<<( uint16_t &dst, const FString &sIn ); + int16_t &operator<<( int16_t &dst, const FString &sIn ); + uint32_t &operator<<( uint32_t &dst, const FString &sIn ); + int32_t &operator<<( int32_t &dst, const FString &sIn ); + uint64_t &operator<<( uint64_t &dst, const FString &sIn ); + int64_t &operator<<( int64_t &dst, const FString &sIn ); + float &operator<<( float &dst, const FString &sIn ); + double &operator<<( double &dst, const FString &sIn ); + long double &operator<<( long double &dst, const FString &sIn ); + Bu::FString &operator<<( Bu::FString &dst, const FString &sIn ); + } /***** I dunno about this block, I don't really want to have it... ***** -- cgit v1.2.3