|
SYS_FORCE_INLINE | UT_WorkBuffer () |
|
SYS_FORCE_INLINE | UT_WorkBuffer (const char *str) |
|
SYS_FORCE_INLINE | UT_WorkBuffer (const char *data, exint size) |
|
SYS_FORCE_INLINE | UT_WorkBuffer (const UT_String &str) |
|
SYS_FORCE_INLINE | UT_WorkBuffer (const UT_StringRef &str) |
|
SYS_FORCE_INLINE | UT_WorkBuffer (const UT_WorkBuffer &other) |
|
SYS_FORCE_INLINE | ~UT_WorkBuffer () |
|
SYS_FORCE_INLINE const char * | buffer () const |
|
SYS_FORCE_INLINE const char * | data () const |
|
char * | lock (exint offset=0, exint reserve_bytes=0) |
|
void | release (bool recompute_length=false) |
|
void | releaseSetLength (exint new_length) |
|
SYS_FORCE_INLINE exint | getAllocatedSize () const |
|
int64 | getMemoryUsage (bool inclusive) const |
|
void | reserve (exint bytes=0) |
|
SYS_FORCE_INLINE char | operator() (exint idx) const |
|
SYS_FORCE_INLINE char | first () const |
|
SYS_FORCE_INLINE char | last () const |
|
int | isNullTerminated () const |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator= (const UT_WorkBuffer &other) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator= (const char *str) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator= (const std::string &str) |
|
SYS_FORCE_INLINE void | strcpy (const char *src) |
|
SYS_FORCE_INLINE void | strcpy (const UT_String &src) |
|
SYS_FORCE_INLINE void | strcpy (const UT_StringRef &src) |
|
SYS_FORCE_INLINE void | strcpy (const UT_WorkBuffer &src) |
|
SYS_FORCE_INLINE void | strncpy (const char *src, exint maxlen) |
|
SYS_FORCE_INLINE exint | strlen () const |
|
SYS_FORCE_INLINE exint | length () const |
|
SYS_FORCE_INLINE void | strcat (const char *src) |
|
void | protectedStrcat (const char *str, bool force_quote=false) |
|
void | fullyProtectedStrcat (const char *str, bool force_quote=false) |
|
void | fullyProtectedBinaryStrcat (const char *str, exint size, bool force_quote=false) |
|
SYS_FORCE_INLINE void | strncat (const char *src, exint len) |
|
void | strcatFirstWord (const char *src) |
|
SYS_FORCE_INLINE int | strcmp (const char *src) const |
|
SYS_FORCE_INLINE int | strncmp (const char *src, exint n) const |
|
SYS_FORCE_INLINE char * | strdup () const |
|
SYS_FORCE_INLINE void | clear () |
|
SYS_FORCE_INLINE bool | isEmpty () const |
|
SYS_FORCE_INLINE bool | isstring () const |
|
SYS_FORCE_INLINE void | write (exint offset, char c) |
|
void | write (exint offset, const char *src) |
|
void | write (exint offset, const UT_StringHolder &src) |
|
bool | readFile (const char *filename) |
|
bool | getline (std::istream &is) |
|
bool | getline (FILE *fp) |
|
bool | cmdGetLine (std::istream &is, UT_WorkArgs &args, int &line_num, const char *comment_chars="#", const char *separators=" \t\n\r") |
|
bool | cmdGetLine (UT_IStream &is, UT_WorkArgs &args, int &line_num, const char *comment_chars="#", const char *separators=" \t\n\r") |
|
bool | cmdGetLine (FILE *fp, UT_WorkArgs &args, int &line_num, const char *comment_chars="#", const char *separators=" \t\n\r") |
|
int | sprintf (const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
|
int int | appendSprintf (const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
|
int int int | vsprintf (const char *fmt, va_list ap) |
|
template<typename... Args> |
size_t | format (const char *fmt, const Args &...args) |
|
template<typename... Args> |
size_t | appendFormat (const char *fmt, const Args &...args) |
|
template<typename... Args> |
size_t | print (const Args &...args) |
|
template<typename... Args> |
size_t | appendPrint () |
|
template<typename T , typename... Args> |
size_t | appendPrint (const T &value, const Args &...args) |
|
SYS_FORCE_INLINE void | append (char character) |
|
void | printMemory (int64 mem) |
|
void | appendPrintMemory (int64 mem) |
|
void | append (exint n, char character) |
|
void | append (utf32 cp) |
| Append a single Unicode code point, converted to UTF8. More...
|
|
void | append (const char *data, exint size) |
|
SYS_FORCE_INLINE void | append (const char *str) |
|
SYS_FORCE_INLINE void | append (const UT_String &str) |
|
SYS_FORCE_INLINE void | append (const UT_StringRef &str) |
|
void | append (const UT_StringArray &strs, const UT_StringRef &sep) |
|
SYS_FORCE_INLINE void | append (const UT_WorkBuffer &wb) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator+= (const char *str) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator+= (const std::string &str) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator+= (const UT_WorkBuffer &wb) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator+= (const UT_String &str) |
|
SYS_FORCE_INLINE UT_WorkBuffer & | operator+= (const UT_StringRef &str) |
|
void | prepend (char character) |
|
void | prepend (const char *data, exint size) |
|
SYS_FORCE_INLINE void | prepend (const char *str) |
|
SYS_FORCE_INLINE void | prepend (const UT_String &str) |
|
SYS_FORCE_INLINE void | prepend (const UT_StringRef &str) |
|
void | insert (exint pos, const char *str, exint slen) |
|
void | erase (exint pos, exint len) |
| Erase len characters from location pos in the string. More...
|
|
void | rewind () |
|
SYS_FORCE_INLINE void | backup (exint by_length) |
| Rewind by the given length. More...
|
|
SYS_FORCE_INLINE void | truncate (exint new_length) |
|
void | backupTo (char c) |
|
void | advance (exint by_length) |
|
SYS_FORCE_INLINE const char * | findChar (char c, int occurance_number=1) const |
|
const char * | lastChar (char c, int occurance_number=1) const |
|
const char * | findCharFrom (char c, exint position, int occurance_number=1) const |
|
void | adoptFromMalloc (char *data, exint length) |
|
void | adoptFromCharArray (UT_Array< char > &data) |
|
exint | count (const char *needle) const |
| Count the occurrences of the text in the current string. More...
|
|
bool | getNextToken (const char *(&string), const UT_String separators=" \t\n") |
|
void | copyIntoString (UT_String &str) const |
|
void | copyIntoString (char *str, exint max_length) const |
|
void | stealIntoString (UT_String &str) |
|
void | stealIntoStringHolder (UT_StringHolder &str) |
|
std::string | toStdString () const |
|
bool | stripComments (char comment_char= '#') |
|
int | strip (const char *chars) |
|
void | removeTrailingSpaceLines () |
| Remove trailing whitespace lines. More...
|
|
bool | removeTrailingSpace () |
| Remove trailing whitespace, return true if whitespace was removed. More...
|
|
bool | removeLeadingSpace () |
| Remove leading white space, return true if whitespace was removed. More...
|
|
bool | removeTrailingDigits () |
| Remove trailing digits, return true if some were removed. More...
|
|
void | lower () |
| Convert string to lower case. More...
|
|
void | upper () |
| Convert string to upper case. More...
|
|
void | makeIndentString (exint indent, exint tabstop=8) |
| Create a string of tabs & spaces which represents the given indent. More...
|
|
void | eraseHead (exint n) |
| Remove the first n characters. More...
|
|
int | substitute (const char *find, const char *replacement, int count=-1) |
|
int | substitute (const char *find, const char *replacement, bool all) |
| Convenience version of substitute() for all or single occurrence. More...
|
|
bool | subPatterns (const char *to_pattern, const char *from_name, const char *from_pattern) |
|
void | setFromUTF16 (const utf16 *str) |
| UTF-16 / UTF-8 conversions. More...
|
|
void | setAsUTF16 (const utf8 *str) |
|
SYS_FORCE_INLINE const utf16 * | castToUTF16 () const |
| Once set as UTF16-LE, get it back as such a pointer. More...
|
|
utf16 * | lockUTF16 (exint offset=0, exint len=0) |
| Lock buffer for len utf-16 characters. More...
|
|
void | swap (UT_WorkBuffer &other) |
|
SYS_FORCE_INLINE const char * | begin () const |
| Iterator compatibility. More...
|
|
SYS_FORCE_INLINE const char * | end () const |
|
|
SYS_FORCE_INLINE bool | operator== (const char *str) const |
|
SYS_FORCE_INLINE bool | operator== (const UT_String &str) const |
|
SYS_FORCE_INLINE bool | operator== (const UT_StringRef &str) const |
|
SYS_FORCE_INLINE bool | operator== (const UT_WorkBuffer &buf) const |
|
SYS_FORCE_INLINE bool | operator!= (const char *str) const |
|
SYS_FORCE_INLINE bool | operator!= (const UT_String &str) const |
|
SYS_FORCE_INLINE bool | operator!= (const UT_StringRef &str) const |
|
SYS_FORCE_INLINE bool | operator!= (const UT_WorkBuffer &buf) const |
|
|
void | itoa (int64 i) |
|
void | utoa (uint64 i) |
|