5 // Created by Terrin Eager on 9/26/12.
9 #ifndef __TestTB__bjstring__
10 #define __TestTB__bjstring__
20 BJString(const BJString& scr);
21 BJString(const char* str);
24 BJString& operator=(const char* str);
25 BJString& operator=(const BJString& str);
26 bool operator==(const char* str);
27 bool operator!=(const char* str){return !operator==(str);};
28 bool operator==(const BJString& str);
29 bool operator!=(const BJString& str) {return !operator==(str);};
30 bool operator<(const BJString& str) const;
32 BJ_COMPARE Compare(const BJString& str);
35 BJString& operator+=(const char* str);
36 BJString& operator+=(const BJString& str);
38 const char* GetBuffer() const;
40 void Set(const char* str);
41 void Set(const char* str,BJ_UINT32 len);
43 void Append(const char* str, BJ_UINT32 len);
45 bool Contains(const char* str);
47 BJ_UINT32 GetUINT32();
49 enum BJ_FORMAT_STYLE {BJSS_BYTE,BJSS_TIME} ;
50 void Format(BJ_UINT64 number,BJ_FORMAT_STYLE style);
52 BJ_UINT32 GetLength();
54 BJ_UINT32 GetBufferLength(){return length;};
58 void Create(BJ_UINT32 len);
63 #endif /* defined(__TestTB__bjstring__) */