Home
last modified time | relevance | path

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

/third_party/lzma/CPP/Common/
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()
[all …]
DMyWindows.h213 MY_EXTERN_C void SysFreeString(BSTR bstr);
214 MY_EXTERN_C UINT SysStringByteLen(BSTR bstr);
215 MY_EXTERN_C UINT SysStringLen(BSTR bstr);
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/
Dfmtmsg.c16 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/rust/crates/memchr/bench/src/memmem/
Dimp.rs216 pub(crate) mod bstr { module
223 bstr::ByteSlice::find(haystack.as_bytes(), needle.as_bytes()) in oneshot()
230 let finder = bstr::Finder::new(needle).into_owned(); in prebuilt()
238 bstr::ByteSlice::find_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
242 PrebuiltIter(bstr::Finder::new(needle).into_owned()) in prebuiltiter()
246 pub(crate) struct PrebuiltIter(bstr::Finder<'static>);
264 bstr::ByteSlice::rfind(haystack.as_bytes(), needle.as_bytes()) in oneshot()
271 let finder = bstr::FinderReverse::new(needle).into_owned(); in prebuilt()
279 bstr::ByteSlice::rfind_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
283 PrebuiltIter(bstr::FinderReverse::new(needle).into_owned()) in prebuiltiter()
[all …]
Dmod.rs160 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()
/third_party/python/Lib/test/test_email/
Dtest_inversion.py16 def dedent(bstr): argument
17 lines = bstr.splitlines()
/third_party/cups-filters/filter/pdftopdf/
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()
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/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
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/node/deps/npm/node_modules/npm-pick-manifest/lib/
Dindex.js197 const bstr = before ? new Date(before).toLocaleString() : '' constant
200 (before ? ` with a date before ${bstr}` : '')
/third_party/rust/crates/memchr/bench/
DCargo.toml21 bstr = "0.2.15"
DCargo.lock27 name = "bstr"
176 "bstr",
/third_party/python/Lib/test/
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/src/Google.Protobuf.Test/
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/rust/crates/memchr/bench/data/pathological/
DREADME.md11 input defeats a heuristic in the old bstr and regex substring implementations
15 `O(mn)` time complexity. (In the case of `bstr`, it does a little better by
/third_party/gn/src/gn/
Dparse_tree.cc988 std::string_view bstr = GetStringRepresentation(b); in SortAsStringsList() local
989 return astr < bstr; in SortAsStringsList()
998 std::string_view bstr = GetStringRepresentation(b); in SortAsTargetsList() local
1000 std::make_pair(GetDepsCategory(bstr), SplitAtFirst(bstr, ':')); in SortAsTargetsList()
/third_party/python/Modules/_ctypes/
Dcfield.c1378 BSTR bstr; in BSTR_set() local
1402 bstr = SysAllocStringLen(wvalue, (unsigned)wsize); in BSTR_set()
1405 bstr = NULL; in BSTR_set()
1412 *(BSTR *)ptr = bstr; in BSTR_set()
/third_party/libuv/src/win/
Dprocess.c663 wchar_t* bstr = *(wchar_t* const*)b; in qsort_wcscmp() local
664 return env_strncmp(astr, -1, bstr); in qsort_wcscmp()
/third_party/libinput/test/
Dlitest.h107 const char *bstr);
116 const char *bstr);
Dlitest.c203 const char *bstr) in litest_fail_comparison_int() argument
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() argument
223 litest_log("FAILED COMPARISON: %s %s %s\n", astr, operator, bstr); in litest_fail_comparison_double()
/third_party/node/deps/uv/src/win/
Dprocess.c663 wchar_t* bstr = *(wchar_t* const*)b; in qsort_wcscmp() local
664 return env_strncmp(astr, -1, bstr); in qsort_wcscmp()
/third_party/rust/crates/memchr/bench/runs/2021-05-01_regex-and-bstr/
DREADME.md9 These benchmarks were run after updating the `regex` and `bstr` crates to use
/third_party/rust/crates/regex/
DCHANGELOG.md386 Moving forward, the plan is to join up with the `bstr` and `regex-automata`
/third_party/astc-encoder/Test/Images/HDRIHaven/HDR-RGB/
Dhdr-rgb-arboretum.hdr1165 …���������������������������������ikn�_�c^���l`]LKh�����kv�{l��qnkwzr_��^`bstr��svmaqqutjbU~�bi]g…