Home
last modified time | relevance | path

Searched refs:repr_ (Results 1 - 4 of 4) sorted by relevance

/third_party/libphonenumber/cpp/src/phonenumbers/utf/
H A Dunicodetext.cc208 repr_.append(first.it_, static_cast<int>(last.it_ - first.it_)); in UnicodeText()
228 repr_.Copy(src.repr_.data_, src.repr_.size_); in Copy()
233 repr_.Copy(buffer, byte_length); in CopyUTF8()
234 repr_.utf8_was_valid_ = UniLib:: IsInterchangeValid(buffer, byte_length); in CopyUTF8()
235 if (!repr_.utf8_was_valid_) { in CopyUTF8()
237 repr_.size_ = ConvertToInterchangeValid(repr_.data_, byte_length); in CopyUTF8()
244 repr_ in UnsafeCopyUTF8()
[all...]
H A Dunicodetext.h150 bool empty() { return repr_.size_ == 0; } // Test if text is empty. in empty()
285 const char* utf8_data() const { return repr_.data_; } in utf8_data()
286 int utf8_length() const { return repr_.size_; } in utf8_length()
287 int utf8_capacity() const { return repr_.capacity_; } in utf8_capacity()
317 bool UTF8WasValid() const { return repr_.utf8_was_valid_; } in UTF8WasValid()
359 Repr repr_; member in i18n::phonenumbers::UnicodeText
/third_party/python/Lib/test/
H A Dtest_hash.py171 # Each subclass should define a field "repr_", containing the repr() of
174 def get_hash_command(self, repr_):
175 return 'print(hash(eval(%a)))' % repr_
177 def get_hash(self, repr_, seed=None):
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
271 self.assertNotEqual(self.get_hash(self.repr_), known_hash_of_obj)
274 self.assertEqual(self.get_hash(self.repr_, see
293 repr_ = repr('abc') global() variable in StrHashRandomizationTests
310 repr_ = repr(b'abc') global() variable in BytesHashRandomizationTests
319 repr_ = "memoryview(b'abc')" global() variable in MemoryviewHashRandomizationTests
331 repr_ = repr(datetime.date(1066, 10, 14)) global() variable in DatetimeDateTests
334 repr_ = repr(datetime.datetime(1, 2, 3, 4, 5, 6, 7)) global() variable in DatetimeDatetimeTests
337 repr_ = repr(datetime.time(0)) global() variable in DatetimeTimeTests
[all...]
H A Dtest_logging.py2139 for (id_, repr_), ref in self._survivors.items():
2141 dead.append(repr_)

Completed in 9 milliseconds