![]() |
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) |
str : |
null terminated UTF-8 string
|
Return value : |
a newly allocated string or NULL if error.
|
g_free((void *)str); |
str : |
previously allocated UTF-16 string to be freed.
|
Return value : |
TIEXPORT4 char* ticonv_utf16_to_utf8(const unsigned short *str) |
str : |
null terminated UTF-16 string
|
Return value : |
a newly allocated string or NULL if error.
|
g_free((void *)str); |
str : |
previously allocated UTF-8 string to be freed.
|
Return value : |
TIEXPORT4 char* TICALL ticonv_charset_utf16_to_ti_s(CalcModel model, const unsigned short *utf16, char *ti) |
model : |
a calculator model taken in #CalcModel.
|
utf16 : |
null terminated string (input)
|
ti : |
null terminated string (output)
|
Return value : |
the %ti string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_charset_utf16_to_ti(CalcModel model, const unsigned short *utf16) |
model : |
a calculator model taken in #CalcModel.
|
utf16 : |
null terminated string (input)
|
Return value : |
a newly allocated string or NULL if error.
|
g_free((void *)str); |
str : |
previously allocated TI string to be freed.
|
Return value : |
TIEXPORT4 unsigned short* TICALL ticonv_charset_ti_to_utf16_s(CalcModel model, const char *ti, unsigned short *utf16) |
model : |
a calculator model taken in #CalcModel.
|
ti : |
null terminated string (input)
|
utf16 : |
null terminated string (output)
|
Return value : |
the %utf16 string or NULL if error.
|
TIEXPORT4 unsigned short* TICALL ticonv_charset_ti_to_utf16(CalcModel model, const char *ti) |
model : |
a calculator model taken in #CalcModel.
|
ti : |
null terminated string (input)
|
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 taken in #CalcModel.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
dst : |
the location where to store the result (big enough).
|
type : |
the variable type.
|
Return value : |
the %dst 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 taken in #CalcModel.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
type : |
the variable type.
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_varname_to_utf8_sn(CalcModel model, const char *src, char *dst, uint32_t maxlen, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
dst : |
the location where to store the result.
|
maxlen : |
maximum length for the result, minimum 1.
|
type : |
the variable type.
|
Return value : |
the %dst 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 taken in #CalcModel.
|
src : |
a name of variable to detokenize and translate (17 chars max).
|
dst : |
the location where to store the result (large enough).
|
type : |
the variable type.
|
Return value : |
the %dst string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_varname_to_utf8(CalcModel model, const char *src, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
a name of variable to detokenize and translate.
|
type : |
the variable type.
|
Return value : |
a newly allocated string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_varname_to_filename_sn(CalcModel model, const char *src, char *dst, uint32_t maxlen, unsigned char type) |
model : |
a calculator model taken in #CalcModel.
|
src : |
the name of variable to convert (raw/binary name).
|
dst : |
a buffer to store result in the GLib filename encoding (64 bytes max).
|
maxlen : |
maximum length for the result, minimum 1.
|
type : |
the variable type.
|
Return value : |
%dst or NULL if error.
|
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 store result in the GLib filename encoding (64 bytes max).
|
type : |
the variable type.
|
Return value : |
%dst or NULL if error.
|
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).
|
type : |
the variable type.
|
Return value : |
%dst as a newly allocated string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_varname_to_tifile_sn(CalcModel model, const char *src, char *dst, uint32_t maxlen, 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 store the result.
|
maxlen : |
maximum length for the result, minimum 1.
|
type : |
the variable type.
|
Return value : |
%dst or NULL if error.
|
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 store the result (large enough).
|
type : |
the variable type.
|
Return value : |
%dst or NULL if error.
|
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).
|
type : |
the variable type.
|
Return value : |
%dst as a newly allocated string or NULL if error.
|
TIEXPORT4 char* TICALL ticonv_varname_from_tifile_sn(CalcModel model, const char *src, char *dst, uint32_t maxlen, 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 store the result.
|
maxlen : |
maximum length for the result, minimum 1.
|
type : |
the variable type.
|
Return value : |
%dst as a newly allocated string or NULL if error.
|
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 store the result (large enough).
|
type : |
the variable type.
|
Return value : |
%dst as a newly allocated string or NULL if error.
|
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).
|
type : |
the variable type.
|
Return value : |
%dst as a newly allocated string or NULL if error.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator uses UTF-8, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator is a TI-Z80 calculator, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator is a TI-eZ80 calculator, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator is a TI-68k calculator, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator is a TI-Nspire calculator, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator has a legacy I/O port, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator has an USB I/O port, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator has Flash memory, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator has a physical screen, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator has a monochrome screen, zero if it doesn't.
|
{ |
model : |
a calculator model taken in #CalcModel.
|
Return value : |
nonzero if the calculator has a color screen, zero if it doesn't.
|