#include <TPString8.h>
Definition at line 48 of file TPString8.h.
◆ TPString8Pool() [1/2]
TPString8Pool::TPString8Pool |
( |
T2Allocator * | a_pAllocator | ) |
|
Definition at line 46 of file TPString8.cpp.
47 : m_pAllocator( a_pAllocator ), m_oMap( a_pAllocator )
48{
49
50}
◆ TPString8Pool() [2/2]
TPString8Pool::TPString8Pool |
( |
TINT | a_iUnknown1, |
|
|
TINT | a_iUnknown2, |
|
|
T2Allocator * | a_pAllocator, |
|
|
void * | m_pUnknown3 ) |
Definition at line 52 of file TPString8.cpp.
53 : m_pAllocator( a_pAllocator ), m_oMap( a_pAllocator )
54{
55
56
58 {
59 it->Initialise( this );
60 }
61}
TPString8Initialiser * Next() const
static TPString8Initialiser * Head()
◆ Begin()
Definition at line 75 of file TPString8.h.
76 {
77 return m_oMap.Begin();
78 }
◆ End()
Definition at line 80 of file TPString8.h.
81 {
82 return m_oMap.End();
83 }
◆ Get()
void TPString8Pool::Get |
( |
TPooledString8 *& | a_pOutString, |
|
|
const TCHAR * | a_szString, |
|
|
bool * | a_pWasInPool = nullptr ) |
Definition at line 14 of file TPString8.cpp.
15{
17
18 if ( a_szString !=
TNULL )
19 {
21
22 if ( iStrLen != 0 )
23 {
24 auto it = m_oMap.Find( a_szString );
25
26 if ( m_oMap.IsValid( it ) )
27 {
28 if ( a_pWasInPool )
29 *a_pWasInPool =
TTRUE;
30
31 a_pOutString = it->GetSecond();
33 }
34 else
35 {
36 TPooledString8* pString = m_pAllocator->New<TPooledString8>( a_szString, this, m_pAllocator );
38
39 a_pOutString = pString;
41 }
42 }
43 }
44}
const TString8 & GetString8() const
const TCHAR * GetString(TINT a_iIndex=0) const
static TSIZE String8Length(const TCHAR *str)
◆ GetAllocator()
Definition at line 70 of file TPString8.h.
71 {
72 return m_pAllocator;
73 }
◆ InitialiseStatic()
void TPString8Pool::InitialiseStatic |
( |
| ) |
|
|
inline |
◆ Remove()
The documentation for this class was generated from the following files: