Home
last modified time | relevance | path

Searched refs:repr_ (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/native/utils/utf8/
Dunicodetext.cc106 repr_.PointTo(src.repr_.data_, src.repr_.size_); in UnicodeText()
111 this->repr_ = std::move(src.repr_); in operator =()
116 repr_.Copy(src.repr_.data_, src.repr_.size_); in Copy()
121 repr_.PointTo(buffer, byte_length); in PointToUTF8()
126 repr_.Copy(buffer, byte_length); in CopyUTF8()
131 repr_.append(utf8, len); in AppendUTF8()
135 const char* UnicodeText::data() const { return repr_.data_; } in data()
137 int UnicodeText::size_bytes() const { return repr_.size_; } in size_bytes()
190 repr_.append(str, char_len); in push_back()
194 void UnicodeText::clear() { repr_.clear(); } in clear()
[all …]
Dunicodetext.h224 Repr repr_; variable
/external/python/cpython2/Lib/test/
Dtest_hash.py150 def get_hash_command(self, repr_): argument
151 return 'print(hash(%s))' % repr_
153 def get_hash(self, repr_, seed=None): argument
159 cmd_line = [sys.executable, '-c', self.get_hash_command(repr_)]
169 run1 = self.get_hash(self.repr_, seed='random')
170 run2 = self.get_hash(self.repr_, seed='random')
182 self.assertEqual(self.get_hash(self.repr_), known_hash_of_obj)
185 self.assertEqual(self.get_hash(self.repr_, seed=0), known_hash_of_obj)
200 self.assertEqual(self.get_hash(self.repr_, seed=42), h)
203 repr_ = repr('abc') variable in StrHashRandomizationTests
[all …]
Dtest_logging.py983 for (id_, repr_), ref in self._survivors.items():
985 dead.append(repr_)
/external/python/cpython3/Lib/test/
Dtest_hash.py174 def get_hash_command(self, repr_): argument
175 return 'print(hash(eval(%a)))' % repr_
177 def get_hash(self, repr_, seed=None): argument
186 '-c', self.get_hash_command(repr_),
193 run1 = self.get_hash(self.repr_, seed='random')
194 run2 = self.get_hash(self.repr_, seed='random')
198 repr_ = None variable in StringlikeHashRandomizationTests
258 self.assertNotEqual(self.get_hash(self.repr_), known_hash_of_obj)
261 self.assertEqual(self.get_hash(self.repr_, seed=0), known_hash_of_obj)
268 self.assertEqual(self.get_hash(self.repr_, seed=42), h)
[all …]
Dtest_logging.py2066 for (id_, repr_), ref in self._survivors.items():
2068 dead.append(repr_)
/external/tensorflow/tensorflow/python/util/
Dtf_should_use.py41 def __init__(self, type_, repr_, stack_frame, error_in_function, argument
44 self._repr = repr_
208 repr_=repr(x),