Searched defs:repr (Results 1 - 25 of 34) sorted by relevance

12

/external/llvm/unittests/ADT/
H A DTwineTest.cpp18 std::string repr(const Twine &Value) { function in namespace:__anon14956
52 // Check verse repr, since we care about the actual representation not just
57 repr(Twine("hi").concat(Twine::createNull())));
59 repr(Twine::createNull().concat(Twine("hi"))));
63 repr(Twine("hi").concat(Twine())));
65 repr(Twine().concat(Twine("hi"))));
67 repr(Twine().concat(Twine(SmallString<5>("hi")))));
69 repr(Twine(SmallString<7>("hey")).concat(Twine("there"))));
73 repr(Twine("a").concat(Twine("b"))));
77 repr(Twin
[all...]
/external/swiftshader/third_party/LLVM/unittests/ADT/
H A DTwineTest.cpp18 std::string repr(const Twine &Value) { function in namespace:__anon23174
51 // Check verse repr, since we care about the actual representation not just
56 repr(Twine("hi").concat(Twine::createNull())));
58 repr(Twine::createNull().concat(Twine("hi"))));
62 repr(Twine("hi").concat(Twine())));
64 repr(Twine().concat(Twine("hi"))));
68 repr(Twine("a").concat(Twine("b"))));
72 repr(Twine("a").concat(Twine("b")).concat(Twine("c"))));
74 repr(Twine("a").concat(Twine("b").concat(Twine("c")))));
/external/python/cpython2/Demo/pdist/
H A Dcmptree.py4 from repr import repr namespace
52 print "PWD =", repr(os.getcwd())
67 print repr(name), "only remote"
73 print repr(name),
89 print repr(name), "only locally",
102 print "Common subdirectory", repr(name)
105 print "Remote subdirectory", repr(name), "not found locally"
108 repr(name)
116 repr(nam
[all...]
H A Dserver.py7 from repr import repr namespace
48 if self._verbose: print "Accepted connection from %s" % repr(address)
50 print "*** Connection from %s refused" % repr(address)
75 if self._verbose > 1: print "Got request: %s" % repr(request)
81 raise NameError, "illegal method name %s" % repr(methodname)
90 if self._verbose > 1: print "Send reply: %s" % repr(reply)
100 raise NameError, "unrecognized special method name %s" % repr(methodname)
137 print "Invalid response syntax", repr(response)
141 print "Invalid response value", repr(respons
[all...]
/external/python/cpython2/Lib/
H A Drepr.py1 """Redo the builtin repr() (representation) but with limits on most sizes."""
3 __all__ = ["Repr","repr"]
23 def repr(self, x): member in class:Repr
34 s = __builtin__.repr(x)
92 s = __builtin__.repr(x[:self.maxstring])
96 s = __builtin__.repr(x[:i] + x[len(x)-j:])
101 s = __builtin__.repr(x) # XXX Hope this isn't too slow...
110 s = __builtin__.repr(x)
132 repr = aRepr.repr variable
[all...]
H A Dcopy.py410 import repr namespace
411 print map(repr.repr, l)
412 print map(repr.repr, l1)
413 print map(repr.repr, l2)
414 print map(repr.repr, l3)
416 import repr namespace
[all...]
H A Dbdb.py62 print 'bdb.Bdb.dispatch: unknown debugging event:', repr(event)
362 import linecache, repr namespace
375 s = s + repr.repr(args)
381 s = s + repr.repr(rv)
H A Dpydoc.py57 from repr import Repr
372 name and ' ' + repr(name), type(object).__name__)
418 def repr(self, object): member in class:HTMLRepr
419 return Repr.repr(self, object)
426 return self.escape(cram(stripid(repr(x)), self.maxother))
430 testrepr = repr(test)
443 return self.escape(cram(stripid(repr(x)), self.maxstring))
455 repr = _repr_instance.repr variable in class:HTMLDoc
900 return self.grey('=' + self.repr(objec
1034 repr = _repr_instance.repr variable in class:TextDoc
[all...]
/external/python/cpython3/Lib/
H A Dreprlib.py1 """Redo the builtin repr() (representation) but with limits on most sizes."""
3 __all__ = ["Repr", "repr", "recursive_repr"]
13 'Decorator to make a repr function return fillvalue for a recursive call'
54 def repr(self, x): member in class:Repr
124 s = builtins.repr(x[:self.maxstring])
128 s = builtins.repr(x[:i] + x[len(x)-j:])
133 s = builtins.repr(x) # XXX Hope this isn't too slow...
142 s = builtins.repr(x)
164 repr = aRepr.repr variable
[all...]
H A Dpydoc.py393 name and ' ' + repr(name), type(object).__name__)
439 def repr(self, object): member in class:HTMLRepr
440 return Repr.repr(self, object)
447 return self.escape(cram(stripid(repr(x)), self.maxother))
451 testrepr = repr(test)
464 return self.escape(cram(stripid(repr(x)), self.maxstring))
476 repr = _repr_instance.repr variable in class:HTMLDoc
919 return self.grey('=' + self.repr(object))
1001 return lhs + self.repr(objec
1062 repr = _repr_instance.repr variable in class:TextDoc
[all...]
/external/python/cpython3/Objects/
H A Dnamespaceobject.c74 PyObject *separator, *pairsrepr, *repr = NULL; local
134 repr = PyUnicode_FromFormat("%s(%S)", name, pairsrepr);
144 return repr;
H A Dstructseq.c184 PyObject *val, *repr; local
194 repr = PyObject_Repr(val);
195 if (repr == NULL)
197 crepr = PyUnicode_AsUTF8(repr);
199 Py_DECREF(repr);
214 Py_DECREF(repr);
220 Py_DECREF(repr);
H A Dweakrefobject.c160 PyObject *name, *repr; local
170 repr = PyUnicode_FromFormat(
177 repr = PyUnicode_FromFormat(
185 return repr;
H A Dobject.c400 "str() or repr() returned '%.100s'",
560 PyObject *repr, *ascii, *res; local
562 repr = PyObject_Repr(v);
563 if (repr == NULL)
566 if (PyUnicode_IS_ASCII(repr))
567 return repr;
569 /* repr is guaranteed to be a PyUnicode object by PyObject_Repr */
570 ascii = _PyUnicode_AsASCIIString(repr, "backslashreplace");
571 Py_DECREF(repr);
1866 /* These methods are used to control infinite recursion in repr, st
[all...]
/external/python/cpython2/Lib/idlelib/
H A DDebugger.py464 import repr namespace
465 self.repr = repr.Repr()
466 self.repr.maxstring = 60
467 self.repr.maxother = 60
503 svalue = self.repr.repr(value) # repr(value)
504 # Strip extra quotes caused by calling repr on the (already)
505 # repr'
[all...]
/external/python/cpython2/Objects/
H A Dstructseq.c262 PyObject *val, *repr; local
271 repr = PyObject_Repr(val);
272 if (repr == NULL) {
276 crepr = PyString_AsString(repr);
279 Py_DECREF(repr);
294 Py_DECREF(repr);
300 Py_DECREF(repr);
H A Dexceptions.c158 PyObject *repr; local
170 repr = PyString_FromString(name);
171 if (!repr) {
176 PyString_ConcatAndDel(&repr, repr_suffix);
177 return repr;
664 PyObject *repr; local
671 repr = PyObject_Repr(self->filename);
672 if (!repr) {
678 Py_DECREF(repr);
700 PyTuple_SET_ITEM(tuple, 2, repr);
895 PyObject *repr; local
[all...]
/external/python/cpython2/Modules/_io/
H A D_iomodule.c321 PyObject *repr = PyObject_Repr(file);
322 if (repr != NULL) {
324 PyString_AS_STRING(repr));
325 Py_DECREF(repr);
318 PyObject *repr = PyObject_Repr(file); local
H A Dfileio.c936 PyObject *repr = PyObject_Repr(nameobj); local
938 if (repr == NULL)
941 PyString_AS_STRING(repr),
943 Py_DECREF(repr);
H A Dbufferedio.c1223 PyObject *repr = PyObject_Repr(nameobj); local
1225 if (repr == NULL)
1229 PyString_AS_STRING(repr));
1230 Py_DECREF(repr);
H A Dtextio.c2088 PyObject *repr = PyObject_Repr(cookieObj); local
2089 if (repr != NULL) {
2092 PyString_AS_STRING(repr));
2093 Py_DECREF(repr);
/external/python/cpython3/Modules/
H A D_operator.c493 PyObject *repr; local
504 repr = PyUnicode_FromFormat(reprfmt, Py_TYPE(ig)->tp_name, ig->item);
506 return repr;
821 PyObject *repr = NULL; local
833 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(ag)->tp_name, attr);
841 repr = PyUnicode_FromFormat("%s%R",
847 return repr;
1010 PyObject *argreprs, *repr = NULL, *sep, *joinedargreprs; local
1033 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(mc)->tp_name, mc->name);
1035 return repr;
[all...]
H A Dgcmodule.c1649 PyObject *repr = NULL, *bytes = NULL; local
1650 repr = PyObject_Repr(garbage);
1651 if (!repr || !(bytes = PyUnicode_EncodeFSDefault(repr)))
1659 Py_XDECREF(repr);
/external/python/cpython2/Modules/
H A D_elementtree.c1232 PyObject *repr, *tag; local
1237 repr = PyString_FromFormat("<Element %s at %p>",
1241 return repr;
/external/tensorflow/tensorflow/compiler/tf2xla/
H A Dfunctionalize_control_flow.cc961 auto repr = std::make_pair(pred, clusters[(*it)->id()].Get()); local
962 if (predicate_index.find(repr) == predicate_index.end()) {
963 predicate_index[repr] = switch_clusters.size();
967 switch_clusters[predicate_index[repr]].name =
968 strings::StrCat(pred->name(), "_", repr.second.representative, "_If");
970 switch_clusters[predicate_index[repr]].switches.push_back(*it);

Completed in 1066 milliseconds

12