Home
last modified time | relevance | path

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

12

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dmake_from_tuple.pass.cpp63 constexpr bool do_constexpr_test(Tuple&& tup) { in do_constexpr_test() argument
66 return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup; in do_constexpr_test()
76 bool do_forwarding_test(Tuple&& tup) { in do_forwarding_test() argument
79 const Tp value = std::make_from_tuple<Tp>(std::forward<Tuple>(tup)); in do_forwarding_test()
80 return value.args == tup in do_forwarding_test()
86 constexpr std::tuple<> tup; in test_constexpr_construction() local
87 static_assert(do_constexpr_test(tup), ""); in test_constexpr_construction()
90 constexpr std::tuple<int> tup(42); in test_constexpr_construction() local
91 static_assert(do_constexpr_test(tup), ""); in test_constexpr_construction()
94 constexpr std::tuple<int, long, void*> tup(42, 101, nullptr); in test_constexpr_construction() local
[all …]
/external/python/cpython2/Objects/
Dstructseq.c240 PyObject *tup; in structseq_repr() local
250 if ((tup = make_tuple(obj)) == NULL) { in structseq_repr()
267 val = PyTuple_GetItem(tup, i); in structseq_repr()
273 Py_DECREF(tup); in structseq_repr()
278 Py_DECREF(tup); in structseq_repr()
304 Py_DECREF(tup); in structseq_repr()
318 PyObject *tup, *result; in structseq_concat() local
319 tup = make_tuple(obj); in structseq_concat()
320 result = PySequence_Concat(tup, b); in structseq_concat()
321 Py_DECREF(tup); in structseq_concat()
[all …]
Dcodeobject.c222 validate_and_copy_tuple(PyObject *tup) in validate_and_copy_tuple() argument
228 len = PyTuple_GET_SIZE(tup); in validate_and_copy_tuple()
234 item = PyTuple_GET_ITEM(tup, i); in validate_and_copy_tuple()
/external/libcxx/test/std/utilities/intseq/intseq.general/
Dinteger_seq.pass.cpp54 auto tup = std::make_tuple ( 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ); in main() local
57 auto t3 = extract ( tup, int3() ); in main()
61 auto t7 = extract ( tup, size7 ()); in main()
65 auto t4 = extract ( tup, size4 ()); in main()
69 auto t2 = extract ( tup, size2 ()); in main()
73 auto tintmix = extract ( tup, intmix ()); in main()
77 auto tsizemix = extract ( tup, sizemix ()); in main()
/external/python/cpython2/Lib/test/crashers/
Dgc_inspection.py27 [tup] = [x for x in gc.get_referrers(marker) if type(x) is tuple]
28 print tup
29 print tup[1]
/external/python/cpython2/Demo/parser/
Dtest_parser.py15 tup = parser.st2tuple(st)
19 new = parser.tuple2st(tup)
26 if tup != parser.st2tuple(new):
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Ddisable_reduced_arity_initialization_extension.pass.cpp75 auto tup = doc_example(); in test_example_from_docs() local
76 assert(std::get<0>(tup) == "hello world"); in test_example_from_docs()
77 assert(std::get<1>(tup) == 42); in test_example_from_docs()
78 assert(std::get<2>(tup) == std::error_code{}); in test_example_from_docs()
Denable_reduced_arity_initialization_extension.pass.cpp87 auto tup = doc_example(); in test_example_from_docs() local
88 assert(std::get<0>(tup) == "hello world"); in test_example_from_docs()
89 assert(std::get<1>(tup) == 42); in test_example_from_docs()
90 assert(std::get<2>(tup) == std::error_code{}); in test_example_from_docs()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/
Dtuple_array_template_depth.pass.cpp32 tuple_t tup; in main() local
33 tup = arr; in main()
/external/python/cpython2/Modules/
Dtimemodule.c395 PyObject *tup = NULL; in time_strftime() local
404 if (!PyArg_ParseTuple(args, "s|O:strftime", &fmt, &tup)) in time_strftime()
407 if (tup == NULL) { in time_strftime()
410 } else if (!gettmarg(tup, &buf)) in time_strftime()
564 PyObject *tup = NULL; in time_asctime() local
567 if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup)) in time_asctime()
569 if (tup == NULL) { in time_asctime()
572 } else if (!gettmarg(tup, &buf)) in time_asctime()
629 time_mktime(PyObject *self, PyObject *tup) in time_mktime() argument
633 if (!gettmarg(tup, &buf)) in time_mktime()
D_ssl.c1110 PyObject *tup; in _get_aia_uri() local
1111 tup = PyList_AsTuple(lst); in _get_aia_uri()
1113 return tup; in _get_aia_uri()
3768 PyObject *keyusage = NULL, *cert = NULL, *enc = NULL, *tup = NULL; in PySSL_enum_certificates() local
3807 if ((tup = PyTuple_New(3)) == NULL) { in PySSL_enum_certificates()
3811 PyTuple_SET_ITEM(tup, 0, cert); in PySSL_enum_certificates()
3813 PyTuple_SET_ITEM(tup, 1, enc); in PySSL_enum_certificates()
3815 PyTuple_SET_ITEM(tup, 2, keyusage); in PySSL_enum_certificates()
3817 if (PyList_Append(result, tup) < 0) { in PySSL_enum_certificates()
3821 Py_CLEAR(tup); in PySSL_enum_certificates()
[all …]
D_collectionsmodule.c1458 PyObject *tup; in defdict_missing() local
1459 tup = PyTuple_Pack(1, key); in defdict_missing()
1460 if (!tup) return NULL; in defdict_missing()
1461 PyErr_SetObject(PyExc_KeyError, tup); in defdict_missing()
1462 Py_DECREF(tup); in defdict_missing()
DcPickle.c3798 PyObject *tup; in load_counted_tuple() local
3803 if (!(tup = Pdata_popTuple(self->stack, self->stack->length - len))) in load_counted_tuple()
3805 PDATA_PUSH(self->stack, tup, -1); in load_counted_tuple()
3930 PyObject *class, *tup, *obj=0; in load_obj() local
3938 if (!( tup=Pdata_popTuple(self->stack, i+1))) return -1; in load_obj()
3941 obj = Instance_New(class, tup); in load_obj()
3944 Py_DECREF(tup); in load_obj()
3955 PyObject *tup, *class=0, *obj=0, *module_name, *class_name; in load_inst() local
3981 if ((tup=Pdata_popTuple(self->stack, i))) { in load_inst()
3982 obj = Instance_New(class, tup); in load_inst()
[all …]
/external/libmojo/build/android/gyp/util/
Dbuild_utils.py305 for tup in inputs:
306 if isinstance(tup, basestring):
307 tup = (os.path.relpath(tup, base_dir), tup)
308 input_tuples.append(tup)
311 input_tuples.sort(key=lambda tup: tup[0])
/external/python/cpython2/Lib/compiler/
Dmisc.py2 def flatten(tup): argument
4 for elt in tup:
/external/python/cpython2/Lib/
Dargparse.py497 tup = self._current_indent, '', action_header
498 action_header = '%*s%s\n' % tup
502 tup = self._current_indent, '', action_width, action_header
503 action_header = '%*s%-*s ' % tup
508 tup = self._current_indent, '', action_header
509 action_header = '%*s%s\n' % tup
1085 tup = parser_name, ', '.join(self._name_parser_map)
1086 msg = _('unknown parser %r (choices: %s)') % tup
1409 tup = option_string, self.prefix_chars
1410 raise ValueError(msg % tup)
[all …]
Dos.py719 def _make_stat_result(tup, dict): argument
720 return stat_result(tup, dict)
731 def _make_statvfs_result(tup, dict): argument
732 return statvfs_result(tup, dict)
Dtabnanny.py267 firsts = map(lambda tup: str(tup[0]), w)
Dcookielib.py1458 def _cookie_from_cookie_tuple(self, tup, request): argument
1461 name, value, standard, rest = tup
1554 for tup in cookie_tuples:
1555 cookie = self._cookie_from_cookie_tuple(tup, request)
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dtuple_array_template_depth.pass.cpp35 tuple_t tup(arr); in main() local
/external/python/cpython2/Lib/lib2to3/pgen2/
Dpgen.py322 tup = self.generator.next()
323 while tup[0] in (tokenize.COMMENT, tokenize.NL):
324 tup = self.generator.next()
325 self.type, self.value, self.begin, self.end, self.line = tup
/external/python/cpython2/Doc/library/
Dpprint.rst68 >>> tup = ('spam', ('eggs', ('lumberjack', ('knights', ('ni', ('dead',
71 >>> pp.pprint(tup)
211 >>> tup = ('spam', ('eggs', ('lumberjack', ('knights', ('ni', ('dead',
213 >>> stuff = ['a' * 10, tup, ['a' * 30, 'b' * 30], ['c' * 20, 'd' * 20]]
/external/clang/test/SemaTemplate/
Ddeduction.cpp249 template <typename... Es> struct tup : tup_impl<0, Es...> {}; struct
262 tup<int, double, char> t; in main()
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_L_C_.py96 tup = struct.unpack(indexSubTableArrayFormat, data)
97 (firstGlyphIndex, lastGlyphIndex, additionalOffsetToIndexSubtable) = tup
101 tup = struct.unpack(indexSubHeaderFormat, data[:indexSubHeaderSize])
102 (indexFormat, imageFormat, imageDataOffset) = tup
/external/python/cpython2/Lib/test/
Dtest_urllib2.py1072 [tup[0:2] for tup in o.calls])
1103 [tup[0:2] for tup in o.calls])

12