safec  3.6.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 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

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 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

◆ upper

unsigned int upper

◆ lower

int lower

◆ len

unsigned short len

◆ casemaps

const { ... } casemaps[]

◆ casemapsl

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

◆ pairs

const unsigned short pairs[][2]
static