General functions and Generic TI charset <=> UTF-16 conversions
|
TIEXPORT4 const char *TICALL ticonv_version_get(void) |
Return value : |
a constant string.
|
TIEXPORT4 size_t TICALL ticonv_utf16_strlen(const unsigned short *str) |
str : |
null terminated UTF-16 string
|
Return value : |
number of characters. Surrogate pairs are counted as 2
characters each.
|
TIEXPORT4 unsigned short* ticonv_utf8_to_utf16(const char *str) |
src : |
null terminated UTF-8 string
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 char* ticonv_utf16_to_utf8(const unsigned short *str) |
src : |
null terminated UTF-16 string
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_charset_utf16_to_ti_s(CalcModel model, const unsigned short *utf16, char *ti) |
model : |
calculator model
|
utf16 : |
null terminated string (input)
|
ti : |
null terminated string (output)
|
Return value : |
the %ti string.
|
TIEXPORT4 char* TICALL ticonv_charset_utf16_to_ti(CalcModel model, const unsigned short *utf16) |
model : |
calculator model
|
utf16 : |
null terminated string (input)
|
ti : |
null terminated string (output)
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 unsigned short* TICALL ticonv_charset_ti_to_utf16_s(CalcModel model, const char *ti, unsigned short *utf16) |
ti : |
null terminated string (input)
|
utf16 : |
null terminated string (output)
|
Return value : |
the %utf16 string.
|
TIEXPORT4 unsigned short* TICALL ticonv_charset_ti_to_utf16(CalcModel model, const char *ti) |
ti : |
null terminated string (input)
|
utf16 : |
null terminated string (output)
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 unsigned short* TICALL ticonv_varname_to_utf16(CalcModel model, const char *src, unsigned char type) |
model : |
a calculator model.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
vartype : |
the type of variable.
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 unsigned short* TICALL ticonv_varname_to_utf16_s(CalcModel model, const char *src, unsigned short *dst, unsigned char type) |
model : |
a calculator model.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
dst : |
a buffer where to placed the result (big enough).
|
vartype : |
the type of variable.
|
Return value : |
the %dst string.
|
TIEXPORT4 char* TICALL ticonv_varname_to_utf8(CalcModel model, const char *src, unsigned char type) |
model : |
a calculator model.
|
src : |
a name of variable to detokenize and translate.
|
vartype : |
the type of variable.
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_varname_to_utf8_s(CalcModel model, const char *src, char *dst, unsigned char type) |
model : |
a calculator model.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
dst : |
a buffer where to placed the result (big enough).
|
vartype : |
the type of variable.
|
Return value : |
the %dst string.
|
TIEXPORT4 char* TICALL ticonv_varname_to_filename(CalcModel model, const char *src, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
Return value : |
%dst as a newly allocated string.
|
TIEXPORT4 char* TICALL ticonv_varname_to_filename_s(CalcModel model, const char *src, char *dst, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
dst : |
a buffer to place result in the GLib filename encoding (64 bytes max).
|
Return value : |
%dst.
|
TIEXPORT4 char* TICALL ticonv_varname_to_tifile(CalcModel model, const char *src, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
Return value : |
%dst as a newly allocated string.
|
TIEXPORT4 char* TICALL ticonv_varname_to_tifile_s(CalcModel model, const char *src, char *dst, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
dst : |
the location where to place the result (big enough).
|
Return value : |
%dst as a newly allocated string.
|
TIEXPORT4 char* TICALL ticonv_varname_from_tifile(CalcModel model, const char *src, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
Return value : |
%dst as a newly allocated string.
|
TIEXPORT4 char* TICALL ticonv_varname_from_tifile_s(CalcModel model, const char *src, char *dst, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
dst : |
the location where to place the result (big enough).
|
Return value : |
%dst as a newly allocated string.
|