safec  3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
towctrans.c File Reference
#include "safe_str_lib.h"
+ Include dependency graph for towctrans.c:

Macros

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

Functions

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

Variables

struct {
   unsigned short   upper
 
   signed char   lower
 
   unsigned char   len
 
casemaps []
 
struct {
   unsigned int   upper
 
   int   lower
 
   unsigned short   len
 
casemapsl []
 
static const unsigned short pairs [][2]
 

Macro Definition Documentation

◆ CASEMAP

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

◆ CASELACE

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

Function Documentation

◆ _towcase()

EXPORT wint_t _towcase ( wint_t  wc,
int  lower 
)

◆ _towupper()

EXPORT wint_t _towupper ( wint_t  wc)

◆ towupper()

EXPORT wint_t towupper ( wint_t  wc)

◆ towlower()

EXPORT wint_t towlower ( wint_t  wc)

Variable Documentation

◆ upper

unsigned int upper

◆ lower

int lower

◆ len

unsigned short len

◆ casemaps

const { ... } casemaps[]

◆ casemapsl

const { ... } casemapsl[]
Initial value:
= {
CASEMAP(0x13a0,0x13ef,0xab70),
CASEMAP(0xab70,0xabbf,0x13a0),
CASEMAP(0x10400,0x10427,0x10428),
CASEMAP(0x104b0,0x104d3,0x104d8),
CASEMAP(0x10c80,0x10cb2,0x10cc0),
CASEMAP(0x118a0,0x118bf,0x118c0),
CASEMAP(0x1e900,0x1e921,0x1e922),
{ 0,0,0 }
}

◆ pairs

const unsigned short pairs[][2]
static