26 #ifndef _QORE_QORESTRING_H
28 #define _QORE_QORESTRING_H
45 struct qore_string_private*
priv;
59 DLLLOCAL
void concat_reverse(
QoreString* targ)
const;
61 DLLLOCAL
int snprintf(
size_t size,
const char* fmt, ...);
62 DLLLOCAL
int vsnprintf(
size_t size,
const char* fmt, va_list args);
150 DLLEXPORT
void concatEscape(
const char* str,
char c,
char esc_char =
'\\');
248 DLLEXPORT
void concat(
const char* str);
251 DLLEXPORT
void concat(
const std::string& str);
257 DLLEXPORT
void concat(
const char c);
279 DLLEXPORT
int compare(
const char* str)
const;
292 DLLEXPORT
int sprintf(
const char* fmt, ...);
297 DLLEXPORT
int vsprintf(
const char* fmt, va_list args);
302 DLLEXPORT
void take(
char* str);
334 DLLEXPORT
void clear();
339 DLLEXPORT
void reset();
344 DLLEXPORT
void replaceAll(
const char* old_str,
const char* new_str);
458 DLLEXPORT
void tolwr();
463 DLLEXPORT
void toupr();
480 DLLEXPORT
void allocate(
unsigned requested_size);
500 DLLEXPORT
void addch(
char c,
unsigned times);
538 DLLEXPORT
void trim(
const char* chars = 0);
553 DLLEXPORT
void trim(
char c);
571 DLLEXPORT
void prepend(
const char* str);
589 DLLEXPORT
bool operator==(
const std::string& other)
const;
592 DLLEXPORT
bool operator==(
const char* other)
const;
609 DLLEXPORT
bool empty()
const;
672 DLLLOCAL
QoreString(
struct qore_string_private* p);
680 DLLLOCAL QoreStringMaker(
const QoreStringMaker& str);
683 DLLLOCAL QoreStringMaker&
operator=(
const QoreStringMaker&);
689 DLLEXPORT QoreStringMaker(
const char* fmt, ...);
694 DLLEXPORT QoreStringMaker(
const QoreEncoding* enc,
const char* fmt, ...);
718 void*
operator new(size_t);
746 DLLLOCAL
operator bool()
const {
return str != 0; }
774 DLLLOCAL TempEncodingHelper& operator=(
const TempEncodingHelper& );
777 DLLLOCAL
void*
operator new(size_t);
780 DLLLOCAL
void discard_intern() {
810 set_intern(&s, qe, xsink);
820 set_intern(s, qe, xsink);
845 set_intern(s, qe, xsink);
864 DLLLOCAL
operator bool()
const {
return str != 0; }