Go to the documentation of this file.
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 void reserve (
size_t n = 0 );
127 virtual size_t max_size ( )
const;
129 virtual size_t find_first_of (
const gcstring &str,
size_t offset = 0 )
const;
130 virtual size_t find_first_not_of (
const gcstring &str,
size_t offset = 0 )
const;
132 virtual size_t find_last_of (
char c,
size_t offset =
GCSTRING_NPOS )
const;
134 virtual size_t find_last_not_of (
char c,
size_t offset =
GCSTRING_NPOS )
const;
135 static size_t _npos (
void );
136 virtual void swap (
gcstring &Right );
146 gcstring & operator += (
const char *pc );
149 gcstring operator += (
char ch )
const;
151 # if defined(_MSC_VER) && !defined(PHARLAP_WIN32)
156 bool operator < (
const gcstring &str )
const;
157 bool operator > (
const gcstring &str )
const;
158 operator const char * ( void )
const;
159 void operator delete (
void *pWhere );
160 void operator delete (
void *pWhere,
void *pNewWhere );
161 void *
operator new (
size_t uiSize );
162 void *
operator new (
size_t uiSize,
void *pWhere );
176 uint8_t m_opaqueData[64];
200 str.
assign(tmp.c_str(), tmp.size());
202 catch(std::bad_alloc &)
217 str.
assign(tmp.c_str(), tmp.size());
219 catch(std::bad_alloc &)
238 catch(std::bad_alloc &)
253 str.
assign(tmp.c_str(), tmp.size());
255 catch(std::bad_alloc &)
264 #endif // GENICAM_GCSTRING_H
#define GCSTRING_NPOS
Indicates either 'not found' or 'all remaining characters'.
A string class which is a clone of std::string.
virtual gcstring & assign(const gcstring &str)
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.
std::istream & getline(std::istream &is, GENICAM_NAMESPACE::gcstring &str)
STL getline.
bool operator==(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
Platform-dependent type definitions.
GCBASE_API void ThrowBadAlloc(const char *source, int line)
virtual const char * c_str(void) const
bool operator!=(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
virtual IBoolean & operator=(bool Value)
Set node value.
LOG4CPP_EXPORT CategoryStream & left(CategoryStream &os)
left manipulator
std::istream & operator>>(std::istream &istr, GENICAM_NAMESPACE::gcstring &str)
STL operator in.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11