ReactOS 0.4.15-dev-7889-g76290a6
xlocinfo.h File Reference
#include <ctype.h>
#include <locale.h>
#include <wchar.h>
#include <yvals.h>
Include dependency graph for xlocinfo.h:

Go to the source code of this file.

Classes

struct  _Collvec
 
struct  _Ctypevec
 
struct  _Cvtvec
 

Macros

#define _XA   0x100
 
#define _XS   0x000
 
#define _BB   _CONTROL
 
#define _CN   _SPACE
 
#define _DI   _DIGIT
 
#define _LO   _LOWER
 
#define _PU   _PUNCT
 
#define _SP   _BLANK
 
#define _UP   _UPPER
 
#define _XD   _HEX
 
#define _X_ALL   LC_ALL
 
#define _X_COLLATE   LC_COLLATE
 
#define _X_CTYPE   LC_CTYPE
 
#define _X_MONETARY   LC_MONETARY
 
#define _X_NUMERIC   LC_NUMERIC
 
#define _X_TIME   LC_TIME
 
#define _X_MAX   LC_MAX
 
#define _X_MESSAGES   6
 
#define _NCAT   7
 
#define _CATMASK(n)   ((1 << (n)) >> 1)
 
#define _M_COLLATE   _CATMASK(_X_COLLATE)
 
#define _M_CTYPE   _CATMASK(_X_CTYPE)
 
#define _M_MONETARY   _CATMASK(_X_MONETARY)
 
#define _M_NUMERIC   _CATMASK(_X_NUMERIC)
 
#define _M_TIME   _CATMASK(_X_TIME)
 
#define _M_MESSAGES   _CATMASK(_X_MESSAGES)
 
#define _M_ALL   (_CATMASK(_NCAT) - 1)
 

Typedefs

typedef struct _Collvec _Collvec
 
typedef struct _Ctypevec _Ctypevec
 
typedef struct _Cvtvec _Cvtvec
 

Functions

_CRTIMP _Collvec __cdecl _Getcoll (void)
 
_CRTIMP _Ctypevec __cdecl _Getctype (void)
 
_CRTIMP _Cvtvec __cdecl _Getcvt (void)
 
_CRTIMP int __cdecl _Getdateorder (void)
 
_CRTIMP int __cdecl _Mbrtowc (wchar_t *, const char *, size_t, mbstate_t *, const _Cvtvec *)
 
_CRTIMP float __cdecl _Stof (const char *, char **, long)
 
_CRTIMP double __cdecl _Stod (const char *, char **, long)
 
_CRTIMP long double __cdecl _Stold (const char *, char **, long)
 
_CRTIMP int __cdecl _Strcoll (const char *, const char *, const char *, const char *, const _Collvec *)
 
_CRTIMP size_t __cdecl _Strxfrm (char *_String1, char *_End1, const char *, const char *, const _Collvec *)
 
_CRTIMP int __cdecl _Tolower (int, const _Ctypevec *)
 
_CRTIMP int __cdecl _Toupper (int, const _Ctypevec *)
 
_CRTIMP int __cdecl _Wcrtomb (char *, wchar_t, mbstate_t *, const _Cvtvec *)
 
_CRTIMP int __cdecl _Wcscoll (const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *, const _Collvec *)
 
_CRTIMP size_t __cdecl _Wcsxfrm (wchar_t *_String1, wchar_t *_End1, const wchar_t *, const wchar_t *, const _Collvec *)
 
_CRTIMP short __cdecl _Getwctype (wchar_t, const _Ctypevec *)
 
_CRTIMP const wchar_t *__cdecl _Getwctypes (const wchar_t *, const wchar_t *, short *, const _Ctypevec *)
 
_CRTIMP wchar_t __cdecl _Towlower (wchar_t, const _Ctypevec *)
 
_CRTIMP wchar_t __cdecl _Towupper (wchar_t, const _Ctypevec *)
 
_END_C_LIB_DECL _C_STD_END _C_LIB_DECL _CRTIMP void *__cdecl _Gettnames (void)
 
_CRTIMP char *__cdecl _Getdays (void)
 
_CRTIMP char *__cdecl _Getmonths (void)
 
_CRTIMP size_t __cdecl _Strftime (char *, size_t _Maxsize, const char *, const struct tm *, void *)
 
_END_C_LIB_DECL _C_LIB_DECL _locale_t __cdecl _GetLocaleForCP (unsigned int)
 

Macro Definition Documentation

◆ _BB

#define _BB   _CONTROL

Definition at line 20 of file xlocinfo.h.

◆ _CATMASK

#define _CATMASK (   n)    ((1 << (n)) >> 1)

Definition at line 39 of file xlocinfo.h.

◆ _CN

#define _CN   _SPACE

Definition at line 21 of file xlocinfo.h.

◆ _DI

#define _DI   _DIGIT

Definition at line 22 of file xlocinfo.h.

◆ _LO

#define _LO   _LOWER

Definition at line 23 of file xlocinfo.h.

◆ _M_ALL

#define _M_ALL   (_CATMASK(_NCAT) - 1)

Definition at line 46 of file xlocinfo.h.

◆ _M_COLLATE

#define _M_COLLATE   _CATMASK(_X_COLLATE)

Definition at line 40 of file xlocinfo.h.

◆ _M_CTYPE

#define _M_CTYPE   _CATMASK(_X_CTYPE)

Definition at line 41 of file xlocinfo.h.

◆ _M_MESSAGES

#define _M_MESSAGES   _CATMASK(_X_MESSAGES)

Definition at line 45 of file xlocinfo.h.

◆ _M_MONETARY

#define _M_MONETARY   _CATMASK(_X_MONETARY)

Definition at line 42 of file xlocinfo.h.

◆ _M_NUMERIC

#define _M_NUMERIC   _CATMASK(_X_NUMERIC)

Definition at line 43 of file xlocinfo.h.

◆ _M_TIME

#define _M_TIME   _CATMASK(_X_TIME)

Definition at line 44 of file xlocinfo.h.

◆ _NCAT

#define _NCAT   7

Definition at line 37 of file xlocinfo.h.

◆ _PU

#define _PU   _PUNCT

Definition at line 24 of file xlocinfo.h.

◆ _SP

#define _SP   _BLANK

Definition at line 25 of file xlocinfo.h.

◆ _UP

#define _UP   _UPPER

Definition at line 26 of file xlocinfo.h.

◆ _X_ALL

#define _X_ALL   LC_ALL

Definition at line 29 of file xlocinfo.h.

◆ _X_COLLATE

#define _X_COLLATE   LC_COLLATE

Definition at line 30 of file xlocinfo.h.

◆ _X_CTYPE

#define _X_CTYPE   LC_CTYPE

Definition at line 31 of file xlocinfo.h.

◆ _X_MAX

#define _X_MAX   LC_MAX

Definition at line 35 of file xlocinfo.h.

◆ _X_MESSAGES

#define _X_MESSAGES   6

Definition at line 36 of file xlocinfo.h.

◆ _X_MONETARY

#define _X_MONETARY   LC_MONETARY

Definition at line 32 of file xlocinfo.h.

◆ _X_NUMERIC

#define _X_NUMERIC   LC_NUMERIC

Definition at line 33 of file xlocinfo.h.

◆ _X_TIME

#define _X_TIME   LC_TIME

Definition at line 34 of file xlocinfo.h.

◆ _XA

#define _XA   0x100

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 18 of file xlocinfo.h.

◆ _XD

#define _XD   _HEX

Definition at line 27 of file xlocinfo.h.

◆ _XS

#define _XS   0x000

Definition at line 19 of file xlocinfo.h.

Typedef Documentation

◆ _Collvec

◆ _Ctypevec

◆ _Cvtvec

Function Documentation

◆ _Getcoll()

_CRTIMP _Collvec __cdecl _Getcoll ( void  )

◆ _Getctype()

_CRTIMP _Ctypevec __cdecl _Getctype ( void  )

◆ _Getcvt()

_CRTIMP _Cvtvec __cdecl _Getcvt ( void  )

◆ _Getdateorder()

_CRTIMP int __cdecl _Getdateorder ( void  )

◆ _Getdays()

_CRTIMP char *__cdecl _Getdays ( void  )

Definition at line 417 of file locale.c.

418{
420 int i, len, size;
421 char *out;
422
423 TRACE("\n");
424
425 size = cur->str.names.short_mon[0]-cur->str.names.short_wday[0];
427 if(!out)
428 return NULL;
429
430 size = 0;
431 for(i=0; i<7; i++) {
432 out[size++] = ':';
433 len = strlen(cur->str.names.short_wday[i]);
434 memcpy(&out[size], cur->str.names.short_wday[i], len);
435 size += len;
436
437 out[size++] = ':';
438 len = strlen(cur->str.names.wday[i]);
439 memcpy(&out[size], cur->str.names.wday[i], len);
440 size += len;
441 }
442 out[size] = '\0';
443
444 return out;
445}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define NULL
Definition: types.h:112
FxCollectionEntry * cur
GLsizeiptr size
Definition: glext.h:5919
GLenum GLsizei len
Definition: glext.h:6722
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static FILE * out
Definition: regtests2xml.c:44
#define MSVCRT_malloc
Definition: msvcrt.h:151
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:354
#define TRACE(s)
Definition: solgame.cpp:4
struct MSVCRT___lc_time_data * lc_time_curr
Definition: msvcrt.h:134

◆ _GetLocaleForCP()

◆ _Getmonths()

_CRTIMP char *__cdecl _Getmonths ( void  )

Definition at line 450 of file locale.c.

451{
453 int i, len, size;
454 char *out;
455
456 TRACE("\n");
457
458 size = cur->str.names.am-cur->str.names.short_mon[0];
460 if(!out)
461 return NULL;
462
463 size = 0;
464 for(i=0; i<12; i++) {
465 out[size++] = ':';
466 len = strlen(cur->str.names.short_mon[i]);
467 memcpy(&out[size], cur->str.names.short_mon[i], len);
468 size += len;
469
470 out[size++] = ':';
471 len = strlen(cur->str.names.mon[i]);
472 memcpy(&out[size], cur->str.names.mon[i], len);
473 size += len;
474 }
475 out[size] = '\0';
476
477 return out;
478}

◆ _Gettnames()

Definition at line 483 of file locale.c.

484{
486 unsigned int i, size = sizeof(MSVCRT___lc_time_data);
487
488 TRACE("\n");
489
490 for(i=0; i<sizeof(cur->str.str)/sizeof(cur->str.str[0]); i++)
491 size += strlen(cur->str.str[i])+1;
492
494 if(!ret)
495 return NULL;
496 memcpy(ret, cur, size);
497
498 size = 0;
499 for(i=0; i<sizeof(cur->str.str)/sizeof(cur->str.str[0]); i++) {
500 ret->str.str[i] = &ret->data[size];
501 size += strlen(&ret->data[size])+1;
502 }
503
504 return ret;
505}
int ret

◆ _Getwctype()

_CRTIMP short __cdecl _Getwctype ( wchar_t  ,
const _Ctypevec  
)

◆ _Getwctypes()

_CRTIMP const wchar_t *__cdecl _Getwctypes ( const wchar_t ,
const wchar_t ,
short ,
const _Ctypevec  
)

◆ _Mbrtowc()

_CRTIMP int __cdecl _Mbrtowc ( wchar_t ,
const char ,
size_t  ,
mbstate_t ,
const _Cvtvec  
)

◆ _Stod()

_CRTIMP double __cdecl _Stod ( const char ,
char **  ,
long   
)

◆ _Stof()

_CRTIMP float __cdecl _Stof ( const char ,
char **  ,
long   
)

◆ _Stold()

_CRTIMP long double __cdecl _Stold ( const char ,
char **  ,
long   
)

◆ _Strcoll()

_CRTIMP int __cdecl _Strcoll ( const char ,
const char ,
const char ,
const char ,
const _Collvec  
)

◆ _Strftime()

_CRTIMP size_t __cdecl _Strftime ( char ,
size_t  _Maxsize,
const char ,
const struct tm ,
void  
)

◆ _Strxfrm()

_CRTIMP size_t __cdecl _Strxfrm ( char _String1,
char _End1,
const char ,
const char ,
const _Collvec  
)

◆ _Tolower()

_CRTIMP int __cdecl _Tolower ( int  ,
const _Ctypevec  
)

◆ _Toupper()

_CRTIMP int __cdecl _Toupper ( int  ,
const _Ctypevec  
)

◆ _Towlower()

_CRTIMP wchar_t __cdecl _Towlower ( wchar_t  ,
const _Ctypevec  
)

◆ _Towupper()

_CRTIMP wchar_t __cdecl _Towupper ( wchar_t  ,
const _Ctypevec  
)

◆ _Wcrtomb()

_CRTIMP int __cdecl _Wcrtomb ( char ,
wchar_t  ,
mbstate_t ,
const _Cvtvec  
)

◆ _Wcscoll()

_CRTIMP int __cdecl _Wcscoll ( const wchar_t ,
const wchar_t ,
const wchar_t ,
const wchar_t ,
const _Collvec  
)

◆ _Wcsxfrm()

_CRTIMP size_t __cdecl _Wcsxfrm ( wchar_t _String1,
wchar_t _End1,
const wchar_t ,
const wchar_t ,
const _Collvec  
)