Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends

GStringRep Class Reference

Inheritance diagram for GStringRep:
Inheritance graph
[legend]
Collaboration diagram for GStringRep:
Collaboration graph
[legend]

List of all members.

Classes

class  ChangeLocale
class  Unicode

Public Types

enum  EncodeType {
  XUCS4, XUCS4BE, XUCS4LE, XUCS4_2143,
  XUCS4_3412, XUTF16, XUTF16BE, XUTF16LE,
  XUTF8, XEBCDIC, XOTHER
}
enum  EscapeMode { UNKNOWN_ESCAPED = 0, IS_ESCAPED = 1, NOT_ESCAPED = 2 }

Public Member Functions

virtual GP< GStringRepappend (const GP< GStringRep > &s2) const =0
GP< GStringRepappend (const char *s2) const
virtual GP< GStringRepappend (const GP< GStringRep > &s2) const
virtual GP< GStringRepblank (const unsigned int sz=0) const
virtual GP< GStringRepblank (const unsigned int sz) const =0
int cmp (const char *s2, const int len=(-1)) const
virtual int cmp (const GP< GStringRep > &s2, const int len=(-1)) const =0
virtual int cmp (const GP< GStringRep > &s2, const int len=(-1)) const
GP< GStringRepconcat (const GP< GStringRep > &s1, const GP< GStringRep > &s2) const
GP< GStringRepconcat (const char *s1, const GP< GStringRep > &s2) const
GP< GStringRepconcat (const GP< GStringRep > &s1, const char *s2) const
GP< GStringRepconcat (const char *s1, const char *s2) const
int contains (char const accept[], int from=0) const
GP< GStringRepdowncase (void) const
int firstEndSpace (int from=0, const int len=(-1)) const
int get_count (void) const
GP< GStringRepgetbuf (int n) const
int getUCS4 (uint32_t &w, const int from) const
virtual bool is_valid (void) const =0
virtual bool is_valid (void) const
virtual bool isNative (void) const
virtual bool isUTF8 (void) const
virtual bool isUTF8 (void) const
int nextChar (const int from=0) const
int nextNonSpace (const int from=0, const int len=(-1)) const
int nextSpace (const int from=0, const int len=(-1)) const
int rcontains (char const accept[], int from=0) const
int rsearch (char const *str, int from=0) const
int rsearch (char c, int from=0) const
int search (char c, int from=0) const
int search (char const *str, int from=0) const
GP< GStringRepsetat (int n, char ch) const
GP< GStringRepstrdup (const char *s) const
GP< GStringRepsubstr (const uint16_t *s, const int start, const int length=(-1)) const
GP< GStringRepsubstr (const uint32_t *s, const int start, const int length=(-1)) const
GP< GStringRepsubstr (const char *s, const int start, const int length=(-1)) const
virtual double toDouble (const int pos, int &endpos) const =0
virtual double toDouble (const int pos, int &endpos) const
GP< GStringReptoEscaped (const bool tosevenbit) const
virtual int toInt (void) const
virtual int toInt (void) const =0
virtual long int toLong (const int pos, int &endpos, const int base=10) const =0
virtual long int toLong (const int pos, int &endpos, const int base=10) const
virtual GP< GStringReptoNative (const EscapeMode escape=UNKNOWN_ESCAPED) const
virtual GP< GStringReptoNative (const EscapeMode escape=UNKNOWN_ESCAPED) const =0
virtual GP< GStringReptoThis (const GP< GStringRep > &rep, const GP< GStringRep > &) const
virtual GP< GStringReptoThis (const GP< GStringRep > &rep, const GP< GStringRep > &locale=0) const =0
virtual unsigned long toULong (const int pos, int &endpos, const int base=10) const
virtual unsigned long toULong (const int pos, int &endpos, const int base=10) const =0
virtual GP< GStringReptoUTF8 (const bool nothrow=false) const
virtual GP< GStringReptoUTF8 (const bool nothrow=false) const =0
virtual unsigned char * UCS4toString (const uint32_t w, unsigned char *ptr, mbstate_t *ps=0) const =0
virtual unsigned char * UCS4toString (const uint32_t w, unsigned char *ptr, mbstate_t *ps=0) const
GP< GStringRepupcase (void) const
 UTF8 (void)
GP< GStringRepvformat (va_list args) const

Static Public Member Functions

static int cmp (const GP< GStringRep > &s1, const GP< GStringRep > &s2, const int len=(-1))
static int cmp (const GP< GStringRep > &s1, const char *s2, const int len=(-1))
static int cmp (const char *s1, const GP< GStringRep > &s2, const int len=(-1))
static int cmp (const char *s1, const char *s2, const int len=(-1))
template<class TYPE >
static GP< GStringRepcreate (const unsigned int sz, TYPE *)
static GP< GStringRepcreate (const GP< GStringRep > &s1, const GP< GStringRep > &s2)
static GP< GStringRepcreate (const GP< GStringRep > &s1, const char *s2)
static GP< GStringRepcreate (const char *s1, const GP< GStringRep > &s2)
static GP< GStringRepcreate (const char *s1, const char *s2)
static GP< GStringRepcreate (const char *s, const int start, const int length=(-1))
static GP< GStringRepcreate (const uint16_t *s, const int start, const int length=(-1))
static GP< GStringRepcreate (const uint32_t *s, const int start, const int length=(-1))
static GP< GStringRepcreate (const unsigned int sz=0)
static GP< GStringRepcreate (const char fmt[], va_list &args)
static GP< GStringRepcreate (const char *s)
static GP< GStringRepcreate_format (const char fmt[],...)
static GP< GStringRepNativeToUTF8 (const char *s)
static unsigned char * UCS4toNative (const uint32_t w, unsigned char *ptr, mbstate_t *ps)
static int UCS4toUTF16 (uint32_t w, uint16_t &w1, uint16_t &w2)
static unsigned char * UCS4toUTF8 (const uint32_t w, unsigned char *ptr)
static int UTF16toUCS4 (uint32_t &w, uint16_t const *const s, void const *const eptr)
static GP< GStringRepUTF8ToNative (const char *s, const EscapeMode escape=UNKNOWN_ESCAPED)
static uint32_t UTF8toUCS4 (unsigned char const *&s, void const *const endptr)
static int UTF8toUCS4 (uint32_t &w, unsigned char const s[], void const *const endptr)

Protected Member Functions

virtual GP< Unicodeget_remainder (void) const
virtual uint32_t getValidUCS4 (const char *&source) const =0
virtual uint32_t getValidUCS4 (const char *&source) const
const char * isCharType (bool(*xiswtest)(const unsigned long wc), const char *ptr, const bool reverse=false) const
int nextCharType (bool(*xiswtest)(const unsigned long wc), const int from, const int len, const bool reverse=false) const
virtual void set_remainder (void const *const buf, const unsigned int size, const EncodeType encodetype)
virtual void set_remainder (void const *const buf, const unsigned int size, const GP< GStringRep > &encoding)
virtual void set_remainder (const GP< Unicode > &remainder)
GP< GStringReptocase (bool(*xiswcase)(const unsigned long wc), unsigned long(*xtowcase)(const unsigned long wc)) const

Static Protected Member Functions

static bool giswlower (const unsigned long w)
static bool giswspace (const unsigned long w)
static bool giswupper (const unsigned long w)
static unsigned long gtowlower (const unsigned long w)
static unsigned long gtowupper (const unsigned long w)

Protected Attributes

volatile int count
 The reference counter.
char * data
int size

Friends

class GBaseString
class GNativeString
class GUTF8String
DJVUAPI unsigned int hash (const GBaseString &ref)
class Unicode
class UTF8

Detailed Description

Definition at line 162 of file GString.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index