Back to index

im-sdk  12.3.91
Public Types | Static Public Member Functions
UTFCHAR_char_traits Struct Reference

#include <basictype.hh>

List of all members.

Public Types

typedef UTFCHAR char_type
typedef unsigned long int_type

Static Public Member Functions

static void assign (char_type &c1, const char_type &c2)
static bool eq (const char_type &c1, const char_type &c2)
static bool lt (const char_type &c1, const char_type &c2)
static int compare (const char_type *s1, const char_type *s2, size_t n)
static size_t length (const char_type *s)
static const char_typefind (const char_type *s, size_t n, const char_type &a)
static char_typemove (char_type *s1, const char_type *s2, size_t n)
static char_typecopy (char_type *s1, const char_type *s2, size_t n)
static char_typeassign (char_type *s, size_t n, const char_type &a)
static char_type to_char_type (const int_type &i)
static int_type to_int_type (const char_type &ch)
static bool eq_int_type (const int_type &i1, const int_type &i2)
static int_type eof ()
static int_type not_eof (const int_type &i)
static char_typeset (char_type *s, const char_type &c, size_t num)

Detailed Description

Definition at line 78 of file basictype.hh.


Member Typedef Documentation

Definition at line 79 of file basictype.hh.

typedef unsigned long UTFCHAR_char_traits::int_type

Definition at line 80 of file basictype.hh.


Member Function Documentation

static void UTFCHAR_char_traits::assign ( char_type c1,
const char_type c2 
) [inline, static]

Definition at line 82 of file basictype.hh.

    { c1 = c2; }

Here is the caller graph for this function:

static char_type* UTFCHAR_char_traits::assign ( char_type s,
size_t  n,
const char_type a 
) [inline, static]

Definition at line 107 of file basictype.hh.

    { 
       for (size_t i = 0; i < n; i++) s[i] = a;
       return s;
    }
static int UTFCHAR_char_traits::compare ( const char_type s1,
const char_type s2,
size_t  n 
) [inline, static]

Definition at line 88 of file basictype.hh.

    { return memcmp(s1, s2, n * sizeof(char_type)); }
static char_type* UTFCHAR_char_traits::copy ( char_type s1,
const char_type s2,
size_t  n 
) [inline, static]

Definition at line 105 of file basictype.hh.

    { return (char_type*) memcpy(s1, s2, n * sizeof(char_type)); }
static int_type UTFCHAR_char_traits::eof ( ) [inline, static]

Definition at line 118 of file basictype.hh.

    { return (int_type) EOF; }

Here is the caller graph for this function:

static bool UTFCHAR_char_traits::eq ( const char_type c1,
const char_type c2 
) [inline, static]

Definition at line 84 of file basictype.hh.

    { return (c1 == c2); }
static bool UTFCHAR_char_traits::eq_int_type ( const int_type i1,
const int_type i2 
) [inline, static]

Definition at line 116 of file basictype.hh.

    { return i1 == i2; }
static const char_type* UTFCHAR_char_traits::find ( const char_type s,
size_t  n,
const char_type a 
) [inline, static]

Definition at line 96 of file basictype.hh.

    {
       for (size_t i = 0; (i < n); s++, i++) {
           if (*s == a) return s;
       }
       return NULL;
    }
static size_t UTFCHAR_char_traits::length ( const char_type s) [inline, static]

Definition at line 90 of file basictype.hh.

    { 
       int i;
       for (i = 0; *s; s++, i++);
       return i;
    }
static bool UTFCHAR_char_traits::lt ( const char_type c1,
const char_type c2 
) [inline, static]

Definition at line 86 of file basictype.hh.

    { return (c1 < c2); }
static char_type* UTFCHAR_char_traits::move ( char_type s1,
const char_type s2,
size_t  n 
) [inline, static]

Definition at line 103 of file basictype.hh.

    { return (char_type*) memmove(s1, s2, n * sizeof(char_type)); }
static int_type UTFCHAR_char_traits::not_eof ( const int_type i) [inline, static]

Definition at line 120 of file basictype.hh.

    { return (i == eof()) ? 0 : i; }

Here is the call graph for this function:

static char_type* UTFCHAR_char_traits::set ( char_type s,
const char_type c,
size_t  num 
) [inline, static]

Definition at line 124 of file basictype.hh.

    { return assign(s, num, c); }

Here is the call graph for this function:

static char_type UTFCHAR_char_traits::to_char_type ( const int_type i) [inline, static]

Definition at line 112 of file basictype.hh.

    { return (char_type) i; }
static int_type UTFCHAR_char_traits::to_int_type ( const char_type ch) [inline, static]

Definition at line 114 of file basictype.hh.

    { return (int_type) ch; }

The documentation for this struct was generated from the following file: