Lines Matching defs:char_type

41   typedef charT char_type; // for users to acquire the basic character type
45 static void assign (char_type& c1, const char_type& c2)
47 static bool eq (const char_type& c1, const char_type& c2)
49 static bool ne (const char_type& c1, const char_type& c2)
51 static bool lt (const char_type& c1, const char_type& c2)
53 static char_type eos () { return char_type(); } // the null character
54 static bool is_del(char_type a) { return 0; }
59 static int compare (const char_type* s1, const char_type* s2, size_t n)
69 static size_t length (const char_type* s)
77 static char_type* copy (char_type* s1, const char_type* s2, size_t n)
84 static char_type* move (char_type* s1, const char_type* s2, size_t n)
86 char_type a[n];
95 static char_type* set (char_type* s1, const char_type& c, size_t n)
109 typedef char char_type;
111 static void assign (char_type& c1, const char_type& c2)
113 static bool eq (const char_type & c1, const char_type& c2)
115 static bool ne (const char_type& c1, const char_type& c2)
117 static bool lt (const char_type& c1, const char_type& c2)
119 static char_type eos () { return 0; }
120 static bool is_del(char_type a) { return isspace(a); }
122 static int compare (const char_type* s1, const char_type* s2, size_t n)
124 static size_t length (const char_type* s)
126 static char_type* copy (char_type* s1, const char_type* s2, size_t n)
127 { return (char_type*) memcpy (s1, s2, n); }
128 static char_type* move (char_type* s1, const char_type* s2, size_t n)
129 { return (char_type*) memmove (s1, s2, n); }
130 static char_type* set (char_type* s1, const char_type& c, size_t n)
131 { return (char_type*) memset (s1, c, n); }
137 typedef wchar_t char_type;
139 static void assign (char_type& c1, const char_type& c2)
141 static bool eq (const char_type & c1, const char_type& c2)
143 static bool ne (const char_type& c1, const char_type& c2)
145 static bool lt (const char_type& c1, const char_type& c2)
147 static char_type eos () { return 0; }
148 static bool is_del(char_type a) { return iswspace(a); }
150 static int compare (const char_type* s1, const char_type* s2, size_t n)
152 static size_t length (const char_type* s)
154 static char_type* copy (char_type* s1, const char_type* s2, size_t n)
156 static char_type* set (char_type* s1, const char_type& c, size_t n)