Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/utf8/
Dunicodetext.cc104 this->repr_ = std::move(src.repr_); in operator =()
109 repr_.Copy(src.repr_.data_, src.repr_.size_); in Copy()
114 repr_.PointTo(buffer, byte_length); in PointToUTF8()
119 repr_.Copy(buffer, byte_length); in CopyUTF8()
124 repr_.append(utf8, len); in AppendUTF8()
128 const char* UnicodeText::data() const { return repr_.data_; } in data()
130 int UnicodeText::size_bytes() const { return repr_.size_; } in size_bytes()
183 repr_.append(str, char_len); in push_back()
187 void UnicodeText::clear() { repr_.clear(); } in clear()
196 return IsValidUTF8(repr_.data_, repr_.size_); in is_valid()
[all …]
Dunicodetext.h210 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.py2005 for (id_, repr_), ref in self._survivors.items():
2007 dead.append(repr_)
/external/tensorflow/tensorflow/python/util/
Dtf_should_use.py40 def __init__(self, type_, repr_, stack_frame, fatal_error_if_unsated): argument
42 self._repr = repr_
162 repr_=repr(x),