summaryrefslogtreecommitdiff
path: root/src/fstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fstring.cpp')
-rw-r--r--src/fstring.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/fstring.cpp b/src/fstring.cpp
index 82d024d..f71d6c1 100644
--- a/src/fstring.cpp
+++ b/src/fstring.cpp
@@ -1,13 +1,20 @@
1#include "fstring.h" 1#include "fstring.h"
2#include "hash.h" 2#include "hash.h"
3 3
4template<> uint32_t __calcHashCode<FString>( const FString &k ) 4template<> uint32_t Bu::__calcHashCode<Bu::FString>( const Bu::FString &k )
5{ 5{
6 return __calcHashCode( k.c_str() ); 6 return __calcHashCode( k.c_str() );
7} 7}
8 8
9template<> bool __cmpHashKeys<FString>( const FString &a, const FString &b ) 9template<> bool Bu::__cmpHashKeys<Bu::FString>(
10 const Bu::FString &a, const Bu::FString &b )
10{ 11{
11 return a == b; 12 return a == b;
12} 13}
13 14
15std::basic_ostream<char>& operator<< (std::basic_ostream<char> &os, const Bu::FString &val )
16{
17 os.write( val.getStr(), val.getSize() );
18 return os;
19}
20