DomainPlug-insDocumentation
Defines | Functions
translit.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "translitmap.h"
#include "translit.h"

Defines

#define HIGHBIT   (0x80)
#define IS_HIGHBIT_SET(ch)   ((unsigned char)(ch) & HIGHBIT)
#define Min(x, y)   ((x) < (y) ? (x) : (y))

Functions

int utf8_verifier (const unsigned char *s, int len)
bool utf8_islegal (const unsigned char *source, int length)
int utf_mblen (const unsigned char *s)
void report_invalid_encoding (const unsigned char *mbstr, int len)
int fix_broken_string (const unsigned char *from, unsigned char *to, int len)
bool verify_mbstr_len (const unsigned char *mbstr, int len)
char * translit_mbchar_2 (const unsigned char *mbstr)
int translit_string (const unsigned char *mbstr, char *to, int len, int allocspace)
char * get_string_translit (const unsigned char *mbstr)

Define Documentation

#define HIGHBIT   (0x80)
#define IS_HIGHBIT_SET (   ch)    ((unsigned char)(ch) & HIGHBIT)
#define Min (   x,
 
)    ((x) < (y) ? (x) : (y))

Function Documentation

int fix_broken_string ( const unsigned char *  from,
unsigned char *  to,
int  len 
)
char* get_string_translit ( const unsigned char *  mbstr)
void report_invalid_encoding ( const unsigned char *  mbstr,
int  len 
)
char* translit_mbchar_2 ( const unsigned char *  mbstr)
int translit_string ( const unsigned char *  mbstr,
char *  to,
int  len,
int  allocspace 
)
bool utf8_islegal ( const unsigned char *  source,
int  length 
)
int utf8_verifier ( const unsigned char *  s,
int  len 
)
int utf_mblen ( const unsigned char *  s)
bool verify_mbstr_len ( const unsigned char *  mbstr,
int  len 
)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines