/external/python/cpython2/Lib/ctypes/test/ |
D | test_unicode.py | 12 cls.wcslen = dll.my_wcslen 13 cls.wcslen.argtypes = [ctypes.c_wchar_p] 21 wcslen = self.wcslen 24 self.assertEqual(wcslen(u"abc"), 3) 25 self.assertEqual(wcslen(u"ab\u2070"), 3) 27 self.assertEqual(wcslen("abc"), 3) 28 self.assertRaises(ctypes.ArgumentError, wcslen, "ab�") 31 wcslen = self.wcslen 33 self.assertEqual(wcslen(u"abc"), 3) 34 self.assertEqual(wcslen(u"ab\u2070"), 3) [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | bugprone-not-null-terminated-result-wcslen.cpp | 15 position = (wchar_t *)wmemchr(src, L'\0', wcslen(src)); in bad_wmemchr_1() 37 wmemmove(dest, src, wcslen(src)); in bad_wmemmove() 45 wmemmove_s(dst, 13, src, wcslen(src) + 1); in good_wmemmove() 49 wmemmove_s(dest, 13, src, wcslen(src)); in bad_wmemmove_s() 55 wmemmove_s(dest, 13, src, wcslen(src) + 1); in good_wmemmove_s_1() 59 return wcsncmp(wcs0, wcs1, (wcslen(wcs0) + 1)); in bad_wcsncmp_1() 65 return wcsncmp(wcs2, wcs3, 1 + wcslen(wcs2)); in bad_wcsncmp_2() 71 return wcsncmp(wcs4, wcs5, wcslen(wcs4)); in good_wcsncmp_1_2() 87 wcslen(long_source_name)); in bad_wcsxfrm_1() 97 wcslen(long_source_name) + 1); in good_wcsxfrm_1()
|
D | bugprone-not-null-terminated-result-wmemcpy-safe-cxx.cpp | 15 wmemcpy(dest01, src, wcslen(src)); in bad_wmemcpy_known_dest() 32 wmemcpy(dest20, src, wcslen(src)); in bad_wmemcpy_full_source_length() 45 wmemcpy(dest21, src, wcslen(src) - 1); in bad_wmemcpy_partial_source_length() 53 wcsncpy_s(dst21, src, wcslen(src) - 1); in good_wmemcpy_partial_source_length() 61 wmemcpy_s(dest40, 13, src, wcslen(src)); in bad_wmemcpy_s_unknown_dest() 72 wmemcpy_s(dest41, 13, src, wcslen(src)); in bad_wmemcpy_s_known_dest() 89 wmemcpy_s(dest60, 13, src, wcslen(src)); in bad_wmemcpy_s_full_source_length() 102 wmemcpy_s(dest61, 13, src, wcslen(src) - 1); in bad_wmemcpy_s_partial_source_length() 110 wcsncpy_s(dst61, src, wcslen(src) - 1); in good_wmemcpy_s_partial_source_length()
|
D | bugprone-misplaced-operator-in-strlen-in-alloc.c | 15 size_t wcslen(const wchar_t *); 32 wchar_t *new_name = (wchar_t *)malloc(wcslen(name + 1)); in bad_malloc_wide()
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | wcslen-1.ll | 2 ; Test that the wcslen library call simplifier works correctly. 8 declare i64 @wcslen(i32*) 26 %hello_l = call i64 @wcslen(i32* %hello_p) 35 %null_l = call i64 @wcslen(i32* %null_p) 44 %null_hello_l = call i64 @wcslen(i32* %null_hello_p) 52 %len = tail call i64 @wcslen(i32* @nullstring) nounwind 56 ; Check wcslen(x) == 0 --> *x == 0. 63 %hello_l = call i64 @wcslen(i32* %hello_p) 74 %str_l = call i64 @wcslen(i32* %str_p) 79 ; Check wcslen(x) != 0 --> *x != 0. [all …]
|
D | wcslen-3.ll | 2 ; Test that the wcslen library call simplifier works correctly. 12 declare i64 @wcslen(i16*) 27 %hello_l = call i64 @wcslen(i16* %hello_p) 36 %null_l = call i64 @wcslen(i16* %null_p) 45 %null_hello_l = call i64 @wcslen(i16* %null_hello_p) 53 %len = tail call i64 @wcslen(i16* @nullstring) nounwind 57 ; Check wcslen(x) == 0 --> *x == 0. 64 %hello_l = call i64 @wcslen(i16* %hello_p) 75 %str_l = call i64 @wcslen(i16* %str_p) 80 ; Check wcslen(x) != 0 --> *x != 0. [all …]
|
D | wcslen-2.ll | 1 ; Test that the wcslen library call simplifier works correctly. 12 declare i64 @wcslen(i32*, i32) 17 %hello_l = call i64 @wcslen(i32* %hello_p, i32 187) 18 ; CHECK-NEXT: %hello_l = call i64 @wcslen
|
D | wcslen-4.ll | 1 ; Test that the wcslen library call simplifier works correctly. 11 declare i64 @wcslen(i32*) 15 ; CHECK-NEXT: %hello_l = call i64 @wcslen(i32* getelementptr inbounds ([6 x i32], [6 x i32]* @hello… 18 %hello_l = call i64 @wcslen(i32* %hello_p)
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_unicode.py | 11 wcslen = dll.my_wcslen 12 wcslen.argtypes = [ctypes.c_wchar_p] 14 self.assertEqual(wcslen("abc"), 3) 15 self.assertEqual(wcslen("ab\u2070"), 3) 16 self.assertRaises(ctypes.ArgumentError, wcslen, b"ab\xe4")
|
/external/pdfium/core/fxcrt/css/ |
D | cfx_cssstylesheet_unittest.cpp | 35 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in LoadAndVerifyDecl() 92 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in TEST_F() 140 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in TEST_F() 175 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in TEST_F() 179 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in TEST_F() 183 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in TEST_F() 187 EXPECT_TRUE(sheet_->LoadBuffer(buf, wcslen(buf))); in TEST_F()
|
/external/python/cpython3/Modules/ |
D | getpath.c | 173 size_t i = wcslen(dir); in reduce() 241 n = wcslen(path); in joinpath() 254 size_t k = wcslen(path2); in joinpath() 288 size_t len = wcslen(path); in joinpath2() 291 len += wcslen(path2); in joinpath2() 310 size_t srclen = wcslen(src); in safe_wcscpy() 389 size_t len = wcslen(filename); in ismodule() 420 size_t n = wcslen(progpath); in add_exe_suffix() 421 size_t s = wcslen(EXE_SUFFIX); in add_exe_suffix() 525 size_t n = wcslen(prefix); in search_for_prefix() [all …]
|
D | main.c | 129 sys_path0 = PyUnicode_FromWideChar(filename, wcslen(filename)); in pymain_get_importer() 274 module = PyUnicode_FromWideChar(modname, wcslen(modname)); in pymain_run_module() 359 unicode = PyUnicode_FromWideChar(filename, wcslen(filename)); in pymain_run_file() 393 startup_obj = PyUnicode_FromWideChar(wstartup, wcslen(wstartup)); in pymain_run_startup()
|
/external/python/cpython3/PC/ |
D | getpathp.c | 447 Py_ssize_t len = wcslen(ppPaths[index]); in getpythonregpath() 567 size_t prefixlen = wcslen(prefix); in read_pth_file() 611 size_t usedsiz = wcslen(buf); in read_pth_file() 819 bufsz *= wcslen(calculate->home); in calculate_module_search_path() 821 bufsz += wcslen(PYTHONPATH) + 1; in calculate_module_search_path() 822 bufsz += wcslen(argv0_path) + 1; in calculate_module_search_path() 824 bufsz += wcslen(calculate->user_path) + 1; in calculate_module_search_path() 827 bufsz += wcslen(calculate->machine_path) + 1; in calculate_module_search_path() 829 bufsz += wcslen(zip_path) + 1; in calculate_module_search_path() 831 bufsz += wcslen(calculate->pythonpath_env) + 1; in calculate_module_search_path() [all …]
|
D | launcher.c | 392 n = wcslen(ip->executable); in _locate_pythons_for_key() 522 size_t wlen = wcslen(wanted_ver); in find_python_by_version() 527 wlen -= wcslen(L"-32"); in find_python_by_version() 531 wlen -= wcslen(L"-64"); in find_python_by_version() 534 n = wcslen(ip->version); in find_python_by_version() 607 size_t n = wcslen(wanted_ver); in locate_python() 819 child_command_size = wcslen(executable) + wcslen(cmdline) + 2; in invoke_child() 823 child_command_size = wcslen(executable) + wcslen(suffix) + in invoke_child() 824 wcslen(cmdline) + 3; in invoke_child() 889 n = wcslen(p); in skip_prefix() [all …]
|
/external/lzma/C/Util/SfxSetup/ |
D | SfxSetup.c | 53 unsigned len = (unsigned)wcslen(s); in FindExt() 182 size_t len = wcslen(path); in RemoveDirWithSubItems() 309 pathLen = wcslen(path); in main() 322 wchar_t *s = path + wcslen(path); in main() 339 pathLen = wcslen(path); in main() 457 unsigned len = (unsigned)wcslen(name); in main() 575 if (wcslen(cmdLineParams) != 0) in main()
|
/external/mdnsresponder/mDNSWindows/DLLX/ |
D | StringServices.cpp | 67 if ( wcslen( utf16String ) > 0 ) in BSTRToUTF8() 71 …size = (size_t) WideCharToMultiByte( CP_UTF8, 0, utf16String, ( int ) wcslen( utf16String ), NULL,… in BSTRToUTF8() 99 …size = (size_t) WideCharToMultiByte( CP_UTF8, 0, utf16String, ( int ) wcslen( utf16String ), utf8S… in BSTRToUTF8()
|
/external/libvpx/libvpx/third_party/googletest/ |
D | README.libvpx | 27 - Use wcslen() instead of std::wcslen()
|
/external/skqp/tools/sk_app/win/ |
D | main_win.cpp | 20 int size = WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), NULL, 0, NULL, NULL); in tchar_to_utf8() 22 WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), str8, size, NULL, NULL); in tchar_to_utf8()
|
/external/skia/tools/sk_app/win/ |
D | main_win.cpp | 20 int size = WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), NULL, 0, NULL, NULL); in tchar_to_utf8() 22 WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), str8, size, NULL, NULL); in tchar_to_utf8()
|
/external/libchrome/base/strings/ |
D | utf_string_conversions_unittest.cc | 148 WideToUTF8(test.utf16, wcslen(test.utf16), &converted)); in TEST() 179 WideToUTF8(test.utf32, wcslen(test.utf32), &converted)); in TEST()
|
/external/mdnsresponder/mDNSWindows/ |
D | loclibrary.c | 247 return (int) wcslen(locFile); in PathForResourceWithPathW() 259 return (int) wcslen(locFile); in PathForResourceWithPathW()
|
/external/llvm-project/compiler-rt/test/msan/ |
D | wcsncpy.cpp | 13 assert(wcslen(s) == 3); in main()
|
/external/icu/libicu/cts_headers/ |
D | cwchar.h | 43 # define uprv_wcslen wcslen
|
/external/icu/icu4c/source/common/ |
D | cwchar.h | 43 # define uprv_wcslen wcslen
|
/external/python/cpython3/Python/ |
D | pathconfig.c | 120 len += wcslen(list->items[i]); in _PyWideStringList_Join() 133 len = wcslen(path); in _PyWideStringList_Join() 209 p = sys_path + wcslen(sys_path); /* End of string */ in config_init_module_search_paths() 637 n = wcslen(path0); in _PyPathConfig_ComputeSysPath0()
|