19#ifndef _STLP_CHAR_TRAITS_H
20#define _STLP_CHAR_TRAITS_H
24#ifndef _STLP_INTERNAL_CSTDDEF
28#ifndef _STLP_INTERNAL_CSTRING
33# include <sys/types.h>
36#if defined (__BORLANDC__)
40# include <sys/types.h>
43#ifndef _STLP_INTERNAL_CONSTRUCT_H
47#ifndef _STLP_INTERNAL_CWCHAR
55#define _STLP_NULL_CHAR_INIT(_ChT) _STLP_DEFAULT_CONSTRUCTED(_ChT)
59#elif defined (_STLP_WIN32)
60# if defined (_STLP_LONG_LONG) && !defined (__CYGWIN__)
68# ifdef _STLP_USE_DEFAULT_FILE_OFFSET
70# elif defined(_LARGEFILE_SOURCE) || defined(_LARGEFILE64_SOURCE) \
78#if defined (_STLP_WIN32)
87template <
class _StateT>
class fpos {
131template <
class _CharT,
class _IntT>
142 {
return __c1 == __c2; }
144 {
return __c1 < __c2; }
147 for (
size_t __i = 0; __i <
__n; ++__i)
148 if (!
eq(__s1[__i], __s2[__i]))
149 return __s1[__i] < __s2[__i] ? -1 : 1;
156 for (; !
eq(__s[__i], _NullChar); ++__i) {}
161 for ( ;
__n > 0 ; ++__s, --
__n)
171 return (
__n == 0 ? __s1 :
176 for (
size_t __i = 0; __i <
__n; ++__i)
191 {
return __c1 == __c2; }
202template <
class _CharT>
220 {
return (
char)(
unsigned char)
__c; }
223 {
return (
unsigned char)
__c; }
240#if defined (_STLP_HAS_WCHAR_T)
245# if !defined (_STLP_NO_NATIVE_WIDE_FUNCTIONS) && !defined (_STLP_WCHAR_HPACC_EXCLUDE)
247# if !defined (__BORLANDC__)
248 static wchar_t*
_STLP_CALL move(
wchar_t* __dest,
const wchar_t* __src,
size_t __n)
252 static wchar_t*
_STLP_CALL copy(
wchar_t* __dest,
const wchar_t* __src,
size_t __n)
253 {
return wmemcpy(__dest, __src,
__n); }
255# if !defined (__DMC__) && !defined (__BORLANDC__)
#define _STLP_DEFAULT_CONSTRUCTED(_TTp)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
#define _STLP_NULL_CHAR_INIT(_ChT)
fpos< mbstate_t > streampos
fpos< mbstate_t > wstreampos
static char_type *_STLP_CALL copy(char_type *__s1, const char_type *__s2, size_t __n)
static int _STLP_CALL compare(const char_type *__s1, const char_type *__s2, size_t __n)
static bool _STLP_CALL lt(const char_type &__c1, const char_type &__c2)
static int_type _STLP_CALL not_eof(const int_type &__c)
static bool _STLP_CALL eq_int_type(const int_type &__c1, const int_type &__c2)
static const char_type *_STLP_CALL find(const char_type *__s, size_t __n, const char_type &__c)
static size_t _STLP_CALL length(const char_type *__s)
static int_type _STLP_CALL to_int_type(const char_type &__c)
static void _STLP_CALL assign(char_type &__c1, const char_type &__c2)
static char_type *_STLP_CALL move(char_type *__s1, const char_type *__s2, size_t _Sz)
static bool _STLP_CALL eq(const char_type &__c1, const char_type &__c2)
static char_type *_STLP_CALL assign(char_type *__s, size_t __n, char_type __c)
static char_type _STLP_CALL to_char_type(const int_type &__c)
static int_type _STLP_CALL eof()
static size_t _STLP_CALL length(const char *__s)
static char _STLP_CALL to_char_type(const int &__c)
static int _STLP_CALL to_int_type(const char &__c)
static char *_STLP_CALL assign(char *__s, size_t __n, char __c)
static void _STLP_CALL assign(char &__c1, const char &__c2)
static int _STLP_CALL compare(const char *__s1, const char *__s2, size_t __n)
fpos & operator+=(streamoff __off)
fpos operator+(streamoff __off)
bool operator!=(const fpos &__y) const
bool operator==(const fpos &__y) const
fpos operator-(streamoff __off)
fpos & operator-=(streamoff __off)
__kernel_ptrdiff_t ptrdiff_t
#define _STLP_TEMPLATE_NULL
#define __STATIC_CAST(__x, __y)
#define _STLP_CLASS_DECLSPEC
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
GLuint GLsizei GLsizei * length
__MINGW_EXTENSION typedef long long off64_t
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
wchar_t *__cdecl wmemmove(_Out_writes_all_opt_(_N) wchar_t *_S1, _In_reads_opt_(_N) const wchar_t *_S2, _In_ size_t _N)
wchar_t *__cdecl wmemset(_Out_writes_all_(_N) wchar_t *_S, _In_ wchar_t _C, _In_ size_t _N)
int __cdecl wmemcmp(_In_reads_(_N) const wchar_t *_S1, _In_reads_(_N) const wchar_t *_S2, _In_ size_t _N)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
#define eq(received, expected, label, type)