Home
last modified time | relevance | path

Searched refs:path_utf16 (Results 1 – 25 of 40) sorted by relevance

12

/dports/games/devilutionX/devilutionX-1.2.1/SourceS/
H A Dfile_util.h47 wchar_t *path_utf16 = new wchar_t[path_utf16_size]; in GetFileSize() local
48 if (MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, path_utf16_size) != path_utf16_size) { in GetFileSize()
49 delete[] path_utf16; in GetFileSize()
52 if (!GetFileAttributesExW(path_utf16, GetFileExInfoStandard, &attr)) { in GetFileSize()
53 delete[] path_utf16; in GetFileSize()
56 delete[] path_utf16; in GetFileSize()
77 wchar_t *path_utf16 = new wchar_t[path_utf16_size]; in ResizeFile() local
78 if (MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, path_utf16_size) != path_utf16_size) { in ResizeFile()
79 delete[] path_utf16; in ResizeFile()
82 HANDLE file = ::CreateFileW(path_utf16, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); in ResizeFile()
[all …]
/dports/audio/opus-tools/opus-tools-0.2/win32/
H A Dunicode_support.c159 wchar_t *path_utf16 = utf8_to_utf16(path_utf8); in stat_utf8() local
160 if(path_utf16) in stat_utf8()
162 ret = _wstat(path_utf16, buf); in stat_utf8()
163 free(path_utf16); in stat_utf8()
173 wchar_t *path_utf16 = utf8_to_utf16(path_utf8); in unlink_utf8() local
174 if(path_utf16) in unlink_utf8()
176 ret = _wunlink(path_utf16); in unlink_utf8()
177 free(path_utf16); in unlink_utf8()
/dports/audio/wavpack/wavpack-5.4.0/cli/
H A Dwin32_unicode_support.c186 wchar_t *path_utf16 = utf8_to_utf16(path_utf8); in stat_utf8() local
187 if(path_utf16) in stat_utf8()
189 ret = _wstat(path_utf16, buf); in stat_utf8()
190 free(path_utf16); in stat_utf8()
218 wchar_t *path_utf16 = utf8_to_utf16(path_utf8); in unlink_utf8() local
219 if(path_utf16) in unlink_utf8()
221 ret = _wunlink(path_utf16); in unlink_utf8()
222 free(path_utf16); in unlink_utf8()
/dports/lang/mono/mono-5.10.1.57/mono/eglib/
H A Dgdir-win32.c48 gunichar2* path_utf16; in g_dir_open() local
56 path_utf16 = u8to16 (path); in g_dir_open()
57 path_utf16_search = g_malloc ((wcslen((wchar_t *) path_utf16) + 3)*sizeof(gunichar2)); in g_dir_open()
58 wcscpy (path_utf16_search, path_utf16); in g_dir_open()
68 g_free (path_utf16); in g_dir_open()
73 g_free (path_utf16); in g_dir_open()
/dports/devel/libgit2/libgit2-1.3.0/tests/path/
H A Dwin32.c12 git_win32_path path_utf16; in test_utf8_to_utf16() local
15 cl_assert((path_utf16len = git_win32_path_from_utf8(path_utf16, utf8_in)) >= 0); in test_utf8_to_utf16()
16 cl_assert_equal_wcs(utf16_expected, path_utf16); in test_utf8_to_utf16()
27 git_win32_path path_utf16; in test_utf8_to_utf16_relative() local
30 cl_assert((path_utf16len = git_win32_path_relative_from_utf8(path_utf16, utf8_in)) >= 0); in test_utf8_to_utf16_relative()
31 cl_assert_equal_wcs(utf16_expected, path_utf16); in test_utf8_to_utf16_relative()
79 git_win32_path path_utf16; in test_path_win32__honors_max_path() local
84 …cl_check_fail(git_win32_path_from_utf8(path_utf16, "C:\\This path is 4097 chars and exceeds our ma… in test_path_win32__honors_max_path()
/dports/multimedia/x264/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154/common/
H A Dosdep.h188 wchar_t *path_utf16 = x264_utf8_to_utf16_try_buf( path, path_buf, MAX_PATH ); in x264_stat() local
189 if( path_utf16 ) in x264_stat()
191 ret = _wstati64( path_utf16, buf ); in x264_stat()
192 if( path_utf16 != path_buf ) in x264_stat()
193 free( path_utf16 ); in x264_stat()
246 wchar_t *path_utf16 = x264_utf8_to_utf16_try_buf( path, path_buf, MAX_PATH ); in x264_is_regular_file_path() local
247 if( path_utf16 ) in x264_is_regular_file_path()
250 if( _wstati64( path_utf16, &buf ) ) in x264_is_regular_file_path()
251 ret = !WaitNamedPipeW( path_utf16, 0 ); in x264_is_regular_file_path()
254 if( path_utf16 != path_buf ) in x264_is_regular_file_path()
[all …]
/dports/multimedia/libx264/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154/common/
H A Dosdep.h188 wchar_t *path_utf16 = x264_utf8_to_utf16_try_buf( path, path_buf, MAX_PATH ); in x264_stat() local
189 if( path_utf16 ) in x264_stat()
191 ret = _wstati64( path_utf16, buf ); in x264_stat()
192 if( path_utf16 != path_buf ) in x264_stat()
193 free( path_utf16 ); in x264_stat()
246 wchar_t *path_utf16 = x264_utf8_to_utf16_try_buf( path, path_buf, MAX_PATH ); in x264_is_regular_file_path() local
247 if( path_utf16 ) in x264_is_regular_file_path()
250 if( _wstati64( path_utf16, &buf ) ) in x264_is_regular_file_path()
251 ret = !WaitNamedPipeW( path_utf16, 0 ); in x264_is_regular_file_path()
254 if( path_utf16 != path_buf ) in x264_is_regular_file_path()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/exported/
H A Dfile_path_conversion_test.cc28 base::FilePath path_utf16 = in TEST() local
42 EXPECT_EQ(path_utf16.value(), WebStringToFilePath(test16bit_utf16).value()); in TEST()
47 EXPECT_EQ(test16bit_utf16.Utf8(), FilePathToWebString(path_utf16).Utf8()); in TEST()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/exported/
H A Dfile_path_conversion_test.cc28 base::FilePath path_utf16 = in TEST() local
42 EXPECT_EQ(path_utf16.value(), WebStringToFilePath(test16bit_utf16).value()); in TEST()
47 EXPECT_EQ(test16bit_utf16.Utf8(), FilePathToWebString(path_utf16).Utf8()); in TEST()
/dports/multimedia/obs-studio/obs-studio-27.1.3/libobs/util/
H A Dplatform-windows.c382 wchar_t path_utf16[MAX_PATH]; in os_get_path_internal() local
404 wchar_t path_utf16[MAX_PATH]; in os_get_path_ptr_internal() local
409 os_wcs_to_utf8_ptr(path_utf16, 0, &ptr); in os_get_path_ptr_internal()
440 wchar_t path_utf16[MAX_PATH]; in os_get_executable_path_ptr() local
445 os_wcs_to_utf8_ptr(path_utf16, 0, &ptr); in os_get_executable_path_ptr()
465 wchar_t *path_utf16; in os_file_exists() local
470 hFind = FindFirstFileW(path_utf16, &wfd); in os_file_exists()
474 bfree(path_utf16); in os_file_exists()
698 wchar_t *path_utf16; in os_mkdir() local
704 success = CreateDirectory(path_utf16, NULL); in os_mkdir()
[all …]
/dports/emulators/vice/vice-3.5/src/lib/libx264/common/
H A Dosdep.c480 wchar_t path_utf16[MAX_PATH]; in x264_stat() local
481 if( utf8_to_utf16( path, path_utf16 ) ) in x264_stat()
482 return _wstati64( path_utf16, buf ); in x264_stat()
517 wchar_t path_utf16[MAX_PATH]; in x264_is_pipe() local
518 if( utf8_to_utf16( path, path_utf16 ) ) in x264_is_pipe()
519 return WaitNamedPipeW( path_utf16, 0 ); in x264_is_pipe()
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libx264/common/
H A Dosdep.c480 wchar_t path_utf16[MAX_PATH]; in x264_stat() local
481 if( utf8_to_utf16( path, path_utf16 ) ) in x264_stat()
482 return _wstati64( path_utf16, buf ); in x264_stat()
517 wchar_t path_utf16[MAX_PATH]; in x264_is_pipe() local
518 if( utf8_to_utf16( path, path_utf16 ) ) in x264_is_pipe()
519 return WaitNamedPipeW( path_utf16, 0 ); in x264_is_pipe()
/dports/devel/llbuild/swift-llbuild-swift-DEVELOPMENT-SNAPSHOT-2017-12-10-a/lib/llvm/Support/Windows/
H A DPath.inc190 SmallVector<wchar_t, 128> path_utf16;
221 SmallVector<wchar_t, 128> path_utf16;
241 if (!::DeleteFileW(c_str(path_utf16))) {
405 SmallVector<wchar_t, 128> path_utf16;
423 ::CreateFileW(path_utf16.begin(),
559 SmallVector<wchar_t, 128> path_utf16;
565 if (path_utf16.size() > 0 &&
567 path_utf16[path.size() - 1] != L':') {
568 path_utf16.push_back(L'\\');
569 path_utf16.push_back(L'*');
[all …]
/dports/devel/py-keystone-engine/keystone-engine-0.9.1-3/src/llvm/lib/Support/Windows/
H A DPath.inc178 SmallVector<wchar_t, 128> path_utf16;
209 SmallVector<wchar_t, 128> path_utf16;
229 if (!::DeleteFileW(c_str(path_utf16))) {
418 SmallVector<wchar_t, 128> path_utf16;
436 ::CreateFileW(path_utf16.begin(),
560 SmallVector<wchar_t, 128> path_utf16;
566 if (path_utf16.size() > 0 &&
568 path_utf16[path.size() - 1] != L':') {
569 path_utf16.push_back(L'\\');
570 path_utf16.push_back(L'*');
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/loader/
H A Dftp_directory_listing.cc40 base::string16 path_utf16; in ConvertPathToUTF16() local
43 &path_utf16)) { in ConvertPathToUTF16()
44 return path_utf16; in ConvertPathToUTF16()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/loader/
H A Dftp_directory_listing.cc41 base::string16 path_utf16; in ConvertPathToUTF16() local
44 &path_utf16)) { in ConvertPathToUTF16()
45 return path_utf16; in ConvertPathToUTF16()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
H A DPath.inc205 SmallVector<wchar_t, 128> path_utf16;
240 SmallVector<wchar_t, 128> path_utf16;
260 if (!::DeleteFileW(c_str(path_utf16))) {
470 SmallVector<wchar_t, 128> path_utf16;
488 ::CreateFileW(path_utf16.begin(),
620 SmallVector<wchar_t, 128> path_utf16;
626 if (path_utf16.size() > 0 &&
628 path_utf16[path.size() - 1] != L':') {
629 path_utf16.push_back(L'\\');
630 path_utf16.push_back(L'*');
[all …]
/dports/multimedia/handbrake/HandBrake-1.4.2/libhb/
H A Dports.c689 wchar_t path_utf16[MAX_PATH]; in hb_stat() local
690 if (!MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, MAX_PATH)) in hb_stat()
692 return _wstat64( path_utf16, sb ); in hb_stat()
708 wchar_t path_utf16[MAX_PATH]; in hb_fopen() local
710 if (!MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, MAX_PATH)) in hb_fopen()
714 errno_t ret = _wfopen_s(&f, path_utf16, mode_utf16); in hb_fopen()
727 wchar_t path_utf16[MAX_PATH]; in hb_opendir() local
729 if (!MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, MAX_PATH)) in hb_opendir()
734 dir->wdir = _wopendir(path_utf16); in hb_opendir()
809 wchar_t path_utf16[MAX_PATH]; in hb_mkdir() local
[all …]
/dports/multimedia/obs-studio/obs-studio-27.1.3/UI/
H A Dplatform-windows.cpp69 wchar_t path_utf16[MAX_PATH]; in GetDefaultVideoSavePath() local
73 path_utf16); in GetDefaultVideoSavePath()
75 os_wcs_to_utf8(path_utf16, wcslen(path_utf16), path_utf8, MAX_PATH); in GetDefaultVideoSavePath()
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/intern/
H A Dstorage.c312 WCHAR path_utf16[FILE_MAXDIR] = {0}; in BLI_file_alias_target() local
313 if (conv_utf_8_to_16(filepath, path_utf16, ARRAY_SIZE(path_utf16)) == 0) { in BLI_file_alias_target()
314 hr = PersistFile->lpVtbl->Load(PersistFile, path_utf16, STGM_READ); in BLI_file_alias_target()
/dports/devel/llvm70/llvm-7.0.1.src/lib/Support/Windows/
H A DPath.inc229 SmallVector<wchar_t, 128> path_utf16;
264 SmallVector<wchar_t, 128> path_utf16;
280 c_str(path_utf16), DELETE,
703 SmallVector<wchar_t, 128> path_utf16;
906 SmallVector<wchar_t, 128> path_utf16;
912 if (path_utf16.size() > 0 &&
913 !is_separator(path_utf16[path.size() - 1]) &&
914 path_utf16[path.size() - 1] != L':') {
915 path_utf16.push_back(L'\\');
916 path_utf16.push_back(L'*');
[all …]
/dports/net/uget/uget-2.2.1/uget/
H A DUgetAria2.c584 uint16_t* path_utf16; in uget_aria2_launch() local
594 path_utf16 = ug_utf8_to_utf16 (uaria2->path, -1, NULL); in uget_aria2_launch()
598 result = (int)ShellExecuteW (NULL, L"open", path_utf16, args_utf16, in uget_aria2_launch()
601 ug_free (path_utf16); in uget_aria2_launch()
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc228 SmallVector<wchar_t, 128> path_utf16;
230 if (std::error_code ec = widenPath(path, path_utf16))
233 if (!::CreateDirectoryW(path_utf16.begin(), NULL)) {
263 SmallVector<wchar_t, 128> path_utf16;
265 if (std::error_code ec = widenPath(path, path_utf16))
279 c_str(path_utf16), DELETE,
708 SmallVector<wchar_t, 128> path_utf16;
716 if (std::error_code ec = widenPath(path8, path_utf16))
719 DWORD attr = ::GetFileAttributesW(path_utf16.begin());
729 ::CreateFileW(path_utf16.begin(), 0, // Attributes only.
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/llvm/lib/Support/Windows/
H A DPath.inc228 SmallVector<wchar_t, 128> path_utf16;
232 if (std::error_code ec = widenPath(path, path_utf16, MAX_PATH - 12))
235 if (!::CreateDirectoryW(path_utf16.begin(), NULL)) {
265 SmallVector<wchar_t, 128> path_utf16;
267 if (std::error_code ec = widenPath(path, path_utf16))
281 c_str(path_utf16), DELETE,
715 SmallVector<wchar_t, 128> path_utf16;
723 if (std::error_code ec = widenPath(path8, path_utf16))
726 DWORD attr = ::GetFileAttributesW(path_utf16.begin());
736 ::CreateFileW(path_utf16.begin(), 0, // Attributes only.
/dports/devel/llvm10/llvm-10.0.1.src/lib/Support/Windows/
H A DPath.inc228 SmallVector<wchar_t, 128> path_utf16;
230 if (std::error_code ec = widenPath(path, path_utf16))
233 if (!::CreateDirectoryW(path_utf16.begin(), NULL)) {
263 SmallVector<wchar_t, 128> path_utf16;
265 if (std::error_code ec = widenPath(path, path_utf16))
279 c_str(path_utf16), DELETE,
708 SmallVector<wchar_t, 128> path_utf16;
716 if (std::error_code ec = widenPath(path8, path_utf16))
719 DWORD attr = ::GetFileAttributesW(path_utf16.begin());
729 ::CreateFileW(path_utf16.begin(), 0, // Attributes only.

12