spBase
Loading...
Searching...
No Matches
String-Related Functions

Typedefs

typedef struct _spConverter * spConverter
 

Functions

spBool spEqLanguage (const char *lang1, const char *lang2)
 
spBool spGetLanguageId (const char *lang, char *id, int id_size)
 
spBool spIsUTFLang (const char *lang)
 
spBool spIsJapaneseLang (const char *lang)
 
char * spStrChr (const char *str, int c)
 
char * spStrRChr (const char *str, int c)
 
const char * spGetSupportedEncoding (const char *code)
 
spConverter spOpenConverter (const char *icode, const char *ocode)
 
char * xspConvert (spConverter conv, const char *input)
 
void spCloseConverter (spConverter conv)
 

Detailed Description

Typedef Documentation

◆ spConverter

typedef struct _spConverter* spConverter

Definition of spConverter .

Function Documentation

◆ spEqLanguage()

spBool spEqLanguage ( const char * lang1,
const char * lang2 )
extern

Checks whether two languages (locales) are the same. The language corresponds to a null-terminated string such as "ja_JP.utf8".

◆ spGetLanguageId()

spBool spGetLanguageId ( const char * lang,
char * id,
int id_size )
extern

Gets the language ID from the language (locale). For example, the language ID is "ja" for the language of "ja_JP.utf8".

◆ spIsUTFLang()

spBool spIsUTFLang ( const char * lang)
extern

Checks whether the language (locale) is based on UTF.

◆ spIsJapaneseLang()

spBool spIsJapaneseLang ( const char * lang)
extern

Checks whether the language (locale) is Japanese.

◆ spStrChr()

char * spStrChr ( const char * str,
int c )
extern

Searches the position of the character c in the null-terminated string str .

◆ spStrRChr()

char * spStrRChr ( const char * str,
int c )
extern

Searches the position of the character c in the null-terminated string str from the end of the string.

◆ spGetSupportedEncoding()

const char * spGetSupportedEncoding ( const char * code)
extern

Gets an internally valid encode name from the encode name.

◆ spOpenConverter()

spConverter spOpenConverter ( const char * icode,
const char * ocode )
extern

Opens a new converter for the specified input/output encode names.

◆ xspConvert()

char * xspConvert ( spConverter conv,
const char * input )
extern

Converts the encode of the input string into the another encode.

◆ spCloseConverter()

void spCloseConverter ( spConverter conv)
extern

Closes the converter.