vdr 2.7.6
si.c File Reference
#include "si.h"
#include <errno.h>
#include <iconv.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include "descriptor.h"

Go to the source code of this file.

Namespaces

namespace  SI
 

Macros

#define SingleByteLimit   0x0B
 
#define NumEntries(Table)
 
#define MT(s, m, v)
 

Functions

bool SI::systemCharacterTableIsSingleByte (void)
 
bool SI::SetOverrideCharacterTable (const char *CharacterTable)
 
bool SI::SetSystemCharacterTable (const char *CharacterTable)
 
const char * SI::getCharacterTable (const unsigned char *&buffer, int &length, bool *isSingleByte)
 
static int SI::Utf8CharLen (const char *s)
 
size_t SI::convertCharacterTable (const char *from, size_t fromLength, char *to, size_t toLength, const char *fromCode)
 

Variables

static const char * SI::CharacterTables1 []
 
static const char * SI::CharacterTables2 []
 
static char * SI::SystemCharacterTable = NULL
 
bool SI::SystemCharacterTableIsSingleByte = true
 
static char * SI::OverrideCharacterTable = NULL
 

Macro Definition Documentation

◆ MT

#define MT ( s,
m,
v )
Value:
((*(s) & (m)) == (v))

Referenced by SI::Utf8CharLen().

◆ NumEntries

#define NumEntries ( Table)
Value:
(sizeof(Table) / sizeof(char *))

Definition at line 312 of file si.c.

Referenced by SI::getCharacterTable().

◆ SingleByteLimit

#define SingleByteLimit   0x0B

Definition at line 291 of file si.c.

Referenced by SI::getCharacterTable().