Home
last modified time | relevance | path

Searched refs:wcslen (Results 1 – 25 of 196) sorted by relevance

12345678

/external/python/cpython2/Lib/ctypes/test/
Dtest_unicode.py12 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/
Dbugprone-not-null-terminated-result-wcslen.cpp15 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()
Dbugprone-not-null-terminated-result-wmemcpy-safe-cxx.cpp15 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()
Dbugprone-misplaced-operator-in-strlen-in-alloc.c15 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/
Dwcslen-1.ll2 ; 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 …]
Dwcslen-3.ll2 ; 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 …]
Dwcslen-2.ll1 ; 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
Dwcslen-4.ll1 ; 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/
Dtest_unicode.py11 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/
Dcfx_cssstylesheet_unittest.cpp35 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/
Dgetpath.c173 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 …]
Dmain.c129 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/
Dgetpathp.c447 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 …]
Dlauncher.c392 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/
DSfxSetup.c53 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/
DStringServices.cpp67 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/
DREADME.libvpx27 - Use wcslen() instead of std::wcslen()
/external/skqp/tools/sk_app/win/
Dmain_win.cpp20 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/
Dmain_win.cpp20 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/
Dutf_string_conversions_unittest.cc148 WideToUTF8(test.utf16, wcslen(test.utf16), &converted)); in TEST()
179 WideToUTF8(test.utf32, wcslen(test.utf32), &converted)); in TEST()
/external/mdnsresponder/mDNSWindows/
Dloclibrary.c247 return (int) wcslen(locFile); in PathForResourceWithPathW()
259 return (int) wcslen(locFile); in PathForResourceWithPathW()
/external/llvm-project/compiler-rt/test/msan/
Dwcsncpy.cpp13 assert(wcslen(s) == 3); in main()
/external/icu/libicu/cts_headers/
Dcwchar.h43 # define uprv_wcslen wcslen
/external/icu/icu4c/source/common/
Dcwchar.h43 # define uprv_wcslen wcslen
/external/python/cpython3/Python/
Dpathconfig.c120 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()

12345678