spBase
Loading...
Searching...
No Matches
Kanji Handling

Functions

int spSetKanjiOptions (int n, const char **options)
 
void spKanjiUsage (const char *name)
 
void spDecodeMime (int flag)
 
void spSetDefaultKanjiCode (spKanjiCode code)
 
void spSetKanjiCode (spKanjiCode icode, spKanjiCode ocode)
 
spKanjiCode spGetKanjiCode (void)
 
const char * spGetKanjiCodeLabel (spKanjiCode code)
 
const char * spGetKanjiCodeEncoding (spKanjiCode code)
 
spKanjiCode spGetLocaleKanjiCode (const char *lang)
 
spKanjiCode spConvertKanji (const unsigned char *lin, unsigned char *lout, int size)
 
spKanjiCode spConvertKanjiCode (const unsigned char *lin, unsigned char *lout, int size, spKanjiCode icode, spKanjiCode ocode)
 
spKanjiCode spConvertKanjiFromLocaleCode (unsigned char *iobuf, int size, spKanjiCode ocode)
 
spKanjiCode spConvertKanjiToLocaleCode (unsigned char *iobuf, int size, spKanjiCode icode)
 

Detailed Description

Function Documentation

◆ spSetKanjiOptions()

int spSetKanjiOptions ( int n,
const char ** options )
extern

Sets options for nkf engine.

Examples
spcat.c.

◆ spKanjiUsage()

void spKanjiUsage ( const char * name)
extern

Displays the usage of nkf engine.

◆ spDecodeMime()

void spDecodeMime ( int flag)
extern

Sets the flag to determine if MIME is decoded.

◆ spSetDefaultKanjiCode()

void spSetDefaultKanjiCode ( spKanjiCode code)
extern

Sets the default Kanji code.

◆ spSetKanjiCode()

void spSetKanjiCode ( spKanjiCode icode,
spKanjiCode ocode )
extern

Sets the Kanji codes of input and output.

Examples
spcat.c.

◆ spGetKanjiCode()

spKanjiCode spGetKanjiCode ( void )
extern

Gets the current Kanji code.

◆ spGetKanjiCodeLabel()

const char * spGetKanjiCodeLabel ( spKanjiCode code)
extern

Gets the label of a Kanji code.

Examples
spcat.c.

◆ spGetKanjiCodeEncoding()

const char * spGetKanjiCodeEncoding ( spKanjiCode code)
extern

Gets the encoding string associated with a Kanji code such as "US", "SJIS" and "UTF-8".

◆ spGetLocaleKanjiCode()

spKanjiCode spGetLocaleKanjiCode ( const char * lang)
extern

Gets the Kanji code for a locale.

Examples
spcat.c.

◆ spConvertKanji()

spKanjiCode spConvertKanji ( const unsigned char * lin,
unsigned char * lout,
int size )
extern

Converts the Kanji code of the input string.

Examples
spcat.c.

◆ spConvertKanjiCode()

spKanjiCode spConvertKanjiCode ( const unsigned char * lin,
unsigned char * lout,
int size,
spKanjiCode icode,
spKanjiCode ocode )
extern

Converts the Kanji code of the input string.

◆ spConvertKanjiFromLocaleCode()

spKanjiCode spConvertKanjiFromLocaleCode ( unsigned char * iobuf,
int size,
spKanjiCode ocode )
extern

Converts the Kanji code of the input string associated with the current locale.

◆ spConvertKanjiToLocaleCode()

spKanjiCode spConvertKanjiToLocaleCode ( unsigned char * iobuf,
int size,
spKanjiCode icode )
extern

Converts the Kanji code of the input string into the Kanji code associated with the current locale.