safec 3.9
Safe C Library - ISO TR24731 Bounds Checking Interface
Loading...
Searching...
No Matches
towctrans.c File Reference
#include <assert.h>
#include <stdint.h>
#include <wctype.h>
#include <locale.h>
#include <string.h>
#include "safe_str_lib.h"
Include dependency graph for towctrans.c:

Data Structures

struct  casemaps_s
struct  casemapsl_s

Macros

#define HAVE_LOCALE_TR
#define CASEMAP(u1, u2, l)
#define CASELACE(u1, u2)
#define TOWCTRANS_UNICODE_VERSION   17

Functions

uint32_t _towcase (uint32_t wc, int lower)
EXPORT uint32_t _towupper (uint32_t wc)
EXPORT uint32_t towupper (uint32_t wc)
EXPORT uint32_t towlower (uint32_t wc)

Variables

static const struct casemaps_s casemaps [69]
static const struct casemapsl_s casemapsl [21]
static const unsigned short pairs [126][2]

Macro Definition Documentation

◆ HAVE_LOCALE_TR

#define HAVE_LOCALE_TR

◆ CASEMAP

#define CASEMAP ( u1,
u2,
l )
Value:
{(u1), (l) - (u1), (u2) - (u1) + 1}

◆ CASELACE

#define CASELACE ( u1,
u2 )
Value:
CASEMAP((u1), (u2), (u1) + 1)

◆ TOWCTRANS_UNICODE_VERSION

#define TOWCTRANS_UNICODE_VERSION   17

Function Documentation

◆ _towcase()

uint32_t _towcase ( uint32_t wc,
int lower )

◆ _towupper()

EXPORT uint32_t _towupper ( uint32_t wc)

◆ towupper()

EXPORT uint32_t towupper ( uint32_t wc)

◆ towlower()

EXPORT uint32_t towlower ( uint32_t wc)

Variable Documentation

◆ casemaps

const struct casemaps_s casemaps[69]
static

◆ casemapsl

const struct casemapsl_s casemapsl[21]
static
Initial value:
= {
CASEMAP(0x00189, 0x0018a, 0x00256),
CASEMAP(0x001b1, 0x001b2, 0x0028a),
CASEMAP(0x003fd, 0x003ff, 0x0037b),
CASEMAP(0x010a0, 0x010c5, 0x02d00),
CASEMAP(0x013a0, 0x013ef, 0x0ab70),
CASEMAP(0x01c90, 0x01cba, 0x010d0),
CASEMAP(0x01cbd, 0x01cbf, 0x010fd),
CASEMAP(0x01ff8, 0x01ff9, 0x01f78),
CASEMAP(0x02c7e, 0x02c7f, 0x0023f),
CASEMAP(0x10400, 0x10427, 0x10428),
CASEMAP(0x104b0, 0x104d3, 0x104d8),
CASEMAP(0x10570, 0x1057a, 0x10597),
CASEMAP(0x1057c, 0x1058a, 0x105a3),
CASEMAP(0x1058c, 0x10592, 0x105b3),
CASEMAP(0x10594, 0x10595, 0x105bb),
CASEMAP(0x10c80, 0x10cb2, 0x10cc0),
CASEMAP(0x10d50, 0x10d65, 0x10d70),
CASEMAP(0x118a0, 0x118bf, 0x118c0),
CASEMAP(0x16e40, 0x16e5f, 0x16e60),
CASEMAP(0x16ea0, 0x16eb8, 0x16ebb),
CASEMAP(0x1e900, 0x1e921, 0x1e922),
}

◆ pairs

const unsigned short pairs[126][2]
static