#include <cstring>#include <iostream>#include <climits>#include <limits>#include "EST_Chunk.h"#include "EST_strcasecmp.h"#include "EST_bool.h"#include <cstdlib>#include "EST_Regex.h"
Go to the source code of this file.
Classes | |
| class | EST_String |
Macros | |
| #define | EST_Regex_max_subexpressions 10 |
| #define | __GSUB_REENTRANT__ (1) |
| #define | __STRING_ARG_GRIPE__ (1) |
| Gripe about weird arguments like Nulls. More... | |
| #define | __GRIPE_FATAL__ (1) |
| When we find something to gripe about we die then and there. More... | |
| #define | gripe(WHAT) (std::cerr<< ("oops! " WHAT "\n"),abort()) |
| #define | safe_strlen(S) ((S)?strlen(S):(gripe("null strlen"),0)) |
| #define | CHECK_STRING_ARG(S) if (!(S)) gripe("null string arg") |
| #define | MAX_STRING_SIZE (std::numeric_limits<std::size_t>::max()-1) |
| Maximum string size. More... | |
| #define | EST_STRING_ERR_IDX ((std::numeric_limits<std::size_t>::max())) |
Functions | |
| int | fcompare (const EST_String &a, const EST_String &b, const unsigned char *table=NULL) |
| int | fcompare (const EST_String &a, const char *b, const unsigned char *table=NULL) |
| int | operator== (const char *a, const EST_String &b) |
| int | operator== (const EST_String &a, const EST_String &b) |
| ostream & | operator<< (ostream &s, const EST_String &str) |
| #define EST_Regex_max_subexpressions 10 |
Definition at line 40 of file EST_String.h.
| #define __GSUB_REENTRANT__ (1) |
Allow gsub() to be used in multi-threaded applications This will cause gsub to use a local table of substitution points walloced for each gsub. Otherwise one global one is used which should be faster, but non reentrant.
Definition at line 83 of file EST_String.h.
| #define __STRING_ARG_GRIPE__ (1) |
Gripe about weird arguments like Nulls.
Definition at line 86 of file EST_String.h.
| #define __GRIPE_FATAL__ (1) |
When we find something to gripe about we die then and there.
Definition at line 89 of file EST_String.h.
| #define gripe | ( | WHAT | ) | (std::cerr<< ("oops! " WHAT "\n"),abort()) |
Definition at line 92 of file EST_String.h.
| #define safe_strlen | ( | S | ) | ((S)?strlen(S):(gripe("null strlen"),0)) |
Definition at line 98 of file EST_String.h.
| #define CHECK_STRING_ARG | ( | S | ) | if (!(S)) gripe("null string arg") |
Definition at line 99 of file EST_String.h.
| #define MAX_STRING_SIZE (std::numeric_limits<std::size_t>::max()-1) |
Maximum string size.
Definition at line 115 of file EST_String.h.
| #define EST_STRING_ERR_IDX ((std::numeric_limits<std::size_t>::max())) |
Definition at line 116 of file EST_String.h.
| int fcompare | ( | const EST_String & | a, |
| const EST_String & | b, | ||
| const unsigned char * | table | ||
| ) |
Case folded comparison.
The table argument can defined how upper and lower case characters correspond. The default works for ASCII.
Definition at line 1150 of file EST_String.cc.
| int fcompare | ( | const EST_String & | a, |
| const char * | b, | ||
| const unsigned char * | table = NULL |
||
| ) |
Definition at line 1163 of file EST_String.cc.
| int operator== | ( | const char * | a, |
| const EST_String & | b | ||
| ) |
Definition at line 1177 of file EST_String.cc.
| int operator== | ( | const EST_String & | a, |
| const EST_String & | b | ||
| ) |
Definition at line 1189 of file EST_String.cc.
| ostream& operator<< | ( | ostream & | s, |
| const EST_String & | str | ||
| ) |
Definition at line 1075 of file EST_String.cc.