29 #ifndef GENICAM_GCSTRING_H 30 #define GENICAM_GCSTRING_H 44 #define GCSTRING_NPOS size_t(-1) 54 # if defined(_MSC_VER) && !defined(PHARLAP_WIN32) 57 class GCBASE_API gcwchar
61 explicit gcwchar(
size_t n );
64 gcwchar(
const gcwchar &rhs );
70 const wchar_t * c_str()
const;
73 size_t length()
const;
89 gcstring (
const char *pc,
size_t n );
92 # if defined(_MSC_VER) && !defined(PHARLAP_WIN32) 93 explicit gcstring (
const wchar_t *pBufferUTF16 );
94 gcstring (
const wchar_t *pBufferUTF16,
size_t n );
102 virtual gcstring & append (
size_t count,
char ch );
104 virtual gcstring & assign (
size_t count,
char ch );
105 virtual gcstring & assign (
const char *pc );
106 virtual gcstring & assign (
const char *pc,
size_t n );
107 # if defined(_MSC_VER) && !defined(PHARLAP_WIN32) 108 virtual gcstring & assign (
const wchar_t *pStringUTF16 );
109 virtual gcstring & assign (
const wchar_t *pStringUTF16,
int n );
111 virtual int compare (
const gcstring &str )
const;
112 # if defined(_MSC_VER) && !defined(PHARLAP_WIN32) 113 virtual gcwchar w_str (
void )
const;
115 virtual const char *c_str (
void )
const;
116 virtual bool empty (
void )
const;
117 virtual size_t find (
char ch,
size_t offset = 0 )
const;
118 virtual size_t find (
const gcstring &str,
size_t offset = 0 )
const;
119 virtual size_t find (
const gcstring &str,
size_t offset,
size_t count )
const;
120 virtual size_t find (
const char* pc,
size_t offset = 0)
const;
121 virtual size_t find (
const char* pc,
size_t offset,
size_t count )
const;
122 virtual size_t length (
void )
const;
123 virtual size_t size (
void )
const;
124 virtual void resize (
size_t n );
125 virtual size_t max_size ( )
const;
127 virtual size_t find_first_of (
const gcstring &str,
size_t offset = 0 )
const;
128 virtual size_t find_first_not_of (
const gcstring &str,
size_t offset = 0 )
const;
129 static size_t _npos (
void );
130 virtual void swap (
gcstring &Right );
140 gcstring & operator += (
const char *pc );
143 gcstring operator += (
char ch )
const;
145 # if defined(_MSC_VER) && !defined(PHARLAP_WIN32) 150 bool operator < (
const gcstring &str )
const;
151 bool operator > (
const gcstring &str )
const;
152 operator const char * ( void )
const;
153 void operator delete (
void *pWhere );
154 void operator delete (
void *pWhere,
void *pNewWhere );
155 void *
operator new (
size_t uiSize );
156 void *
operator new (
size_t uiSize,
void *pWhere );
170 uint8_t m_opaqueData[64];
194 str.
assign(tmp.c_str(), tmp.size());
196 catch(std::bad_alloc &)
211 str.
assign(tmp.c_str(), tmp.size());
213 catch(std::bad_alloc &)
232 catch(std::bad_alloc &)
247 str.
assign(tmp.c_str(), tmp.size());
249 catch(std::bad_alloc &)
258 #endif // GENICAM_GCSTRING_H bool operator!=(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
std::istream & getline(std::istream &is, GENICAM_NAMESPACE::gcstring &str)
STL getline.
virtual void operator=(bool Value)
Set node value.
bool operator==(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
std::istream & getline(std::istream &is, GENICAM_NAMESPACE::gcstring &str, char delim)
STL getline.
std::ostream & operator<<(std::ostream &ostr, const GENICAM_NAMESPACE::gcstring &str)
STL operator out.
LOG4CPP_EXPORT CategoryStream & left(CategoryStream &os)
left manipulator
virtual gcstring & assign(const gcstring &str)
std::istream & operator>>(std::istream &istr, GENICAM_NAMESPACE::gcstring &str)
STL operator in.
A string class which is a clone of std::string.
GCBASE_API void ThrowBadAlloc(const char *source, int line)
#define GCSTRING_NPOS
Indicates either 'not found' or 'all remaining characters'.
virtual const char * c_str(void) const
Platform-dependent type definitions.