Lines Matching defs:utf16_len
97 int utf8_len, utf16_buffer_len, utf16_len;
118 utf16_len = GetModuleFileNameW(NULL, utf16_buffer, utf16_buffer_len);
119 if (utf16_len <= 0) {
124 /* utf16_len contains the length, *not* including the terminating null. */
125 utf16_buffer[utf16_len] = L'\0';
155 DWORD utf16_len;
163 utf16_len = GetCurrentDirectoryW(0, NULL);
164 if (utf16_len == 0) {
167 utf16_buffer = uv__malloc(utf16_len * sizeof(WCHAR));
172 utf16_len = GetCurrentDirectoryW(utf16_len, utf16_buffer);
173 if (utf16_len == 0) {
178 /* utf16_len contains the length, *not* including the terminating null. */
179 utf16_buffer[utf16_len] = L'\0';
183 if (utf16_buffer[utf16_len - 1] == L'\\' &&
184 !(utf16_len == 3 && utf16_buffer[1] == L':')) {
185 utf16_len--;
186 utf16_buffer[utf16_len] = L'\0';
229 size_t utf16_len, new_utf16_len;
236 utf16_len = MultiByteToWideChar(CP_UTF8,
242 if (utf16_len == 0) {
245 utf16_buffer = uv__malloc(utf16_len * sizeof(WCHAR));
255 utf16_len) == 0) {
268 new_utf16_len = GetCurrentDirectoryW(utf16_len, utf16_buffer);
269 if (new_utf16_len > utf16_len ) {
280 if (utf16_len == 0) {
287 if (utf16_buffer[utf16_len - 1] == L'\\' &&
288 !(utf16_len == 3 && utf16_buffer[1] == L':')) {
289 utf16_len--;
290 utf16_buffer[utf16_len] = L'\0';
293 if (utf16_len < 2 || utf16_buffer[1] != L':') {