diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-08-11 14:55:17 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-08-11 14:55:17 +0000 |
commit | cb219e9b51f3436b9fb6d63a2c7a05333e4c86ed (patch) | |
tree | d05fe35c8d00387c1fb82d162b3058f9017ed455 /src/fstring.h | |
parent | 4e86c50016ecfea40a72930cdd0460143f9edf4a (diff) | |
download | libbu++-cb219e9b51f3436b9fb6d63a2c7a05333e4c86ed.tar.gz libbu++-cb219e9b51f3436b9fb6d63a2c7a05333e4c86ed.tar.bz2 libbu++-cb219e9b51f3436b9fb6d63a2c7a05333e4c86ed.tar.xz libbu++-cb219e9b51f3436b9fb6d63a2c7a05333e4c86ed.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/fstring.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 | |||
20 | 20 | ||
21 | template<typename t> void __tracer_format( const t &v ); | 21 | template<typename t> void __tracer_format( const t &v ); |
22 | template<> void __tracer_format<FString>( const FString &v ); | 22 | template<> void __tracer_format<FString>( const FString &v ); |
23 | |||
24 | bool &operator<<( bool &dst, const FString &sIn ); | ||
25 | uint8_t &operator<<( uint8_t &dst, const FString &sIn ); | ||
26 | int8_t &operator<<( int8_t &dst, const FString &sIn ); | ||
27 | char &operator<<( char &dst, const FString &sIn ); | ||
28 | uint16_t &operator<<( uint16_t &dst, const FString &sIn ); | ||
29 | int16_t &operator<<( int16_t &dst, const FString &sIn ); | ||
30 | uint32_t &operator<<( uint32_t &dst, const FString &sIn ); | ||
31 | int32_t &operator<<( int32_t &dst, const FString &sIn ); | ||
32 | uint64_t &operator<<( uint64_t &dst, const FString &sIn ); | ||
33 | int64_t &operator<<( int64_t &dst, const FString &sIn ); | ||
34 | float &operator<<( float &dst, const FString &sIn ); | ||
35 | double &operator<<( double &dst, const FString &sIn ); | ||
36 | long double &operator<<( long double &dst, const FString &sIn ); | ||
37 | Bu::FString &operator<<( Bu::FString &dst, const FString &sIn ); | ||
38 | |||
23 | } | 39 | } |
24 | 40 | ||
25 | /***** I dunno about this block, I don't really want to have it... ***** | 41 | /***** I dunno about this block, I don't really want to have it... ***** |