102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
locale.c File Reference
#include "pcdogs/image/globals.h"
#include "pcdogs/image/storage.h"
#include "pcdogs/platform/enums.h"
#include "pcdogs/runtime/constants.h"
#include "pcdogs/runtime/functions.h"
#include "pcdogs/runtime/globals.h"
#include "pcdogs/runtime/types.h"
#include <intrin.h>
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Macros

#define CRT_GUARDED_ALLOCA(guard, level, size)
#define nullptr   0

Functions

int32_t CRT_GetStringTypeAWithSEHGuard (DWORD info_type, LPCSTR src, int32_t src_count, uint16_t *char_types, UINT code_page, LCID locale, int32_t strict, volatile struct CRT_SEHRegistration3 *guard)
int32_t CRT_MapStringAWithSEHGuard (LCID locale, DWORD map_flags, LPCSTR src, int32_t src_count, LPSTR dest, int32_t dest_count, UINT code_page, int32_t strict, volatile struct CRT_SEHRegistration3 *guard)
int32_t CRT_isctype (int32_t ch, int32_t char_type_mask)
int32_t CRT_tolower (int32_t ch)
int32_t CRT_ismbblead (uint32_t character)
int32_t __chvalidator (uint8_t character, int32_t fallback_mask, uint8_t multibyte_mask)
int32_t __setmbcp (int32_t requested_code_page)
uint32_t CRT_ResolveRequestedCodePage (int32_t requested_code_page)
uint32_t CRT_MapCodePageToLocaleId (uint32_t code_page)
void __resetmbcp ()
void __setmbcp_updatetables ()
void __initmbctable ()
int32_t String_ConvertCRTWideCharToMultiByte (char *buffer, uint16_t wide_char)

Macro Definition Documentation

◆ CRT_GUARDED_ALLOCA

#define CRT_GUARDED_ALLOCA ( guard,
level,
size )
Value:
({ \
(guard)->tryLevel = (level); \
__asm__ volatile("" ::: "memory"); \
void *storage = __builtin_alloca(size); \
__asm__ volatile("" : : "r"(storage) : "memory"); \
(guard)->tryLevel = CRT_SEH_TRY_NONE; \
storage; \
})
@ CRT_SEH_TRY_NONE
Definition constants.h:175

Definition at line 15 of file locale.c.

◆ nullptr

#define nullptr   0

Definition at line 24 of file locale.c.

Function Documentation

◆ __chvalidator()

int32_t __chvalidator ( uint8_t character,
int32_t fallback_mask,
uint8_t multibyte_mask )

Definition at line 309 of file locale.c.

◆ __initmbctable()

void __initmbctable ( )

Definition at line 608 of file locale.c.

◆ __resetmbcp()

void __resetmbcp ( )

Definition at line 529 of file locale.c.

◆ __setmbcp()

int32_t __setmbcp ( int32_t requested_code_page)

Definition at line 328 of file locale.c.

◆ __setmbcp_updatetables()

void __setmbcp_updatetables ( )

Definition at line 546 of file locale.c.

◆ CRT_GetStringTypeAWithSEHGuard()

int32_t CRT_GetStringTypeAWithSEHGuard ( DWORD info_type,
LPCSTR src,
int32_t src_count,
uint16_t * char_types,
UINT code_page,
LCID locale,
int32_t strict,
volatile struct CRT_SEHRegistration3 * guard )

Definition at line 28 of file locale.c.

◆ CRT_isctype()

int32_t CRT_isctype ( int32_t ch,
int32_t char_type_mask )

Definition at line 210 of file locale.c.

◆ CRT_ismbblead()

int32_t CRT_ismbblead ( uint32_t character)

Definition at line 302 of file locale.c.

◆ CRT_MapCodePageToLocaleId()

uint32_t CRT_MapCodePageToLocaleId ( uint32_t code_page)

Definition at line 510 of file locale.c.

◆ CRT_MapStringAWithSEHGuard()

int32_t CRT_MapStringAWithSEHGuard ( LCID locale,
DWORD map_flags,
LPCSTR src,
int32_t src_count,
LPSTR dest,
int32_t dest_count,
UINT code_page,
int32_t strict,
volatile struct CRT_SEHRegistration3 * guard )

Definition at line 103 of file locale.c.

◆ CRT_ResolveRequestedCodePage()

uint32_t CRT_ResolveRequestedCodePage ( int32_t requested_code_page)

Definition at line 477 of file locale.c.

◆ CRT_tolower()

int32_t CRT_tolower ( int32_t ch)

Definition at line 241 of file locale.c.

◆ String_ConvertCRTWideCharToMultiByte()

int32_t String_ConvertCRTWideCharToMultiByte ( char * buffer,
uint16_t wide_char )

Definition at line 619 of file locale.c.