ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

string.h File Reference
#include <ucommon/cpr.h>
#include <ucommon/generics.h>
#include <ucommon/protocols.h>
#include <ucommon/object.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
Include dependency graph for string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  ucommon::String
class  ucommon::String::regex
class  ucommon::String::cstring
class  ucommon::memstring
class  ucommon::charbuf< S >
class  ucommon::stringbuf< S >
class  ucommon::strdup_t




#define PGP_B64_WIDTH   64
#define MIME_B64_WIDTH   76


typedef String ucommon::string_t
typedef String::regex ucommon::stringex_t


bool ucommon::eq (char const *s1, char const *s2)
bool ucommon::ne (char const *s1, char const *s2)
bool ucommon::eq (char const *s1, char const *s2, size_t size)
bool ucommon::ne (char const *s1, char const *s2, size_t size)
bool ucommon::eq (String &s1, const char *s2)
bool ucommon::ne (String &s1, String &s2)
bool ucommon::lt (String &s1, const char *s2)
bool ucommon::gt (String &s1, const char *s2)
bool ucommon::le (String &s1, const char *s2)
bool ucommon::ge (String &s1, const char *s2)
bool ucommon::eq_case (char const *s1, char const *s2)
bool ucommon::ne_case (char const *s1, char const *s2)
bool ucommon::eq_case (char const *s1, char const *s2, size_t size)
String ucommon::str (const char *string)
String ucommon::str (String &string)
String ucommon::str (short value)
String ucommon::str (unsigned short value)
String ucommon::str (long value)
String ucommon::str (unsigned long value)
String ucommon::str (double value)
void ucommon::swap< string_t > (string_t &s1, string_t &s2)

Detailed Description

A common string class and character string support functions. Ucommon offers a simple string class that operates through copy-on-write when needing to expand buffer size. Derived classes and templates allows one to create strings which live entirely in the stack frame rather than using the heap. This offers the benefit of the string class manipulative members without compromising performance or locking issues in threaded applications. Other things found here include better and safer char array manipulation functions.

Definition in file string.h.

Macro Definition Documentation


#define MIME_B64_WIDTH   76

Definition at line 64 of file string.h.


#define PGP_B64_WIDTH   64

Definition at line 63 of file string.h.