/external/chromium_org/base/strings/ |
string_piece.cc | 4 // Copied from strings/stringpiece.cc with modifications 23 bool operator==(const StringPiece& x, const StringPiece& y) { 27 return StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0; 30 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { 36 void CopyToString(const StringPiece& self, std::string* target) { 40 void AppendToString(const StringPiece& self, std::string* target) { 45 StringPiece::size_type copy(const StringPiece& self, 47 StringPiece::size_type n [all...] |
string_piece_unittest.cc | 197 StringPiece a("abcdefghijklmnopqrstuvwxyz"); 198 StringPiece b("abc"); 199 StringPiece c("xyz"); 200 StringPiece d("foobar"); 202 StringPiece e; 206 StringPiece f(temp); 225 ASSERT_EQ(StringPiece::npos, std::string::npos); 228 ASSERT_EQ(a.find(b, 1), StringPiece::npos); 231 ASSERT_EQ(a.find(c, StringPiece::npos), StringPiece::npos) [all...] |
/external/clang/test/SemaCXX/ |
conversion-incomplete-type.cpp | 5 class StringPiece; // expected-note {{forward declaration of 'StringPiece'}} \ 6 // expected-note {{forward declaration of 'StringPiece'}} 9 void expectStringPiece(const StringPiece& blah) {}; // expected-note {{passing argument to parameter 'blah' here}} 12 expectStringPiece(s); // expected-error {{no viable conversion from 'const string' to incomplete type 'const StringPiece'}} 17 static void expectStringPiece(const StringPiece& blah) {}; // expected-note {{passing argument to parameter 'blah' here}} 20 expectStringPiece(s); // expected-error {{no viable conversion from 'const string' to incomplete type 'const StringPiece'}}
|
/external/chromium_org/third_party/re2/ |
libre2.symbols | 6 # re2::StringPiece* 9 # operator<<(std::ostream&, re2::StringPiece const&)
|
libre2.symbols.darwin | 5 # re2::StringPiece* 8 # operator<<(std::ostream&, re2::StringPiece const&)
|
/external/regex-re2/ |
libre2.symbols | 6 # re2::StringPiece* 9 # operator<<(std::ostream&, re2::StringPiece const&)
|
libre2.symbols.darwin | 5 # re2::StringPiece* 8 # operator<<(std::ostream&, re2::StringPiece const&)
|
/external/chromium_org/net/quic/crypto/ |
null_encrypter.cc | 9 using base::StringPiece; 18 bool NullEncrypter::SetKey(StringPiece key) { return key.empty(); } 20 bool NullEncrypter::SetNoncePrefix(StringPiece nonce_prefix) { 25 StringPiece /*nonce*/, 26 StringPiece associated_data, 27 StringPiece plaintext, 39 StringPiece associated_data, 40 StringPiece plaintext) { 43 Encrypt(StringPiece(), associated_data, plaintext, buffer); 59 StringPiece NullEncrypter::GetKey() const { return StringPiece(); [all...] |
null_decrypter.h | 25 virtual bool SetKey(base::StringPiece key) OVERRIDE; 26 virtual bool SetNoncePrefix(base::StringPiece nonce_prefix) OVERRIDE; 27 virtual bool Decrypt(base::StringPiece nonce, 28 base::StringPiece associated_data, 29 base::StringPiece ciphertext, 33 base::StringPiece associated_data, 34 base::StringPiece ciphertext) OVERRIDE; 35 virtual base::StringPiece GetKey() const OVERRIDE; 36 virtual base::StringPiece GetNoncePrefix() const OVERRIDE;
|
null_encrypter.h | 23 virtual bool SetKey(base::StringPiece key) OVERRIDE; 24 virtual bool SetNoncePrefix(base::StringPiece nonce_prefix) OVERRIDE; 25 virtual bool Encrypt(base::StringPiece nonce, 26 base::StringPiece associated_data, 27 base::StringPiece plaintext, 30 base::StringPiece associated_data, 31 base::StringPiece plaintext) OVERRIDE; 36 virtual base::StringPiece GetKey() const OVERRIDE; 37 virtual base::StringPiece GetNoncePrefix() const OVERRIDE;
|
null_decrypter.cc | 9 using base::StringPiece; 16 bool NullDecrypter::SetKey(StringPiece key) { return key.empty(); } 18 bool NullDecrypter::SetNoncePrefix(StringPiece nonce_prefix) { 22 bool NullDecrypter::Decrypt(StringPiece /*nonce*/, 23 StringPiece associated_data, 24 StringPiece ciphertext, 34 StringPiece plaintext = reader.ReadRemainingPayload(); 48 StringPiece associated_data, 49 StringPiece ciphertext) { 59 StringPiece plaintext = reader.ReadRemainingPayload() [all...] |
/external/chromium_org/mojo/common/ |
common_type_converters.cc | 10 String TypeConverter<String, base::StringPiece>::ConvertFrom( 11 const base::StringPiece& input, 18 base::StringPiece TypeConverter<String, base::StringPiece>::ConvertTo( 20 return input.is_null() ? base::StringPiece() : 21 base::StringPiece(&input[0], input.size());
|
/external/chromium/base/ |
string_piece_unittest.cc | 15 ASSERT_TRUE( (StringPiece((x)) op StringPiece((y)))); \ 16 ASSERT_TRUE( (StringPiece((x)).compare(StringPiece((y))) op 0)) 19 ASSERT_FALSE(StringPiece((x)) op StringPiece((y))); \ 20 ASSERT_FALSE(StringPiece((x)).compare(StringPiece((y))) op 0) 97 StringPiece a("abcdefghijklmnopqrstuvwxyz"); 98 StringPiece b("abc") [all...] |
string_piece.h | 4 // Copied from strings/stringpiece.h with modifications 8 // Functions or methods may use const StringPiece& parameters to accept either 10 // a StringPiece. The implicit conversion means that it is often appropriate 12 // StringPiece as would be appropriate for most other Google classes. 14 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary 29 class BASE_API StringPiece { 47 // in a "const char*" or a "string" wherever a "StringPiece" is 49 StringPiece() : ptr_(NULL), length_(0) { } 50 StringPiece(const char* str) 52 StringPiece(const std::string& str [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/ |
string_piece.h | 4 // Copied from strings/stringpiece.h with modifications 8 // Functions or methods may use const StringPiece& parameters to accept either 10 // a StringPiece. The implicit conversion means that it is often appropriate 12 // StringPiece as would be appropriate for most other Google classes. 14 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary 29 class StringPiece { 47 // in a "const char*" or a "string" wherever a "StringPiece" is 49 StringPiece() : ptr_(NULL), length_(0) { } 50 StringPiece(const char* str) 52 StringPiece(const std::string& str [all...] |
/external/chromium_org/third_party/re2/re2/ |
stringpiece.h | 7 // Functions or methods may use const StringPiece& parameters to accept either 9 // a StringPiece. The implicit conversion means that it is often appropriate 11 // StringPiece as would be appropriate for most other Google classes. 13 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary 32 class StringPiece { 39 // in a "const char*" or a "string" wherever a "StringPiece" is 41 StringPiece() : ptr_(NULL), length_(0) { } 42 StringPiece(const char* str) 44 StringPiece(const std::string& str) 46 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { [all...] |
/external/regex-re2/re2/ |
stringpiece.h | 7 // Functions or methods may use const StringPiece& parameters to accept either 9 // a StringPiece. The implicit conversion means that it is often appropriate 11 // StringPiece as would be appropriate for most other Google classes. 13 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary 29 class StringPiece { 36 // in a "const char*" or a "string" wherever a "StringPiece" is 38 StringPiece() : ptr_(NULL), length_(0) { } 39 StringPiece(const char* str) 41 StringPiece(const std::string& str) 43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { [all...] |
/external/chromium/net/tools/flip_server/ |
string_piece_utils.h | 17 size_t operator()(const base::StringPiece& sp) const { 20 for (base::StringPiece::const_iterator it = sp.begin(); 29 static bool EqualIgnoreCase(const base::StringPiece& piece1, 30 const base::StringPiece& piece2) { 31 base::StringPiece::const_iterator p1i = piece1.begin(); 32 base::StringPiece::const_iterator p2i = piece2.begin(); 45 static void RemoveWhitespaceContext(base::StringPiece* piece1) { 46 base::StringPiece::const_iterator c = piece1->begin(); 47 base::StringPiece::const_iterator e = piece1->end(); 52 *piece1 = base::StringPiece(c, e-c) [all...] |
split.cc | 17 void SplitStringPieceToVector(const base::StringPiece& full, 19 std::vector<base::StringPiece>* vec, 26 base::StringPiece::const_iterator s = full.begin(); 27 base::StringPiece::const_iterator e = s; 31 vec->push_back(base::StringPiece(s, e - s)); 40 vec->push_back(base::StringPiece(s, e - s)); 44 base::StringPiece::const_iterator s = full.begin(); 45 base::StringPiece::const_iterator e = s; 56 vec->push_back(base::StringPiece(s, e - s)); 65 vec->push_back(base::StringPiece(s, e - s)) [all...] |
/external/chromium_org/net/tools/balsa/ |
string_piece_utils.h | 16 size_t operator()(const base::StringPiece& sp) const { 19 for (base::StringPiece::const_iterator it = sp.begin(); 28 static bool EqualIgnoreCase(const base::StringPiece& piece1, 29 const base::StringPiece& piece2) { 30 base::StringPiece::const_iterator p1i = piece1.begin(); 31 base::StringPiece::const_iterator p2i = piece2.begin(); 46 static void RemoveWhitespaceContext(base::StringPiece* piece1) { 47 base::StringPiece::const_iterator c = piece1->begin(); 48 base::StringPiece::const_iterator e = piece1->end(); 53 *piece1 = base::StringPiece(c, e-c) [all...] |
split.cc | 17 void SplitStringPieceToVector(const base::StringPiece& full, 19 std::vector<base::StringPiece>* vec, 26 base::StringPiece::const_iterator s = full.begin(); 27 base::StringPiece::const_iterator e = s; 31 vec->push_back(base::StringPiece(s, e - s)); 40 vec->push_back(base::StringPiece(s, e - s)); 44 base::StringPiece::const_iterator s = full.begin(); 45 base::StringPiece::const_iterator e = s; 56 vec->push_back(base::StringPiece(s, e - s)); 65 vec->push_back(base::StringPiece(s, e - s)) [all...] |
/external/chromium/net/base/ |
dnssec_keyset.h | 24 bool AddKey(const base::StringPiece& dnskey); 32 bool CheckSignature(const base::StringPiece& name, 33 const base::StringPiece& zone, 34 const base::StringPiece& signature, 36 const std::vector<base::StringPiece>& rrdatas); 40 static uint16 DNSKEYToKeyID(const base::StringPiece& dnskey); 48 base::StringPiece signature_algorithm, 49 base::StringPiece signature, 50 base::StringPiece public_key, 51 base::StringPiece signed_data) [all...] |
dnssec_chain_verifier.h | 40 const base::StringPiece& chain); 55 const std::vector<base::StringPiece>& rrdatas() const; 62 ParseTLSTXTRecord(base::StringPiece rrdata); 65 static unsigned MatchingLabels(base::StringPiece a, 66 base::StringPiece b); 73 bool VariableLength16(base::StringPiece*); 74 bool ReadName(base::StringPiece*); 76 bool ReadAheadEntryKey(base::StringPiece*); 77 bool ReadAheadKey(base::StringPiece*, uint8 entry_key); 78 bool ReadDNSKEYs(std::vector<base::StringPiece>*, bool is_root) [all...] |
/external/chromium_org/crypto/ |
hkdf.h | 33 HKDF(const base::StringPiece& secret, 34 const base::StringPiece& salt, 35 const base::StringPiece& info, 40 base::StringPiece client_write_key() const { 43 base::StringPiece client_write_iv() const { 46 base::StringPiece server_write_key() const { 49 base::StringPiece server_write_iv() const { 56 base::StringPiece client_write_key_; 57 base::StringPiece server_write_key_; 58 base::StringPiece client_write_iv_ [all...] |
/art/runtime/base/ |
stringpiece.cc | 17 #include "stringpiece.h" 24 void StringPiece::CopyToString(std::string* target) const { 28 int StringPiece::copy(char* buf, size_type n, size_type pos) const { 34 StringPiece::size_type StringPiece::find(const StringPiece& s, size_type pos) const { 44 int StringPiece::compare(const StringPiece& x) const { 53 StringPiece::size_type StringPiece::find(char c, size_type pos) const [all...] |