Home
last modified time | relevance | path

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

12

/external/iproute2/tc/
Dm_ematch.h14 struct bstr struct
19 struct bstr *next; argument
22 extern struct bstr * bstr_alloc(const char *text);
24 static inline struct bstr * bstr_new(char *data, unsigned int len) in bstr_new()
26 struct bstr *b = calloc(1, sizeof(*b)); in bstr_new()
37 static inline int bstrcmp(struct bstr *b, const char *text) in bstrcmp()
48 static inline struct bstr *bstr_next(struct bstr *b) in bstr_next()
53 extern unsigned long bstrtoul(const struct bstr *b);
54 extern void bstr_print(FILE *fd, const struct bstr *b, int ascii);
59 struct bstr *args;
[all …]
Dem_meta.c125 static struct meta_entry *lookup_meta_entry(struct bstr *kind) in lookup_meta_entry()
161 struct bstr *a = (struct bstr *) val; in dump_value()
249 static inline struct bstr *
250 parse_object(struct bstr *args, struct bstr *arg, struct tcf_meta_val *obj, in parse_object()
255 struct bstr *a; in parse_object()
360 struct bstr *args) in meta_parse_eopt()
363 struct bstr *a; in meta_parse_eopt()
Dem_nbyte.c41 struct bstr *args) in nbyte_parse_eopt()
43 struct bstr *a; in nbyte_parse_eopt()
44 struct bstr *needle = args; in nbyte_parse_eopt()
Dm_ematch.c256 int em_parse_error(int err, struct bstr *args, struct bstr *carg, in em_parse_error()
494 struct bstr *bstr_alloc(const char *text) in bstr_alloc()
496 struct bstr *b = calloc(1, sizeof(*b)); in bstr_alloc()
512 unsigned long bstrtoul(const struct bstr *b) in bstrtoul()
528 void bstr_print(FILE *fd, const struct bstr *b, int ascii) in bstr_print()
559 struct bstr *b; in print_ematch_tree()
Dem_u32.c37 struct bstr *args) in u32_parse_eopt()
39 struct bstr *a; in u32_parse_eopt()
Dem_canid.c58 static int canid_parse_rule(struct rules *rules, struct bstr *a, int iseff) in canid_parse_rule()
93 struct bstr *args) in canid_parse_eopt()
Dem_cmp.c41 struct bstr *args) in cmp_parse_eopt()
43 struct bstr *a; in cmp_parse_eopt()
Demp_ematch.yacc.h64 struct bstr *b;
Demp_ematch.y16 struct bstr *b;
Dem_ipset.c199 struct bstr *args) in ipset_parse_eopt()
/external/lzma/CPP/Common/
DMyWindows.cpp49 BSTR bstr = (BSTR)((CBstrSizeType *)p + 1); in SysAllocStringByteLen() local
51 memcpy(bstr, s, len); in SysAllocStringByteLen()
53 ((Byte *)bstr)[len] = 0; in SysAllocStringByteLen()
54 return bstr; in SysAllocStringByteLen()
67 BSTR bstr = (BSTR)((CBstrSizeType *)p + 1); in SysAllocStringLen() local
69 memcpy(bstr, s, size); in SysAllocStringLen()
70 bstr[len] = 0; in SysAllocStringLen()
71 return bstr; in SysAllocStringLen()
84 void SysFreeString(BSTR bstr) in SysFreeString() argument
86 if (bstr) in SysFreeString()
[all …]
DMyWindows.h212 MY_EXTERN_C void SysFreeString(BSTR bstr);
213 MY_EXTERN_C UINT SysStringByteLen(BSTR bstr);
214 MY_EXTERN_C UINT SysStringLen(BSTR bstr);
DMyCom.h75 inline HRESULT StringToBstr(LPCOLESTR src, BSTR *bstr) in StringToBstr() argument
77 *bstr = ::SysAllocString(src); in StringToBstr()
78 return (*bstr) ? S_OK : E_OUTOFMEMORY; in StringToBstr()
/external/pdfium/fpdfsdk/
Dfpdf_view.cpp1034 FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Init(FPDF_BSTR* bstr) { in FPDF_BStr_Init() argument
1035 if (!bstr) in FPDF_BStr_Init()
1038 bstr->str = nullptr; in FPDF_BStr_Init()
1039 bstr->len = 0; in FPDF_BStr_Init()
1043 FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Set(FPDF_BSTR* bstr, in FPDF_BStr_Set() argument
1046 if (!bstr || !cstr) in FPDF_BStr_Set()
1053 FPDF_BStr_Clear(bstr); in FPDF_BStr_Set()
1057 if (bstr->str && bstr->len < length) in FPDF_BStr_Set()
1058 bstr->str = FX_Realloc(char, bstr->str, length + 1); in FPDF_BStr_Set()
1059 else if (!bstr->str) in FPDF_BStr_Set()
[all …]
/external/webrtc/webrtc/base/
Dwinfirewall.cc137 _bstr_t bstr = filename; in AddApplicationW() local
138 hr = app->put_ProcessImageFileName(bstr); in AddApplicationW()
139 bstr = friendly_name; in AddApplicationW()
141 hr = app->put_Name(bstr); in AddApplicationW()
/external/pdfium/core/fxcrt/
Dwidestring.cpp662 ByteString bstr; in ToDefANSI() local
665 pdfium::span<char> dest_buf = bstr.GetBuffer(dest_len); in ToDefANSI()
669 bstr.ReleaseBuffer(dest_len); in ToDefANSI()
670 return bstr; in ToDefANSI()
893 WideString WideString::FromASCII(ByteStringView bstr) { in FromASCII() argument
895 result.Reserve(bstr.GetLength()); in FromASCII()
896 for (char c : bstr) in FromASCII()
902 WideString WideString::FromLatin1(ByteStringView bstr) { in FromLatin1() argument
904 result.Reserve(bstr.GetLength()); in FromLatin1()
905 for (char c : bstr) in FromLatin1()
[all …]
Dfx_system.cpp247 const char* bstr, in FXSYS_MultiByteToWideChar() argument
254 buf[wlen] = reinterpret_cast<const uint8_t*>(bstr)[i]; in FXSYS_MultiByteToWideChar()
Dfx_system.h157 const char* bstr,
/external/python/cpython3/Lib/test/test_email/
Dtest_inversion.py16 def dedent(bstr): argument
17 lines = bstr.splitlines()
/external/python/cpython2/Lib/test/
Dtest_base64.py154 for bstr, res in tests:
155 self.assertEqual(base64.b64decode(bstr), res)
156 self.assertEqual(base64.standard_b64decode(bstr), res)
157 self.assertEqual(base64.urlsafe_b64decode(bstr), res)
/external/pdfium/fxjs/
Dcjs_runtime.cpp218 ByteString bstr = ToWideString(value).ToDefANSI(); in MaybeCoerceToNumber() local
219 if (bstr.IsEmpty()) in MaybeCoerceToNumber()
221 if (bstr == "NaN") in MaybeCoerceToNumber()
/external/pdfium/public/
Dfpdfview.h1259 FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Init(FPDF_BSTR* bstr);
1263 FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Set(FPDF_BSTR* bstr,
1269 FPDF_EXPORT FPDF_RESULT FPDF_CALLCONV FPDF_BStr_Clear(FPDF_BSTR* bstr);
/external/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()
/external/python/cpython3/Lib/test/
Dtest_base64.py259 for bstr, res in tests:
261 with self.subTest(bstr=bstr, func=func):
262 self.assertEqual(func(bstr), res)
263 self.assertEqual(func(bstr.decode('ascii')), res)
265 base64.b64decode(bstr, validate=True)
267 base64.b64decode(bstr.decode('ascii'), validate=True)
/external/protobuf/csharp/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()

12