Lines Matching refs:utf16_buffer
99 WCHAR* utf16_buffer; in uv_exepath() local
113 utf16_buffer = (WCHAR*) uv__malloc(sizeof(WCHAR) * utf16_buffer_len); in uv_exepath()
114 if (!utf16_buffer) { in uv_exepath()
119 utf16_len = GetModuleFileNameW(NULL, utf16_buffer, utf16_buffer_len); in uv_exepath()
127 err = uv_utf16_to_wtf8(utf16_buffer, utf16_len, &buffer, &utf8_len); in uv_exepath()
134 uv__free(utf16_buffer); in uv_exepath()
139 uv__free(utf16_buffer); in uv_exepath()
191 WCHAR *utf16_buffer; in uv_cwd() local
198 r = uv__cwd(&utf16_buffer, &utf16_len); in uv_cwd()
202 r = uv__copy_utf16_to_utf8(utf16_buffer, utf16_len, buffer, size); in uv_cwd()
204 uv__free(utf16_buffer); in uv_cwd()
211 WCHAR *utf16_buffer; in uv_chdir() local
217 r = uv__convert_utf8_to_utf16(dir, &utf16_buffer); in uv_chdir()
221 if (!SetCurrentDirectoryW(utf16_buffer)) { in uv_chdir()
222 uv__free(utf16_buffer); in uv_chdir()
227 uv__free(utf16_buffer); in uv_chdir()
228 utf16_buffer = NULL; in uv_chdir()
233 r = uv__cwd(&utf16_buffer, &utf16_len); in uv_chdir()
244 if (utf16_len < 2 || utf16_buffer[1] != L':') { in uv_chdir()
248 } else if (utf16_buffer[0] >= L'A' && utf16_buffer[0] <= L'Z') { in uv_chdir()
249 drive_letter = utf16_buffer[0]; in uv_chdir()
250 } else if (utf16_buffer[0] >= L'a' && utf16_buffer[0] <= L'z') { in uv_chdir()
252 drive_letter = utf16_buffer[0] - L'a' + L'A'; in uv_chdir()
265 SetEnvironmentVariableW(env_var, utf16_buffer); in uv_chdir()
268 uv__free(utf16_buffer); in uv_chdir()