Home
last modified time | relevance | path

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

123456

/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/swiftshader/third_party/llvm-7.0/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/python/cpython3/Modules/
Dgetpath.c157 size_t i = wcslen(dir); in reduce()
186 if (wcslen(filename) < MAXPATHLEN) { in ismodule()
246 n = wcslen(buffer); in joinpath()
254 k = wcslen(stuff); in joinpath()
312 size_t n = wcslen(progpath); in add_exe_suffix()
313 size_t s = wcslen(EXE_SUFFIX); in add_exe_suffix()
380 n = wcslen(prefix); in search_for_prefix()
501 n = wcslen(exec_prefix); in search_for_exec_prefix()
793 size_t bufsz = wcslen(calculate->zip_path); in calculate_zip_path()
808 bufsz += wcslen(core_config->module_search_path_env) + 1; in calculate_module_search_path()
[all …]
/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/PC/
Dpython_uwp.cpp59 len = wcslen(launcherPath) + 1; in get_argv0()
85 len = installPath.size() + wcslen(PROGNAME) + 2; in get_argv0()
87 len = wcslen(argv0) + wcslen(PROGNAME) + 1; in get_argv0()
Dlauncher.c321 n = wcslen(ip->executable); in locate_pythons_for_key()
393 size_t wlen = wcslen(wanted_ver); in find_python_by_version()
398 wlen -= wcslen(L"-32"); in find_python_by_version()
402 wlen -= wcslen(L"-64"); in find_python_by_version()
405 n = wcslen(ip->version); in find_python_by_version()
503 size_t n = wcslen(wanted_ver); in locate_python()
712 child_command_size = wcslen(executable) + wcslen(cmdline) + 2; in invoke_child()
716 child_command_size = wcslen(executable) + wcslen(suffix) + in invoke_child()
717 wcslen(cmdline) + 3; in invoke_child()
782 n = wcslen(p); in skip_prefix()
[all …]
Dgetpathp.c465 Py_ssize_t len = wcslen(ppPaths[index]); in getpythonregpath()
576 size_t prefixlen = wcslen(prefix); in read_pth_file()
615 size_t usedsiz = wcslen(buf); in read_pth_file()
810 bufsz *= wcslen(calculate->home); in calculate_module_search_path()
812 bufsz += wcslen(PYTHONPATH) + 1; in calculate_module_search_path()
813 bufsz += wcslen(calculate->argv0_path) + 1; in calculate_module_search_path()
815 bufsz += wcslen(calculate->user_path) + 1; in calculate_module_search_path()
818 bufsz += wcslen(calculate->machine_path) + 1; in calculate_module_search_path()
820 bufsz += wcslen(calculate->zip_path) + 1; in calculate_module_search_path()
822 bufsz += wcslen(core_config->module_search_path_env) + 1; in calculate_module_search_path()
[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/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/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/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/pdfium/core/fxcrt/
Dwidestring.cpp140 nItemLen = wcslen(pstrNextArg); in GuessSizeForVSWPrintf()
175 nItemLen = wcslen(pstrNextArg); in GuessSizeForVSWPrintf()
374 : WideString(ptr, ptr ? wcslen(ptr) : 0) {} in WideString()
422 AssignCopy(pStr, wcslen(pStr)); in operator =()
445 Concat(pStr, wcslen(pStr)); in operator +=()
476 return wcslen(ptr) == m_pData->m_nDataLength && in operator ==()
Dcfx_widetextbuf.cpp55 AppendBlock(lpsz, wcslen(lpsz) * sizeof(wchar_t)); in operator <<()
/external/icu/icu4c/source/common/
Dcwchar.h43 # define uprv_wcslen wcslen
/external/expat/xmlwf/
Dxmltchar.h51 # define tcslen wcslen
/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc99 EXPECT_EQ(0U, wcslen(Ident(L""))); in TEST()
102 EXPECT_EQ(hello_len, wcslen(Ident(L"Hello, World!"))); in TEST()
105 EXPECT_EQ(hello_len, Ident(wcslen(heap_string))); in TEST()
106 EXPECT_DEATH(Ident(wcslen(heap_string + 14)), RightOOBReadMessage(0)); in TEST()
/external/webrtc/webrtc/system_wrappers/include/
Dutf_util_win.h47 return ToUtf8(wide, wcslen(wide)); in ToUtf8()
/external/pdfium/xfa/fgas/font/
Dcfgas_defaultfontmanager.cpp34 int32_t iLength = wcslen(pReplace); in GetFont()

123456