/external/regex-re2/re2/ |
D | stringpiece.h | 29 class StringPiece { 38 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function 39 StringPiece(const char* str) in StringPiece() function 41 StringPiece(const std::string& str) in StringPiece() function 43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() function 79 int compare(const StringPiece& x) const { in compare() 104 bool starts_with(const StringPiece& x) const { in starts_with() 110 bool ends_with(const StringPiece& x) const { in ends_with() 141 int find(const StringPiece& s, size_type pos = 0) const; 143 int rfind(const StringPiece& s, size_type pos = npos) const; [all …]
|
/external/chromium_org/net/cert/ |
D | asn1_util.cc | 11 bool ParseElement(base::StringPiece* in, in ParseElement() 13 base::StringPiece* out, in ParseElement() 25 *out = base::StringPiece(); in ParseElement() 38 *out = base::StringPiece(); in ParseElement() 79 *out = base::StringPiece(in->data(), len); in ParseElement() 84 bool GetElement(base::StringPiece* in, in GetElement() 86 base::StringPiece* out) { in GetElement() 98 static bool SeekToSPKI(base::StringPiece* cert) { in SeekToSPKI() 114 base::StringPiece certificate; in SeekToSPKI() 122 base::StringPiece tbs_certificate; in SeekToSPKI() [all …]
|
/external/chromium_org/net/tools/balsa/ |
D | balsa_headers.h | 137 void WriteToContiguousBuffer(const base::StringPiece& sp); 149 base::StringPiece Write(const base::StringPiece& sp, 274 typedef std::vector<base::StringPiece> HeaderTokenList; 299 typedef std::pair<base::StringPiece, base::StringPiece> StringPiecePair; 398 base::StringPiece(stream_begin + line.first_char_idx, in Lookup() 400 base::StringPiece(stream_begin + line.value_begin_idx, in Lookup() 555 const base::StringPiece& key); 565 base::StringPiece key_; 623 void HackHeader(const base::StringPiece& key, const base::StringPiece& value); 634 void HackAppendToHeader(const base::StringPiece& key, [all …]
|
D | string_piece_utils.h | 19 size_t operator()(const base::StringPiece& sp) const { in operator() 22 for (base::StringPiece::const_iterator it = sp.begin(); in operator() 29 bool operator()(const base::StringPiece& sp1, in operator() 30 const base::StringPiece& sp2) const { in operator() 44 size_t operator()(const base::StringPiece& sp) const { 47 for (base::StringPiece::const_iterator it = sp.begin(); 57 static bool EqualIgnoreCase(const base::StringPiece& piece1, in EqualIgnoreCase() 58 const base::StringPiece& piece2) { in EqualIgnoreCase() 59 base::StringPiece::const_iterator p1i = piece1.begin(); in EqualIgnoreCase() 60 base::StringPiece::const_iterator p2i = piece2.begin(); in EqualIgnoreCase() [all …]
|
/external/chromium_org/third_party/re2/re2/ |
D | stringpiece.h | 32 class StringPiece { 41 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function 42 StringPiece(const char* str) in StringPiece() function 44 StringPiece(const std::string& str) in StringPiece() function 46 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() function 82 int compare(const StringPiece& x) const { in compare() 107 bool starts_with(const StringPiece& x) const { in starts_with() 113 bool ends_with(const StringPiece& x) const { in ends_with() 144 int find(const StringPiece& s, size_type pos = 0) const; 146 int rfind(const StringPiece& s, size_type pos = npos) const; [all …]
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/ |
D | string_piece.h | 29 class StringPiece { 49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function 50 StringPiece(const char* str) in StringPiece() function 52 StringPiece(const std::string& str) in StringPiece() function 54 StringPiece(const char* offset, size_type len) in StringPiece() function 94 int compare(const StringPiece& x) const { in compare() 113 bool starts_with(const StringPiece& x) const { in starts_with() 119 bool ends_with(const StringPiece& x) const { in ends_with() 138 size_type find(const StringPiece& s, size_type pos = 0) const; 140 size_type rfind(const StringPiece& s, size_type pos = npos) const; [all …]
|
D | string_piece.cc | 14 typedef StringPiece::size_type size_type; 16 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() 21 bool operator==(const StringPiece& x, const StringPiece& y) { in operator ==() 25 return StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0; in operator ==() 28 void StringPiece::CopyToString(std::string* target) const { in CopyToString() 32 void StringPiece::AppendToString(std::string* target) const { in AppendToString() 37 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy() 43 size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find() 53 size_type StringPiece::find(char c, size_type pos) const { in find() 61 size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind() [all …]
|
/external/chromium_org/crypto/ |
D | hkdf.h | 35 HKDF(const base::StringPiece& secret, 36 const base::StringPiece& salt, 37 const base::StringPiece& info, 43 base::StringPiece client_write_key() const { in client_write_key() 46 base::StringPiece client_write_iv() const { in client_write_iv() 49 base::StringPiece server_write_key() const { in server_write_key() 52 base::StringPiece server_write_iv() const { in server_write_iv() 55 base::StringPiece subkey_secret() const { in subkey_secret() 62 base::StringPiece client_write_key_; 63 base::StringPiece server_write_key_; [all …]
|
/external/chromium_org/content/child/ |
D | site_isolation_policy.cc | 18 using base::StringPiece; 52 bool MatchesSignature(StringPiece data, in MatchesSignature() 53 const StringPiece signatures[], in MatchesSignature() 58 if (offset == base::StringPiece::npos) in MatchesSignature() 65 const StringPiece& signature = signatures[sig_index]; in MatchesSignature() 216 StringPiece data(raw_data, raw_length); in ShouldBlockResponse() 388 bool SiteIsolationPolicy::SniffForHTML(StringPiece data) { in SniffForHTML() 401 static const StringPiece kHtmlSignatures[] = { in SniffForHTML() 402 StringPiece("<!DOCTYPE html"), // HTML5 spec in SniffForHTML() 403 StringPiece("<script"), // HTML5 spec, Mozilla in SniffForHTML() [all …]
|
D | site_isolation_policy_unittest.cc | 13 using base::StringPiece; 73 StringPiece html_data(" \t\r\n <HtMladfokadfkado"); in TEST() 74 StringPiece comment_html_data(" <!-- this is comment --> <html><body>"); in TEST() 75 StringPiece two_comments_html_data( in TEST() 77 StringPiece mixed_comments_html_data( in TEST() 79 StringPiece non_html_data(" var name=window.location;\nadfadf"); in TEST() 80 StringPiece comment_js_data(" <!-- this is comment -> document.write(1); "); in TEST() 81 StringPiece empty_data(""); in TEST() 95 StringPiece xml_data(" \t \r \n <?xml version=\"1.0\"?>\n <catalog"); in TEST() 96 StringPiece non_xml_data(" var name=window.location;\nadfadf"); in TEST() [all …]
|
/external/regex-re2/re2/testing/ |
D | tester.h | 54 TestInstance(const StringPiece& regexp, Prog::MatchKind kind, 62 bool RunCase(const StringPiece& text, const StringPiece& context, 68 const StringPiece& text, const StringPiece& context, 72 void LogMatch(const char* prefix, Engine e, const StringPiece& text, 73 const StringPiece& context, Prog::Anchor anchor); 75 const StringPiece& regexp_str_; // regexp being tested 93 explicit Tester(const StringPiece& regexp); 100 bool TestCase(const StringPiece& text, const StringPiece& context, 104 bool TestInput(const StringPiece& text); 107 bool TestInputInContext(const StringPiece& text, const StringPiece& context); [all …]
|
/external/chromium_org/third_party/re2/re2/testing/ |
D | tester.h | 54 TestInstance(const StringPiece& regexp, Prog::MatchKind kind, 62 bool RunCase(const StringPiece& text, const StringPiece& context, 68 const StringPiece& text, const StringPiece& context, 72 void LogMatch(const char* prefix, Engine e, const StringPiece& text, 73 const StringPiece& context, Prog::Anchor anchor); 75 const StringPiece& regexp_str_; // regexp being tested 93 explicit Tester(const StringPiece& regexp); 100 bool TestCase(const StringPiece& text, const StringPiece& context, 104 bool TestInput(const StringPiece& text); 107 bool TestInputInContext(const StringPiece& text, const StringPiece& context); [all …]
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
D | stringpiece.h | 52 class U_COMMON_API StringPiece : public UMemory { 62 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function 68 StringPiece(const char* str); 74 StringPiece(const std::string& str) in StringPiece() function 83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function 90 StringPiece(const StringPiece& x, int32_t pos); 99 StringPiece(const StringPiece& x, int32_t pos, int32_t len); 196 StringPiece substr(int32_t pos, int32_t len = npos) const { 197 return StringPiece(*this, pos, len); 209 operator==(const StringPiece& x, const StringPiece& y); [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | stringpiece.h | 52 class U_COMMON_API StringPiece : public UMemory { 62 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function 68 StringPiece(const char* str); 74 StringPiece(const std::string& str) in StringPiece() function 83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() function 90 StringPiece(const StringPiece& x, int32_t pos); 99 StringPiece(const StringPiece& x, int32_t pos, int32_t len); 196 StringPiece substr(int32_t pos, int32_t len = npos) const { 197 return StringPiece(*this, pos, len); 209 operator==(const StringPiece& x, const StringPiece& y); [all …]
|
/external/regex-re2/util/ |
D | stringpiece.cc | 8 using re2::StringPiece; 10 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() 15 bool StringPiece::_equal(const StringPiece& x, const StringPiece& y) { in _equal() 32 void StringPiece::CopyToString(string* target) const { in CopyToString() 36 int StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy() 42 int StringPiece::find(const StringPiece& s, size_type pos) const { in find() 52 int StringPiece::find(char c, size_type pos) const { in find() 60 int StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind() 70 int StringPiece::rfind(char c, size_type pos) const { in rfind() 81 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr() [all …]
|
/external/chromium_org/third_party/re2/util/ |
D | stringpiece.cc | 8 using re2::StringPiece; 10 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() 15 bool StringPiece::_equal(const StringPiece& x, const StringPiece& y) { in _equal() 32 void StringPiece::CopyToString(string* target) const { in CopyToString() 36 int StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy() 42 int StringPiece::find(const StringPiece& s, size_type pos) const { in find() 52 int StringPiece::find(char c, size_type pos) const { in find() 60 int StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind() 70 int StringPiece::rfind(char c, size_type pos) const { in rfind() 81 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr() [all …]
|
/external/chromium_org/net/quic/crypto/ |
D | null_encrypter.cc | 9 using base::StringPiece; 18 bool NullEncrypter::SetKey(StringPiece key) { return key.empty(); } in SetKey() 20 bool NullEncrypter::SetNoncePrefix(StringPiece nonce_prefix) { in SetNoncePrefix() 25 StringPiece /*nonce*/, in Encrypt() argument 26 StringPiece associated_data, in Encrypt() 27 StringPiece plaintext, in Encrypt() 39 StringPiece associated_data, in EncryptPacket() 40 StringPiece plaintext) { in EncryptPacket() 43 Encrypt(StringPiece(), associated_data, plaintext, buffer); in EncryptPacket() 59 StringPiece NullEncrypter::GetKey() const { return StringPiece(); } in GetKey() [all …]
|
D | null_decrypter.cc | 9 using base::StringPiece; 16 bool NullDecrypter::SetKey(StringPiece key) { return key.empty(); } in SetKey() 18 bool NullDecrypter::SetNoncePrefix(StringPiece nonce_prefix) { in SetNoncePrefix() 22 bool NullDecrypter::Decrypt(StringPiece /*nonce*/, in Decrypt() argument 23 StringPiece associated_data, in Decrypt() 24 StringPiece ciphertext, in Decrypt() 34 StringPiece plaintext = reader.ReadRemainingPayload(); in Decrypt() 48 StringPiece associated_data, in DecryptPacket() 49 StringPiece ciphertext) { in DecryptPacket() 59 StringPiece plaintext = reader.ReadRemainingPayload(); in DecryptPacket() [all …]
|
/external/chromium_org/base/debug/ |
D | crash_logging.h | 28 BASE_EXPORT void SetCrashKeyValue(const base::StringPiece& key, 29 const base::StringPiece& value); 30 BASE_EXPORT void ClearCrashKey(const base::StringPiece& key); 33 BASE_EXPORT void SetCrashKeyToStackTrace(const base::StringPiece& key, 39 BASE_EXPORT void SetCrashKeyFromAddresses(const base::StringPiece& key, 47 ScopedCrashKey(const base::StringPiece& key, const base::StringPiece& value); 77 BASE_EXPORT const CrashKey* LookupCrashKey(const base::StringPiece& key); 81 typedef void (*SetCrashKeyValueFuncT)(const base::StringPiece&, 82 const base::StringPiece&); 83 typedef void (*ClearCrashKeyValueFuncT)(const base::StringPiece&); [all …]
|
/external/chromium_org/chrome/test/logging/win/ |
D | log_file_printer.cc | 57 void WriteLocationToStream(const base::StringPiece& file, in WriteLocationToStream() 60 base::StringPiece filename(file); in WriteLocationToStream() 62 if (last_slash_pos != base::StringPiece::npos) in WriteLocationToStream() 101 const base::StringPiece& message) OVERRIDE; 108 const base::StringPiece& file, 109 const base::StringPiece& message) OVERRIDE; 112 const base::StringPiece& name, 115 const base::StringPiece& extra, 122 const base::StringPiece& level, 123 const base::StringPiece& context); [all …]
|
/external/chromium_org/tools/gn/ |
D | c_include_iterator.cc | 21 bool StartsWith(const base::StringPiece& str, const base::StringPiece& prefix) { in StartsWith() 22 base::StringPiece extracted = str.substr(0, prefix.size()); in StartsWith() 29 base::StringPiece TrimLeadingWhitespace(const base::StringPiece& str) { in TrimLeadingWhitespace() 48 bool ShouldCountTowardNonIncludeLines(const base::StringPiece& line) { in ShouldCountTowardNonIncludeLines() 64 IncludeType ExtractInclude(const base::StringPiece& line, in ExtractInclude() 65 base::StringPiece* path, in ExtractInclude() 72 base::StringPiece trimmed = TrimLeadingWhitespace(line); in ExtractInclude() 76 base::StringPiece contents; in ExtractInclude() 77 if (StartsWith(trimmed, base::StringPiece(kInclude, kIncludeLen))) in ExtractInclude() 79 else if (StartsWith(trimmed, base::StringPiece(kImport, kImportLen))) in ExtractInclude() [all …]
|
/external/chromium_org/net/tools/quic/ |
D | quic_in_memory_cache.h | 49 const base::StringPiece body() const { return base::StringPiece(body_); } in body() 57 void set_body(base::StringPiece body) { in set_body() 78 void AddSimpleResponse(base::StringPiece method, 79 base::StringPiece path, 80 base::StringPiece version, 81 base::StringPiece response_code, 82 base::StringPiece response_detail, 83 base::StringPiece body); 88 base::StringPiece response_body); 91 void AddSpecialResponse(base::StringPiece method, [all …]
|
/external/chromium_org/third_party/icu/source/common/ |
D | stringpiece.cpp | 16 StringPiece::StringPiece(const char* str) in StringPiece() function in StringPiece 19 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { in StringPiece() function in StringPiece 29 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { in StringPiece() function in StringPiece 44 void StringPiece::set(const char* str) { in set() 53 operator==(const StringPiece& x, const StringPiece& y) { in operator ==() 78 const int32_t StringPiece::npos = 0x7fffffff;
|
/external/icu/icu4c/source/common/ |
D | stringpiece.cpp | 16 StringPiece::StringPiece(const char* str) in StringPiece() function in StringPiece 19 StringPiece::StringPiece(const StringPiece& x, int32_t pos) { in StringPiece() function in StringPiece 29 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) { in StringPiece() function in StringPiece 44 void StringPiece::set(const char* str) { in set() 53 operator==(const StringPiece& x, const StringPiece& y) { in operator ==() 71 const int32_t StringPiece::npos = 0x7fffffff;
|
/external/chromium_org/base/strings/ |
D | string_piece.h | 44 typedef BasicStringPiece<std::string> StringPiece; typedef 58 BASE_EXPORT void CopyToString(const StringPiece& self, std::string* target); 61 BASE_EXPORT void AppendToString(const StringPiece& self, std::string* target); 64 BASE_EXPORT size_t copy(const StringPiece& self, 73 BASE_EXPORT size_t find(const StringPiece& self, 74 const StringPiece& s, 79 BASE_EXPORT size_t find(const StringPiece& self, 86 BASE_EXPORT size_t rfind(const StringPiece& self, 87 const StringPiece& s, 92 BASE_EXPORT size_t rfind(const StringPiece& self, [all …]
|