libgpac
Documentation of the core library of GPAC. For more information, check out http://gpac.wp.mines-telecom.fr
iso639.h File Reference
#include <gpac/setup.h>
+ Include dependency graph for iso639.h:

Functions

u32 gf_lang_get_count ()
 
s32 gf_lang_find (const char *lang_or_rfc_5646_code)
 
const char * gf_lang_get_name (u32 lang_idx)
 
const char * gf_lang_get_2cc (u32 lang_idx)
 
const char * gf_lang_get_3cc (u32 lang_idx)
 

Function Documentation

u32 gf_lang_get_count ( )

Gets number of supported language codes

Returns
the number of supported language codes
s32 gf_lang_find ( const char *  lang_or_rfc_5646_code)

Finds language by name or code

Parameters
lang_or_rfc_5646_codethe langauage name, ISO 639 code or RFC 5646 code
Returns
the index of the language, or -1 if not supported
const char* gf_lang_get_name ( u32  lang_idx)

Gets the langauge name for the given index

Parameters
lang_idxthe langauge 0-based IDX
Returns
the name of the language
const char* gf_lang_get_2cc ( u32  lang_idx)

Gets the 2 character code for the given index

Parameters
lang_idxthe langauge 0-based IDX
Returns
the 2 character code of the language
const char* gf_lang_get_3cc ( u32  lang_idx)

Gets the 3 character code for the given index

Parameters
lang_idxthe langauge 0-based IDX
Returns
the 3 character code of the language