Lines Matching defs:char_type

81     typedef PRUnichar char_type;
85 NS_COM static const char_type *sEmptyBuffer;
89 assign( char_type& lhs, char_type rhs )
104 char_type
107 return char_type(c);
112 to_int_type( char_type c )
125 // |char_type| comparisons:
129 eq( char_type lhs, char_type rhs )
136 lt( char_type lhs, char_type rhs )
145 char_type*
146 move( char_type* s1, const char_type* s2, size_t n )
148 return NS_STATIC_CAST(char_type*, memmove(s1, s2, n * sizeof(char_type)));
152 char_type*
153 copy( char_type* s1, const char_type* s2, size_t n )
155 return NS_STATIC_CAST(char_type*, memcpy(s1, s2, n * sizeof(char_type)));
159 char_type*
160 copyASCII( char_type* s1, const char* s2, size_t n )
162 for (char_type* s = s1; n--; ++s, ++s2) {
170 char_type*
171 assign( char_type* s, size_t n, char_type c )
174 return NS_STATIC_CAST(char_type*, wmemset(s, to_int_type(c), n));
176 char_type* result = s;
185 compare( const char_type* s1, const char_type* s2, size_t n )
202 compareASCII( const char_type* s1, const char* s2, size_t n )
219 compareASCIINullTerminated( const char_type* s1, size_t n, const char* s2 )
245 char_type
246 ASCIIToLower( char_type c )
262 compareLowerCaseToASCII( const char_type* s1, const char* s2, size_t n )
269 char_type lower_s1 = ASCIIToLower(*s1);
282 compareLowerCaseToASCIINullTerminated( const char_type* s1, size_t n, const char* s2 )
291 char_type lower_s1 = ASCIIToLower(*s1);
304 length( const char_type* s )
310 while ( !eq(*s++, char_type(0)) )
317 const char_type*
318 find( const char_type* s, size_t n, char_type c )
321 return NS_REINTERPRET_CAST(const char_type*, wmemchr(s, to_int_type(c), n));
366 typedef char char_type;
370 NS_COM static const char_type *sEmptyBuffer;
374 assign( char_type& lhs, char_type rhs )
385 char_type
388 return char_type(c);
393 to_int_type( char_type c )
406 // |char_type| comparisons:
410 eq( char_type lhs, char_type rhs )
417 lt( char_type lhs, char_type rhs )
426 char_type*
427 move( char_type* s1, const char_type* s2, size_t n )
429 return NS_STATIC_CAST(char_type*, memmove(s1, s2, n * sizeof(char_type)));
433 char_type*
434 copy( char_type* s1, const char_type* s2, size_t n )
436 return NS_STATIC_CAST(char_type*, memcpy(s1, s2, n * sizeof(char_type)));
440 char_type*
441 copyASCII( char_type* s1, const char* s2, size_t n )
447 char_type*
448 assign( char_type* s, size_t n, char_type c )
450 return NS_STATIC_CAST(char_type*, memset(s, to_int_type(c), n));
455 compare( const char_type* s1, const char_type* s2, size_t n )
462 compareASCII( const char_type* s1, const char* s2, size_t n )
478 compareASCIINullTerminated( const char_type* s1, size_t n, const char* s2 )
501 char_type
502 ASCIIToLower( char_type c )
509 compareLowerCaseToASCII( const char_type* s1, const char* s2, size_t n )
516 char_type lower_s1 = ASCIIToLower(*s1);
528 compareLowerCaseToASCIINullTerminated( const char_type* s1, size_t n, const char* s2 )
537 char_type lower_s1 = ASCIIToLower(*s1);
550 length( const char_type* s )
556 const char_type*
557 find( const char_type* s, size_t n, char_type c )
559 return NS_REINTERPRET_CAST(const char_type*, memchr(s, to_int_type(c), n));