/external/marisa-trie/tests/ |
unit-test.cc | 153 ASSERT(str.substr(0, 2).length() == 2); 154 ASSERT(str.substr(0, 2)[0] == 'x'); 155 ASSERT(str.substr(0, 2)[1] == 'y'); 165 ASSERT(rstr.substr(1, 2).length() == 2); 166 ASSERT(rstr.substr(1, 2)[0] == 'y'); 167 ASSERT(rstr.substr(1, 2)[1] == 'x'); 176 ASSERT(marisa::String("abcde").substr(1, 2) == marisa::String("bc"));
|
/external/marisa-trie/v0_1_5/tests/ |
unit-test.cc | 155 ASSERT(str.substr(0, 2).length() == 2); 156 ASSERT(str.substr(0, 2)[0] == 'x'); 157 ASSERT(str.substr(0, 2)[1] == 'y'); 167 ASSERT(rstr.substr(1, 2).length() == 2); 168 ASSERT(rstr.substr(1, 2)[0] == 'y'); 169 ASSERT(rstr.substr(1, 2)[1] == 'x'); 178 ASSERT(marisa_alpha::String("abcde").substr(1, 2) ==
|
/external/chromium/base/ |
string_piece_unittest.cc | 389 ASSERT_EQ(a.substr(0, 3), b); 390 ASSERT_EQ(a.substr(23), c); 391 ASSERT_EQ(a.substr(23, 3), c); 392 ASSERT_EQ(a.substr(23, 99), c); 393 ASSERT_EQ(a.substr(0), a); 394 ASSERT_EQ(a.substr(3, 2), "de"); 396 ASSERT_EQ(a.substr(99, 2), e); 397 ASSERT_EQ(d.substr(99), e); 398 ASSERT_EQ(d.substr(0, 99), e); 399 ASSERT_EQ(d.substr(99, 99), e) [all...] |
/external/chromium_org/base/strings/ |
string_piece_unittest.cc | 451 ASSERT_EQ(a.substr(0, 3), b); 452 ASSERT_EQ(a.substr(23), c); 453 ASSERT_EQ(a.substr(23, 3), c); 454 ASSERT_EQ(a.substr(23, 99), c); 455 ASSERT_EQ(a.substr(0), a); 456 ASSERT_EQ(a.substr(3, 2), "de"); 458 ASSERT_EQ(a.substr(99, 2), e); 459 ASSERT_EQ(d.substr(99), e); 460 ASSERT_EQ(d.substr(0, 99), e); 461 ASSERT_EQ(d.substr(99, 99), e) [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
phonenumbermatcher.cc | 100 number, candidate.substr(found, candidate.length() - found)) 105 string normalized_extension(candidate.substr(found, 156 return HasPrefixString(normalized_candidate.substr( 165 return normalized_candidate.substr(from_index) 536 string first_group_only = candidate.substr(0, group_start_index); 561 string without_last_group = candidate.substr(0, last_group_start); 591 text_.substr(offset + candidate.size()))); 639 reg_exps_->regexp_factory_for_pattern_->CreateInput(text_.substr(index))); 714 SplitStringUsing(rfc3966_format.substr(start_index, [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/ |
actions.c | 13 Symbol_init(Symbol *r, const SubStr *str) 22 Symbol_find(const SubStr *str) 461 static unsigned char unescape(SubStr *s){ 494 static Range *getRange(SubStr *s){ 513 RegExp *strToRE(SubStr s){ 524 RegExp *strToCaseInsensitiveRE(SubStr s){ 551 RegExp *ranToRE(SubStr s){ 562 RegExp *invToRE(SubStr s) 565 SubStr *ss; 588 SubStr *ss = SubStr_new("[\\000-\\377]", strlen("[\\000-\\377]")) [all...] |
/external/chromium/net/base/ |
net_util_unittest.cc | [all...] |
/external/chromium_org/net/base/ |
net_util_unittest.cc | [all...] |
/external/chromium_org/chrome/browser/extensions/ |
extension_apitest.cc | 44 request.relative_url.substr(query_string_pos + 1); 60 request.relative_url.substr(query_string_pos + 1); 86 request.relative_url.substr(query_string_pos + 1); 104 request.relative_url.substr(query_string_pos + 1); 116 std::string header_name = header.substr(0, colon_pos); 118 std::string header_value = header.substr(colon_pos + 2);
|
/external/chromium_org/extensions/common/ |
url_pattern.cc | 107 return wildcard_index == path_last ? path.substr(0, path_last) : path; 175 if (!SetScheme(pattern.substr(0, scheme_end_pos))) 216 host_ = pattern.substr(host_start_pos, host_end_pos - host_start_pos); 231 SetPath(pattern.substr(path_start_pos)); 235 if (!SetPort(host_.substr(port_pos + 1))) 237 host_ = host_.substr(0, port_pos);
|
/external/chromium_org/third_party/sqlite/src/test/ |
sort.test | 112 SELECT v FROM t1 ORDER BY substr(v,2,999); 117 SELECT v FROM t1 ORDER BY substr(v,2,999)+0.0; 122 SELECT v FROM t1 ORDER BY substr(v,2,999) DESC; 127 SELECT v FROM t1 ORDER BY substr(v,2,999)+0.0 DESC; 207 SELECT substr(v,2,99) FROM t1 ORDER BY 1; 212 # SELECT substr(v,2,99)+0.0 FROM t1 ORDER BY 1;
|
/build/tools/droiddoc/templates-pdk/assets/ |
search_autocomplete.js | 176 s = s.substr(tmp + 1); 205 var partsAfter = _countChar(labelLower.substr(t + 1), '.'); 211 var partsAfter = _countChar(labelLower.substr(t + 1), '.');
|
/external/chromium/chrome/browser/sync/util/ |
nigori.cc | 215 std::string iv(input.substr(0, kIvSize)); 216 std::string ciphertext(input.substr(kIvSize, 218 std::string hash(input.substr(input.size() - kHashSize, kHashSize));
|
/external/chromium/net/tools/dump_cache/ |
cache_dumper.cc | 55 std::wstring subdir = path.substr(0, pos); 73 std::string url = urlpos > 0 ? key.substr(urlpos) : key; 182 url = url.substr(pos);
|
/external/chromium_org/net/dns/ |
record_rdata.cc | 38 if (!parser.ReadName(data.substr(kSrvRecordMinimumSize).begin(), 199 rdata->texts_.push_back(data.substr(i + 1, length).as_string()); 252 base::StringPiece bitmap_data = data.substr(next_domain_length + 2);
|
/external/chromium_org/net/quic/ |
quic_stream_sequencer.cc | 211 it->second.substr(frame_offset))); 242 frames_.insert(make_pair(end_offset, it->second.substr(delta))); 285 string new_data = it->second.substr(bytes_consumed);
|
/external/chromium_org/net/tools/dump_cache/ |
cache_dumper.cc | 60 base::FilePath::StringType subdir = path.value().substr(0, pos); 82 std::string url = urlpos > 0 ? key.substr(urlpos) : key; 190 url = url.substr(pos);
|
/external/chromium_org/sync/util/ |
nigori.cc | 206 std::string iv(input.substr(0, kIvSize)); 207 std::string ciphertext(input.substr(kIvSize, 209 std::string hash(input.substr(input.size() - kHashSize, kHashSize));
|
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/ |
data_socket.cc | 91 return request_path_.substr(args + 1); 99 return request_path_.substr(0, args).compare(path) == 0; 126 data_ = request_headers_.substr(found + kHeaderTerminatorLength);
|
/external/chromium_org/ui/views/controls/ |
styled_label.cc | 232 chunk = chunk.substr(0, std::min(chunk.size(), range.end() - position)); 244 chunk = chunk.substr(0, range.start() - position); 266 remaining_string = remaining_string.substr(chunk.size());
|
/external/clang/lib/Frontend/ |
Warnings.cpp | 107 Opt = Opt.substr(3); 147 Specifier = Opt.substr(6); 175 Specifier = Opt.substr(13);
|
/external/doclava/res/assets/templates/assets/ |
search_autocomplete.js | 176 s = s.substr(tmp + 1); 205 var partsAfter = _countChar(labelLower.substr(t + 1), '.'); 211 var partsAfter = _countChar(labelLower.substr(t + 1), '.');
|
/external/llvm/utils/TableGen/ |
CodeGenInstruction.cpp | 158 std::string OpName = Op.substr(1); 164 SubOpName = OpName.substr(DotIdx+1); 167 OpName = OpName.substr(0, DotIdx); 201 std::string Tok = CStr.substr(start, wpos - start); 203 std::string Name = CStr.substr(wpos+1); 207 Name = Name.substr(wpos); 222 std::string Name = CStr.substr(start, pos - start); 228 std::string DestOpName = Name.substr(0, wpos); 231 Name = CStr.substr(pos+1); 236 std::string SrcOpName = Name.substr(wpos) [all...] |
/external/oprofile/libpp/ |
parse_filename.cpp | 130 string event_spec = filename.substr(pos + 1); 131 string filename_spec = filename.substr(0, pos); 188 string jitdump = filename_spec.substr(0, pos) + ".jo";
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
BitSet.pm | 68 $bits .= reverse substr(unpack('B*', pack('h', hex $h)), 4); 112 substr($bits, $el, 1, '1'); 164 return (substr $self->bits, $el, 1) eq '1'; 171 substr($bits, $el, 1, '0');
|