Soldered SD Card Arduino Library 1.0.0
Easily read and write files to and form the SD card breakout! A fork of the original SDFat library by Bill Greiman.
Loading...
Searching...
No Matches
upcase.cpp File Reference

Classes

struct  map16
 
struct  pair16
 

Typedefs

typedef struct map16 map16_t
 
typedef struct pair16 pair16_t
 

Functions

static size_t searchPair16 (const pair16_t *table, size_t size, uint16_t key)
 
static char toUpper (char c)
 
bool exFatCmpName (const DirName_t *unicode, const ExChar16_t *name, size_t offset, size_t n)
 
bool exFatCmpName (const DirName_t *unicode, const char *name, size_t offset, size_t n)
 
uint16_t exFatHashName (const ExChar16_t *name, size_t n, uint16_t hash)
 
uint16_t exFatHashName (const char *name, size_t n, uint16_t hash)
 
uint16_t toUpcase (uint16_t chr)
 
uint32_t upcaseChecksum (uint16_t uc, uint32_t sum)
 

Variables

static const map16_t mapTable[] TABLE_MEM
 
const size_t MAP_DIM = sizeof(mapTable) / sizeof(map16_t)
 
const size_t LOOKUP_DIM = sizeof(lookupTable) / sizeof(pair16_t)
 

Typedef Documentation

◆ map16_t

typedef struct map16 map16_t

◆ pair16_t

typedef struct pair16 pair16_t

Function Documentation

◆ exFatCmpName() [1/2]

bool exFatCmpName ( const DirName_t unicode,
const char *  name,
size_t  offset,
size_t  n 
)

◆ exFatCmpName() [2/2]

bool exFatCmpName ( const DirName_t unicode,
const ExChar16_t name,
size_t  offset,
size_t  n 
)

◆ exFatHashName() [1/2]

uint16_t exFatHashName ( const char *  name,
size_t  n,
uint16_t  hash 
)

◆ exFatHashName() [2/2]

uint16_t exFatHashName ( const ExChar16_t name,
size_t  n,
uint16_t  hash 
)

◆ searchPair16()

static size_t searchPair16 ( const pair16_t table,
size_t  size,
uint16_t  key 
)
static

◆ toUpcase()

uint16_t toUpcase ( uint16_t  chr)

◆ toUpper()

static char toUpper ( char  c)
static

◆ upcaseChecksum()

uint32_t upcaseChecksum ( uint16_t  uc,
uint32_t  sum 
)

Variable Documentation

◆ LOOKUP_DIM

const size_t LOOKUP_DIM = sizeof(lookupTable) / sizeof(pair16_t)

◆ MAP_DIM

const size_t MAP_DIM = sizeof(mapTable) / sizeof(map16_t)

◆ TABLE_MEM

const pair16_t lookupTable [] TABLE_MEM
static
Initial value:
= {
{0X0061, -32, 26}, {0X00E0, -32, 23}, {0X00F8, -32, 7}, {0X0100, 1, 48}, {0X0132, 1, 6}, {0X0139, 1, 16},
{0X014A, 1, 46}, {0X0179, 1, 6}, {0X0182, 1, 4}, {0X01A0, 1, 6}, {0X01B3, 1, 4}, {0X01CD, 1, 16},
{0X01DE, 1, 18}, {0X01F8, 1, 40}, {0X0222, 1, 18}, {0X0246, 1, 10}, {0X03AD, -37, 3}, {0X03B1, -32, 17},
{0X03C3, -32, 9}, {0X03D8, 1, 24}, {0X0430, -32, 32}, {0X0450, -80, 16}, {0X0460, 1, 34}, {0X048A, 1, 54},
{0X04C1, 1, 14}, {0X04D0, 1, 68}, {0X0561, -48, 38}, {0X1E00, 1, 150}, {0X1EA0, 1, 90}, {0X1F00, 8, 8},
{0X1F10, 8, 6}, {0X1F20, 8, 8}, {0X1F30, 8, 8}, {0X1F40, 8, 6}, {0X1F60, 8, 8}, {0X1F70, 74, 2},
{0X1F72, 86, 4}, {0X1F76, 100, 2}, {0X1F7A, 112, 2}, {0X1F7C, 126, 2}, {0X1F80, 8, 8}, {0X1F90, 8, 8},
{0X1FA0, 8, 8}, {0X1FB0, 8, 2}, {0X1FD0, 8, 2}, {0X1FE0, 8, 2}, {0X2170, -16, 16}, {0X24D0, -26, 26},
{0X2C30, -48, 47}, {0X2C67, 1, 6}, {0X2C80, 1, 100}, {0X2D00, 0, 38}, {0XFF41, -32, 26},
}