| Types and strings conversions

### tifiles_vartype2string

TIEXPORT2 const char *TICALL tifiles_vartype2string(CalcModel model, uint8_t data)

Returns the type of variable (REAL, EQU, PRGM, ...).

model : | a calculator model.
data : | a type ID.
Return value : | a string like "REAL".

### tifiles_string2vartype

TIEXPORT2 uint8_t TICALL tifiles_string2vartype(CalcModel model, const char *s)

Returns the type of variable.

model : | a calculator model.
s : | a type as string (like "REAL").
Return value : | a type ID.

### tifiles_vartype2fext

TIEXPORT2 const char *TICALL tifiles_vartype2fext(CalcModel model, uint8_t data)

Returns the file extension tipcially used to store this kind of variable(REAL, EQU, PRGM, ...).

model : | a calculator model.
data : | a type ID.
Return value : | a string like "REAL".

### tifiles_fext2vartype

TIEXPORT2 uint8_t TICALL tifiles_fext2vartype(CalcModel model, const char *s)

Returns the type ID of variable (REAL, EQU, PRGM, ...).

model : | a calculator model.
s : | a file extension as string (like 89p).
Return value : | a string like "PRGM".

### tifiles_vartype2type

TIEXPORT2 const char *TICALL tifiles_vartype2type(CalcModel model, uint8_t vartype)

Returns the type ID of variable as string ("Real", "Program", ...). The function is localized.

model : | a calculator model.
id : | a vartype ID.
Return value : | a string like "Assembly Program".

### tifiles_vartype2icon

TIEXPORT2 const char *TICALL tifiles_vartype2icon(CalcModel model, uint8_t vartype)

Returns the type ID of variable as string ("Real", "Program", ...). Same as #tifiles_vartype2type but un-localized.

model : | a calculator model.
id : | a vartype ID.
Return value : | a string like "Assembly Program".

### tifiles_folder_type

TIEXPORT2 uint8_t TICALL tifiles_folder_type(CalcModel model)

Returns the variable type ID used for encoding folders.

model : | a calculator model in #CalcModel enumeration.
Return value : | a type ID.

### tifiles_flash_type

TIEXPORT2 uint8_t TICALL tifiles_flash_type(CalcModel model)

Returns the variable type ID used for encoding FLASH apps.

model : | a calculator model in #CalcModel enumeration.
Return value : | a type ID.

### tifiles_idlist_type

TIEXPORT2 uint8_t TICALL tifiles_idlist_type(CalcModel model)

Returns the variable type ID used for encoding IDLIST variable.

model : | a calculator model in #CalcModel enumeration.
Return value : | a type ID.

### tifiles_calctype2signature

TIEXPORT2 const char *TICALL tifiles_calctype2signature(CalcModel model)

Returns the signature used at the top of a TI file depending on the calculator model.

model : | a calculator model.
Return value : | a string like "**TI89**".

### tifiles_signature2calctype

TIEXPORT2 CalcModel TICALL tifiles_signature2calctype(const char *s)

Returns the calculator model contained in the signature.

s : | a TI file signature like "**TI89**".
Return value : | a calculator model.

### Return to the main index