Searched refs:repr_ (Results 1 – 4 of 4) sorted by relevance
/third_party/libphonenumber/cpp/src/phonenumbers/utf/ |
D | unicodetext.cc | 208 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_.Copy(buffer, byte_length); in UnsafeCopyUTF8() 253 repr_.TakeOwnershipOf(buffer, byte_length, byte_capacity); in TakeOwnershipOfUTF8() 254 repr_.utf8_was_valid_ = UniLib:: IsInterchangeValid(buffer, byte_length); in TakeOwnershipOfUTF8() 255 if (!repr_.utf8_was_valid_) { in TakeOwnershipOfUTF8() [all …]
|
D | unicodetext.h | 150 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_; variable
|
/third_party/python/Lib/test/ |
D | test_hash.py | 174 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 …]
|
D | test_logging.py | 2078 for (id_, repr_), ref in self._survivors.items(): 2080 dead.append(repr_)
|