Home
last modified time | relevance | path

Searched refs:bstr (Results 1 - 19 of 19) sorted by relevance

/third_party/lzma/CPP/Common/
H A DMyWindows.cpp53 BSTR bstr = (BSTR)((CBstrSizeType *)p + 1); in SysAllocStringByteLen() local
55 memcpy(bstr, s, len); in SysAllocStringByteLen()
57 ((Byte *)bstr)[len] = 0; in SysAllocStringByteLen()
58 return bstr; in SysAllocStringByteLen()
71 BSTR bstr = (BSTR)((CBstrSizeType *)p + 1); in SysAllocStringLen() local
73 memcpy(bstr, s, size); in SysAllocStringLen()
74 bstr[len] = 0; in SysAllocStringLen()
75 return bstr; in SysAllocStringLen()
88 void SysFreeString(BSTR bstr) in SysFreeString() argument
90 if (bstr) in SysFreeString()
94 SysStringByteLen(BSTR bstr) SysStringByteLen() argument
101 SysStringLen(BSTR bstr) SysStringLen() argument
[all...]
H A DMyWindows.h269 EXTERN_C void SysFreeString(BSTR bstr);
270 EXTERN_C UINT SysStringByteLen(BSTR bstr);
271 EXTERN_C UINT SysStringLen(BSTR bstr);
H A DMyCom.h77 inline HRESULT StringToBstr(LPCOLESTR src, BSTR *bstr) in StringToBstr() argument
79 *bstr = ::SysAllocString(src); in StringToBstr()
80 return (*bstr) ? S_OK : E_OUTOFMEMORY; in StringToBstr()
/third_party/musl/src/misc/
H A Dfmtmsg.c13 * If lstr is the first part of bstr, check that the next char in bstr
16 static int _strcolcmp(const char *lstr, const char *bstr) in _strcolcmp() argument
19 while (lstr[i] && bstr[i] && (bstr[i] == lstr[i])) i++; in _strcolcmp()
20 if ( lstr[i] || (bstr[i] && bstr[i] != ':')) return 1; in _strcolcmp()
/third_party/python/Lib/test/test_email/
H A Dtest_inversion.py16 def dedent(bstr):
17 lines = bstr.splitlines()
/third_party/rust/crates/memchr/bench/src/memmem/
H A Dmod.rs25 bstr
26 The implementation provided by the bstr crate.
27 N.B. This is only applicable at time of writing, since bstr will
160 def_impl!($inp, $q, $freq, bstr); in oneshot()
228 def_impl!($inp, $q, $freq, bstr); in prebuilt()
296 def_impl!($inp, $q, $freq, bstr); in oneshot_iter()
364 def_impl!($inp, $q, $freq, bstr); in prebuilt_iter()
H A Dimp.rs211 /// bstr's implementation of memmem.
213 /// The implementation in this crate was originally copied from bstr.
214 /// Eventually, bstr will just use the implementation in this crate, but at time
216 pub(crate) mod bstr {
223 bstr::ByteSlice::find(haystack.as_bytes(), needle.as_bytes())
230 let finder = bstr::Finder::new(needle).into_owned();
238 bstr::ByteSlice::find_iter(haystack.as_bytes(), needle.as_bytes())
242 PrebuiltIter(bstr::Finder::new(needle).into_owned())
246 pub(crate) struct PrebuiltIter(bstr::Finder<'static>);
264 bstr
[all...]
/third_party/cups-filters/filter/pdftopdf/
H A Dpptypes.cc68 static const char *bstr[6]={"None",NULL,"one thin","one thick","two thin","two thick"}; in BorderType_dump() local
69 fputs(bstr[border],stderr); in BorderType_dump()
H A Dpdftopdf_processor.cc9 static const char *bstr[3]={"Off","On","Shuffle-Only"}; in BookletMode_dump() local
13 fputs(bstr[bkm],stderr); in BookletMode_dump()
/third_party/node/deps/npm/node_modules/npm-pick-manifest/lib/
H A Dindex.js197 const bstr = before ? new Date(before).toLocaleString() : ''
200 (before ? ` with a date before ${bstr}` : '')
/third_party/python/Lib/test/
H A Dtest_base64.py252 for bstr, res in tests:
254 with self.subTest(bstr=bstr, func=func):
255 self.assertEqual(func(bstr), res)
256 self.assertEqual(func(bstr.decode('ascii')), res)
258 base64.b64decode(bstr, validate=True)
260 base64.b64decode(bstr.decode('ascii'), validate=True)
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
H A DCodedOutputStreamTest.cs366 ByteString bstr = cin.ReadBytes(); in TestCodedInputOutputPosition()
367 Assert.AreEqual(110, bstr.Length); in TestCodedInputOutputPosition()
368 Assert.AreEqual((byte) 109, bstr[109]); in TestCodedInputOutputPosition()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DCodedOutputStreamTest.cs460 ByteString bstr = cin.ReadBytes(); in TestCodedInputOutputPosition()
461 Assert.AreEqual(110, bstr.Length); in TestCodedInputOutputPosition()
462 Assert.AreEqual((byte) 109, bstr[109]); in TestCodedInputOutputPosition()
/third_party/python/Modules/_ctypes/
H A Dcfield.c1379 BSTR bstr; in BSTR_set() local
1403 bstr = SysAllocStringLen(wvalue, (unsigned)wsize); in BSTR_set()
1406 bstr = NULL; in BSTR_set()
1413 *(BSTR *)ptr = bstr; in BSTR_set()
/third_party/gn/src/gn/
H A Dparse_tree.cc997 std::string_view bstr = GetStringRepresentation(b); in SortAsStringsList()
998 return astr < bstr; in SortAsStringsList()
1007 std::string_view bstr = GetStringRepresentation(b); in SortAsTargetsList()
1009 std::make_pair(GetDepsCategory(bstr), SplitAtFirst(bstr, ':')); in SortAsTargetsList()
/third_party/libuv/src/win/
H A Dprocess.c646 wchar_t* bstr = *(wchar_t* const*)b; in qsort_wcscmp() local
647 return env_strncmp(astr, -1, bstr); in qsort_wcscmp()
/third_party/libinput/test/
H A Dlitest.h111 const char *bstr);
120 const char *bstr);
H A Dlitest.c203 const char *bstr) in litest_fail_comparison_int()
205 litest_log("FAILED COMPARISON: %s %s %s\n", astr, operator, bstr); in litest_fail_comparison_int()
221 const char *bstr) in litest_fail_comparison_double()
223 litest_log("FAILED COMPARISON: %s %s %s\n", astr, operator, bstr); in litest_fail_comparison_double()
196 litest_fail_comparison_int(const char *file, int line, const char *func, const char *operator, int a, int b, const char *astr, const char *bstr) litest_fail_comparison_int() argument
214 litest_fail_comparison_double(const char *file, int line, const char *func, const char *operator, double a, double b, const char *astr, const char *bstr) litest_fail_comparison_double() argument
/third_party/node/deps/uv/src/win/
H A Dprocess.c663 wchar_t* bstr = *(wchar_t* const*)b; in qsort_wcscmp() local
664 return env_strncmp(astr, -1, bstr); in qsort_wcscmp()

Completed in 22 milliseconds