Lines Matching refs:dos
155 int dos_to_wchar(doscp_t *cp, const char *dos, wchar_t *wchar, size_t len) in dos_to_wchar() argument
161 char *dos2 = (char *) dos; /* Magic to be able to call iconv with its in dos_to_wchar()
219 wchar_t *wchar, char *dos, size_t len, int *mangled) in wchar_to_dos() argument
221 safe_iconv(cp->to, wchar, dos, len, len, mangled); in wchar_to_dos()
272 int dos_to_wchar(doscp_t *cp, const char *dos, wchar_t *wchar, size_t len) in dos_to_wchar() argument
276 for(i=0; i<len && dos[i]; i++) { in dos_to_wchar()
277 char c = dos[i]; in dos_to_wchar()
290 wchar_t *wchar, char *dos, size_t len, int *mangled) in wchar_to_dos() argument
296 dos[i] = c; in wchar_to_dos()
298 dos[i] = cp->to_dos[c & 0x7f]; in wchar_to_dos()
299 if(dos[i] == '\0') { in wchar_to_dos()
300 dos[i]='_'; in wchar_to_dos()