Language codes helper tools.  
More...
Language codes helper tools. 
This section documents the language codes used in GPAC, based in ISO 639 or RFC 5646. 
◆ gf_lang_get_count()
      
        
          | u32 gf_lang_get_count  | 
          ( | 
           | ) | 
           | 
        
      
 
Gets number of supported language codes 
- Returns
 - the number of supported language codes 
 
 
 
◆ gf_lang_find()
      
        
          | s32 gf_lang_find  | 
          ( | 
          const char *  | 
          lang_or_rfc_5646_code | ) | 
           | 
        
      
 
Finds language by name or code 
- Parameters
 - 
  
    | lang_or_rfc_5646_code | the langauage name, ISO 639 code or RFC 5646 code  | 
  
   
- Returns
 - the index of the language, or -1 if not supported 
 
 
 
◆ gf_lang_get_name()
      
        
          | const char * gf_lang_get_name  | 
          ( | 
          u32  | 
          lang_idx | ) | 
           | 
        
      
 
Gets the langauge name for the given index 
- Parameters
 - 
  
    | lang_idx | the langauge 0-based IDX  | 
  
   
- Returns
 - the name of the language 
 
 
 
◆ gf_lang_get_2cc()
      
        
          | const char * gf_lang_get_2cc  | 
          ( | 
          u32  | 
          lang_idx | ) | 
           | 
        
      
 
Gets the 2 character code for the given index 
- Parameters
 - 
  
    | lang_idx | the langauge 0-based IDX  | 
  
   
- Returns
 - the 2 character code of the language 
 
 
 
◆ gf_lang_get_3cc()
      
        
          | const char * gf_lang_get_3cc  | 
          ( | 
          u32  | 
          lang_idx | ) | 
           | 
        
      
 
Gets the 3 character code for the given index 
- Parameters
 - 
  
    | lang_idx | the langauge 0-based IDX  | 
  
   
- Returns
 - the 3 character code of the language