#include <ctype.h>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <ext/hash_set>
#include <ext/hash_map>
Go to the source code of this file.
Namespaces | |
namespace | oasys |
Classes | |
struct | oasys::StringHash |
Hashing function class for std::strings. More... | |
struct | oasys::StringLessThan |
Less than function. More... | |
struct | oasys::StringGreaterThan |
Greater than function. More... | |
struct | oasys::StringEquals |
Equality function class for std::strings. More... | |
class | oasys::StringSet |
A StringSet is a set with std::string members. More... | |
class | oasys::StringMap< _Type > |
A StringMap is a map with std::string keys. More... | |
class | oasys::StringMultiMap< _Type > |
A StringMultiMap is a multimap with std::string keys. More... | |
class | oasys::StringHashSet |
A StringHashSet is a hash set with std::string members. More... | |
class | oasys::StringHashMap< _Type > |
A StringHashMap is a hash map with std::string keys. More... | |
class | oasys::StringVector |
A StringVector is a std::vector of std::strings. More... | |
Defines | |
#define | _std __gnu_cxx |
Utilities and stl typedefs for basic_string. | |
#define | HEXTONUM(x) ((x) < 'a' ? (x) - '0' : x - 'a' + 10) |
#define | to_char(n) ((n) + '0') |
Functions | |
int | oasys::tokenize (const std::string &str, const std::string &sep, std::vector< std::string > *tokens) |
Tokenize a single string into a vector. | |
void | oasys::hex2str (std::string *str, const u_char *bp, size_t len) |
Generate a hex string from a binary buffer. | |
std::string | oasys::hex2str (const u_char *bp, size_t len) |
Ditto that returns a temporary. | |
void | oasys::hex2str (std::string *str, const char *bp, size_t len) |
A hex2str variant with a char*. | |
std::string | oasys::hex2str (const char *bp, size_t len) |
A hex2str variant with a char*. | |
void | oasys::str2hex (const std::string &str, u_char *bp, size_t len) |
Parse a hex string into a binary buffer. | |
bool | oasys::str_isascii (const u_char *bp, size_t len) |
Return true if the string contains only printable characters. | |
size_t | oasys::fast_ultoa (unsigned long val, int base, char *endp) |
Convert an unsigned long to ascii in the given base. | |
const char * | oasys::bool_to_str (bool b) |
const char * | oasys::str_if (bool b, const char *true_str, const char *false_str) |
#define _std __gnu_cxx |
#define HEXTONUM | ( | x | ) | ((x) < 'a' ? (x) - '0' : x - 'a' + 10) |
Referenced by oasys::str2hex().
#define to_char | ( | n | ) | ((n) + '0') |