some usefull utilities function. This library doesn't contain any VDI call.  
More...
some usefull utilities function. This library doesn't contain any VDI call. 
      
        
          | void vdi_array2str | ( | const short * | src, | 
        
          |  |  | char * | des, | 
        
          |  |  | short | len | 
        
          |  | ) |  |  | 
      
 
transform VDI-string (each character is 16-bit wide, the string is not null-terminated and len is in another parameter) to standard C-string.
- Parameters
- 
  
    | src | input str, each char is 16-bit wide. (src[0] is the 1st character, src[1] is the 2nd char, etc...) |  | des | output string, each char is 8-bit wide (standard NULL-terminated C-string) |  | len | is the len of the input string. |  
 
Referenced by udef_vqt_fontheader(), udef_vqt_name_and_id(), udef_vrq_string(), udef_vsm_string(), udef_vst_name(), vqp_filmname(), vqt_ext_name(), vqt_fontheader(), vqt_name_and_id(), vrq_string(), vsm_string(), and vst_name().
 
 
      
        
          | short vdi_str2array | ( | const char * | src, | 
        
          |  |  | short * | des | 
        
          |  | ) |  |  | 
      
 
- Parameters
- 
  
    | src | input string (standard null-terminated C-string) |  | des | output string (VDI format, each char occupied 16 bits) |  
 
- Returns
- the len of the string 
 
 
      
        
          | short vdi_str2array_n | ( | const char * | src, | 
        
          |  |  | short * | des, | 
        
          |  |  | int | nmax | 
        
          |  | ) |  |  | 
      
 
- Parameters
- 
  
    | src | input string (standard null-terminated C-string) |  | des | output string (VDI format, each char occupied 16 bits) |  | nmax | maximum of char to translate in the output string |  
 
- Returns
- the len of the string 
Referenced by udef_v_alpha_text(), udef_v_bit_image(), udef_v_curtext(), udef_v_ftext(), udef_v_ftext_offset(), udef_v_gtext(), udef_v_justified(), udef_v_loadcache(), udef_v_savecache(), udef_vm_filename(), udef_vqt_extent(), udef_vqt_f_extent(), udef_vqt_name_and_id(), udef_vqt_real_extent(), udef_vs_document_info(), udef_vst_name(), v_alpha_text(), v_bit_image(), v_curtext(), v_ftext(), v_ftext_offset(), v_gtext(), v_justified(), v_loadcache(), v_savecache(), vm_filename(), vqt_extent(), vqt_f_extent(), vqt_name_and_id(), vqt_real_extent(), vs_document_info(), and vst_name().
 
 
      
        
          | short vdi_wstrlen | ( | const short * | wstr | ) |  |