substr 27 android_webview/renderer/aw_key_systems.cc return name.substr(0, last_period); substr 248 ash/system/chromeos/session/tray_session_length_limit.cc vertical_layout_label_hours_left_->SetText(hours_str.substr(0, 1)); substr 249 ash/system/chromeos/session/tray_session_length_limit.cc vertical_layout_label_hours_right_->SetText(hours_str.substr(1, 1)); substr 250 ash/system/chromeos/session/tray_session_length_limit.cc vertical_layout_label_minutes_left_->SetText(minutes_str.substr(0, 1)); substr 251 ash/system/chromeos/session/tray_session_length_limit.cc vertical_layout_label_minutes_right_->SetText(minutes_str.substr(1, 1)); substr 252 ash/system/chromeos/session/tray_session_length_limit.cc vertical_layout_label_seconds_left_->SetText(seconds_str.substr(0, 1)); substr 253 ash/system/chromeos/session/tray_session_length_limit.cc vertical_layout_label_seconds_right_->SetText(seconds_str.substr(1, 1)); substr 233 ash/system/date/date_view.cc base::string16 hour = current_time.substr(0, colon_pos); substr 234 ash/system/date/date_view.cc base::string16 minute = current_time.substr(colon_pos + 1); substr 604 ash/wm/lock_state_controller.cc board.substr(0, 8) == "x86-alex" || substr 605 ash/wm/lock_state_controller.cc board.substr(0, 7) == "x86-zgb") { substr 66 base/command_line.cc *switch_string = string.substr(0, equals_position); substr 68 base/command_line.cc *switch_value = string.substr(equals_position + 1); substr 349 base/command_line.cc switches_[switch_key.substr(prefix_length)] = value; substr 353 base/command_line_unittest.cc EXPECT_EQ(program_string, cmd_string.substr(1, program_string.length())); substr 183 base/debug/crash_logging.cc std::string value_string = value.substr(0, crash_key.max_length).as_string(); substr 186 base/debug/crash_logging.cc std::string chunk = value_string.substr(offset, chunk_max_length); substr 92 base/debug/stack_trace_posix.cc text->substr(mangled_start, mangled_end - mangled_start); substr 2257 base/debug/trace_event_impl.cc category = category.substr( substr 2268 base/debug/trace_event_impl.cc category = category.substr(1); substr 89 base/file_util_unittest.cc if (kPathPrefix != target_path.value().substr(0, kPathPrefix.size())) substr 429 base/file_util_unittest.cc std::wstring real_drive_letter = temp_dir_.path().value().substr(0, 2); substr 467 base/file_util_unittest.cc actual_device_path.value().substr(0, new_length)); substr 469 base/file_util_win.cc nt_device_path.value().substr(wcslen(device_path_as_string))); substr 70 base/files/file_path.cc StringType a_letter(a.substr(0, a_letter_pos + 1)); substr 71 base/files/file_path.cc StringType b_letter(b.substr(0, b_letter_pos + 1)); substr 75 base/files/file_path.cc StringType a_rest(a.substr(a_letter_pos + 1)); substr 76 base/files/file_path.cc StringType b_rest(b.substr(b_letter_pos + 1)); substr 373 base/files/file_path.cc return base.path_.substr(dot, StringType::npos); substr 382 base/files/file_path.cc return base.path_.substr(dot, StringType::npos); substr 393 base/files/file_path.cc return FilePath(path_.substr(0, dot)); substr 404 base/files/file_path.cc return FilePath(path_.substr(0, dot)); substr 481 base/files/file_path.cc without_nuls = component.substr(0, nul_pos); substr 35 base/guid_win.cc return WideToUTF8(guid_string.substr(1, guid_string.length() - 2)); substr 122 base/i18n/break_iterator.cc return string_.substr(prev_, pos_ - prev_); substr 71 base/i18n/break_iterator_unittest.cc const string16 word1(str.substr(0, 10)); substr 72 base/i18n/break_iterator_unittest.cc const string16 word2(str.substr(11, 5)); substr 95 base/i18n/break_iterator_unittest.cc const string16 very_wide_word(str.substr(0, 2)); substr 179 base/i18n/break_iterator_unittest.cc const string16 word1(str.substr(0, 11)); substr 180 base/i18n/break_iterator_unittest.cc const string16 word2(str.substr(11, 5)); substr 200 base/i18n/break_iterator_unittest.cc const string16 very_wide_word(str.substr(0, 3)); substr 277 base/i18n/break_iterator_unittest.cc const string16 line1(str.substr(0, 11)); substr 278 base/i18n/break_iterator_unittest.cc const string16 line2(str.substr(11, 5)); substr 298 base/i18n/break_iterator_unittest.cc const string16 very_wide_line(str.substr(0, 3)); substr 88 base/i18n/rtl.cc if (locale_string.substr(0, 2) != "es") substr 305 base/i18n/rtl.cc text->substr(begin_index, end_index - begin_index + 1); substr 399 base/i18n/rtl.cc return text.substr(begin_index, end_index - begin_index + 1); substr 331 base/i18n/rtl_unittest.cc EXPECT_EQ(ltr_wrap.substr(1, ltr_wrap.length() - 2), input); substr 337 base/i18n/rtl_unittest.cc EXPECT_EQ(rtl_wrap.substr(1, rtl_wrap.length() - 2), input); substr 34 base/ini_parser.cc current_section = line.substr(1); substr 42 base/ini_parser.cc key = line.substr(0, equal); substr 43 base/ini_parser.cc value = line.substr(equal + 1); substr 166 base/linux_util.cc SetLinuxDistro(output.substr(strlen(field))); substr 276 base/nix/mime_util_xdg.cc std::string subdir = entry.substr(1, entry.length() - 2); substr 369 base/nix/mime_util_xdg.cc base::TrimWhitespaceASCII(dirs.substr(pos, epos - pos), base::TRIM_ALL, substr 378 base/nix/mime_util_xdg.cc base::TrimWhitespaceASCII(dirs.substr(pos), base::TRIM_ALL, &dir); substr 441 base/nix/mime_util_xdg.cc AddXDGDataDir(FilePath(xdg_data_dirs.substr(pos, epos - pos))); substr 444 base/nix/mime_util_xdg.cc AddXDGDataDir(FilePath(xdg_data_dirs.substr(pos))); substr 628 base/nix/mime_util_xdg.cc icon_name = mime_type.substr(x_substr_pos + 3); substr 633 base/nix/mime_util_xdg.cc icon_name = mime_type.substr(0, mime_type.find('/')) + "-x-generic"; substr 93 base/process/internal_linux.cc proc_stats->push_back(stats_data.substr(0, open_parens_idx)); substr 96 base/process/internal_linux.cc stats_data.substr(open_parens_idx + 1, substr 101 base/process/internal_linux.cc SplitString(stats_data.substr(close_parens_idx + 2), ' ', &other_stats); substr 737 base/process/process_metrics_linux.cc if (candidate.substr(0,2) == "sd" || candidate.substr(0,2) == "hd") { substr 747 base/process/process_metrics_linux.cc if (candidate.substr(0,6) == "mmcblk") { substr 439 base/strings/safe_sprintf_unittest.cc EXPECT_EQ(std::string(ref).substr(0, kSSizeMax-1), std::string(tmp.get())); substr 140 base/strings/string_piece.h BASE_EXPORT StringPiece substr(const StringPiece& self, substr 143 base/strings/string_piece.h BASE_EXPORT StringPiece16 substr(const StringPiece16& self, substr 338 base/strings/string_piece.h BasicStringPiece substr(size_type pos, substr 340 base/strings/string_piece.h return internal::substr(*this, pos, n); substr 461 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(0, 3), b); substr 462 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(23), c); substr 463 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(23, 3), c); substr 464 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(23, 99), c); substr 465 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(0), a); substr 466 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(3, 2), TestFixture::as_string("de")); substr 468 base/strings/string_piece_unittest.cc ASSERT_EQ(a.substr(99, 2), e); substr 469 base/strings/string_piece_unittest.cc ASSERT_EQ(d.substr(99), e); substr 470 base/strings/string_piece_unittest.cc ASSERT_EQ(d.substr(0, 99), e); substr 471 base/strings/string_piece_unittest.cc ASSERT_EQ(d.substr(99, 99), e); substr 73 base/strings/string_split.cc const STR term = str.substr(begin_index); substr 79 base/strings/string_split.cc const STR term = str.substr(begin_index, end_index - begin_index); substr 108 base/strings/string_split.cc str.substr(last_non_ws_start, i - last_non_ws_start)); substr 124 base/strings/string_split.cc str.substr(last_non_ws_start, length - last_non_ws_start)); substr 189 base/strings/string_util.cc input.substr(first_good_char, last_good_char - first_good_char + 1); substr 240 base/strings/string_util.cc *output = input.substr(0, char_index); substr 560 base/strings/string_util.cc tokens->push_back(str.substr(start)); substr 563 base/strings/string_util.cc tokens->push_back(str.substr(start, end - start)); substr 70 base/sys_info_android.cc bool parsed = base::StringToInt64(str.substr(0, length), &result); substr 93 base/sys_info_linux.cc return line.substr(pos + 2); substr 82 base/test/expectations/expectation.cc out_platform->name = modifier.substr(0, sep).as_string(); substr 83 base/test/expectations/expectation.cc out_platform->variant = modifier.substr(sep + 1).as_string(); substr 665 base/test/launcher/test_launcher.cc negative_test_filter_.push_back(filter_lines[i].substr(1)); substr 678 base/test/launcher/test_launcher.cc SplitString(filter.substr(0, dash_pos), ':', &positive_test_filter_); substr 681 base/test/launcher/test_launcher.cc SplitString(filter.substr(dash_pos + 1), ':', &negative_test_filter_); substr 939 base/test/launcher/test_launcher.cc std::string snippet(full_output.substr(run_pos)); substr 941 base/test/launcher/test_launcher.cc snippet = full_output.substr(run_pos, end_pos - run_pos); substr 43 base/test/launcher/test_result.cc return full_name.substr(dot_pos + 1); substr 49 base/test/launcher/test_result.cc return full_name.substr(0, dot_pos); substr 125 base/test/launcher/test_results_tracker.cc path = FilePath(path_string.substr(colon_pos + 1)); substr 493 base/values.cc current_path.substr(0, delimiter_position), &child_dictionary)) substr 747 base/values.cc if (!GetDictionary(current_path.substr(0, delimiter_position), substr 781 base/values.cc const std::string subdict_path = path.substr(0, delimiter_position); substr 785 base/values.cc result = subdict->RemovePath(path.substr(delimiter_position + 1), substr 104 base/version.cc version_string = wildcard_string.substr(0, wildcard_string.size() - 2); substr 130 base/version.cc wildcard_string.substr(0, wildcard_string.length() - 2), &parsed); substr 95 base/vlog.cc module = module.substr(0, extension_start); substr 598 chrome/app/chrome_main_delegate.cc executable.value().substr(executable.value().size() - 3); substr 2266 chrome/browser/about_flags.cc const std::string experiment_name = internal_name.substr(0, at_index); substr 794 chrome/browser/apps/web_view_interactive_browsertest.cc ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10)); substr 279 chrome/browser/autocomplete/autocomplete_input.cc const base::string16 host(text.substr(parts->host.begin, parts->host.len)); substr 449 chrome/browser/autocomplete/autocomplete_input.cc base::string16 real_url(text.substr(after_scheme_and_colon)); substr 386 chrome/browser/autocomplete/autocomplete_match.cc host = host.substr(prefix_len); substr 157 chrome/browser/autocomplete/autocomplete_provider.cc base::UTF16ToUTF8(input_text.substr(input->parts().host.begin, substr 263 chrome/browser/autocomplete/base_search_provider.cc lookup_text = input_text.substr(contents_index); substr 481 chrome/browser/autocomplete/base_search_provider.cc suggestion.suggestion().substr(input.text().length()); substr 114 chrome/browser/autocomplete/builtin_provider.cc AddMatch(match_string, match_string.substr(match_length), styles); substr 102 chrome/browser/autocomplete/builtin_provider_unittest.cc {kAbout.substr(0, 1), 3, {kURL1, kURL2, kURL3}}, substr 111 chrome/browser/autocomplete/builtin_provider_unittest.cc {kChrome.substr(0, 1), 3, {kURL1, kURL2, kURL3}}, substr 175 chrome/browser/autocomplete/builtin_provider_unittest.cc {kAbout + kSeparator1 + kHostM1.substr(0, 1), 3, {kURLM1, kURLM2, kURLM3}}, substr 176 chrome/browser/autocomplete/builtin_provider_unittest.cc {kAbout + kSeparator2 + kHostM1.substr(0, 2), 3, {kURLM1, kURLM2, kURLM3}}, substr 177 chrome/browser/autocomplete/builtin_provider_unittest.cc {kAbout + kSeparator3 + kHostM1.substr(0, 3), 1, {kURLM1}}, substr 178 chrome/browser/autocomplete/builtin_provider_unittest.cc {kAbout + kSeparator3 + kHostM2.substr(0, 3), 2, {kURLM2, kURLM3}}, substr 184 chrome/browser/autocomplete/builtin_provider_unittest.cc {kChrome + kSeparator1 + kHostM1.substr(0, 1), 3, {kURLM1, kURLM2, kURLM3}}, substr 185 chrome/browser/autocomplete/builtin_provider_unittest.cc {kChrome + kSeparator2 + kHostM1.substr(0, 2), 3, {kURLM1, kURLM2, kURLM3}}, substr 186 chrome/browser/autocomplete/builtin_provider_unittest.cc {kChrome + kSeparator3 + kHostM1.substr(0, 3), 1, {kURLM1}}, substr 187 chrome/browser/autocomplete/builtin_provider_unittest.cc {kChrome + kSeparator3 + kHostM2.substr(0, 3), 2, {kURLM2, kURLM3}}, substr 218 chrome/browser/autocomplete/builtin_provider_unittest.cc {kSettings + kPage1.substr(0, 1), 2, {kURL1, kURL2}}, substr 219 chrome/browser/autocomplete/builtin_provider_unittest.cc {kSettings + kPage1.substr(0, 2), 1, {kURL1}}, substr 220 chrome/browser/autocomplete/builtin_provider_unittest.cc {kSettings + kPage1.substr(0, kPage1.length() - 1), 1, {kURL1}}, substr 150 chrome/browser/autocomplete/history_quick_provider.cc autocomplete_input_.text().substr( substr 290 chrome/browser/autocomplete/history_quick_provider.cc match.fill_into_edit.substr(inline_autocomplete_offset); substr 869 chrome/browser/autocomplete/history_url_provider.cc input.text().substr(input.parts().host.begin, input.parts().host.len))); substr 940 chrome/browser/autocomplete/history_url_provider.cc substr(0, match.input_location + params.input.text().length()); substr 1092 chrome/browser/autocomplete/history_url_provider.cc match.fill_into_edit.substr(inline_autocomplete_offset); substr 123 chrome/browser/autocomplete/keyword_provider.cc return input.substr(0, first_white); substr 1287 chrome/browser/autocomplete/search_provider.cc match.fill_into_edit.substr(inline_autocomplete_offset); substr 474 chrome/browser/autocomplete/search_provider_unittest.cc base::string16 term = term1_.substr(0, term1_.length() - 1); substr 517 chrome/browser/autocomplete/search_provider_unittest.cc base::string16 term = term1_.substr(0, term1_.length() - 1); substr 529 chrome/browser/autocomplete/search_provider_unittest.cc base::string16 term = keyword_term_.substr(0, keyword_term_.length() - 1); substr 2665 chrome/browser/autocomplete/search_provider_unittest.cc base::string16 term = term1_.substr(0, term1_.length() - 1); substr 3242 chrome/browser/autocomplete/search_provider_unittest.cc EXPECT_EQ(url.substr(2), match_inline.inline_autocompletion); substr 3907 chrome/browser/autocomplete/search_provider_unittest.cc base::string16 term = term1_.substr(0, term1_.length() - 1); substr 3916 chrome/browser/autocomplete/search_provider_unittest.cc term = term1_.substr(0, term1_.length() - 1); substr 262 chrome/browser/autocomplete/shortcuts_provider.cc match.fill_into_edit.substr(term_string.length()); substr 281 chrome/browser/autocomplete/shortcuts_provider.cc match.inline_autocompletion = match.fill_into_edit.substr( substr 64 chrome/browser/bookmarks/bookmark_test_helpers.cc std::string node_name = model_string.substr(start_pos, part_length); substr 70 chrome/browser/bookmarks/bookmark_test_helpers.cc tell = node_name.substr(part_length - 2, 2); substr 72 chrome/browser/bookmarks/bookmark_test_helpers.cc node_name = node_name.substr(0, part_length - 2); substr 105 chrome/browser/browsing_data/cookies_tree_model.cc retval += host.substr(0, position); substr 108 chrome/browser/browsing_data/cookies_tree_model.cc retval += host.substr(next_dot + 1, position - (next_dot + 1)); substr 1088 chrome/browser/browsing_data/cookies_tree_model.cc domain = domain.substr(1); substr 349 chrome/browser/chrome_content_browser_client.cc new_host = old_path.substr(1); substr 351 chrome/browser/chrome_content_browser_client.cc new_host = old_path.substr(1, separator - 1); substr 352 chrome/browser/chrome_content_browser_client.cc new_path = old_path.substr(separator); substr 84 chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc file_content_.substr(0, file_content_.size() / 2); substr 357 chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc EXPECT_EQ(expected_data.substr(3, 3), test_delegate_->data_received()); substr 130 chrome/browser/chromeos/drive/file_system/truncate_operation_unittest.cc EXPECT_EQ(std::string(10, '\0'), content.substr(file_size)); substr 346 chrome/browser/chromeos/drive/search_metadata.cc base::string16 pre = text16.substr(0, match_start); substr 347 chrome/browser/chromeos/drive/search_metadata.cc base::string16 match = text16.substr(match_start, match_length); substr 348 chrome/browser/chromeos/drive/search_metadata.cc base::string16 post = text16.substr(match_start + match_length); substr 87 chrome/browser/chromeos/extensions/input_method_api.cc DCHECK(xkb_id.substr(0, prefix_length) == xkb_prefix); substr 88 chrome/browser/chromeos/extensions/input_method_api.cc return xkb_id.substr(prefix_length); substr 256 chrome/browser/chromeos/file_manager/file_tasks.cc task->app_id = result[0].substr(kDriveTaskExtensionPrefixLength); substr 21 chrome/browser/chromeos/file_manager/mime_util.cc !net::GetWellKnownMimeTypeFromExtension(file_extension.substr(1), substr 504 chrome/browser/chromeos/input_method/input_method_util.cc text = StringToUpperASCII(base::UTF8ToUTF16(language_code)).substr( substr 73 chrome/browser/chromeos/login/hwid_checker.cc hwid_without_dashes.substr(0, hwid_without_dashes.length() - 2); substr 75 chrome/browser/chromeos/login/hwid_checker.cc hwid_without_dashes.substr(hwid_without_dashes.length() - 2); substr 124 chrome/browser/chromeos/login/merge_session_load_page.cc command = command.substr(1, command.length() - 2); substr 26 chrome/browser/chromeos/login/user.cc return email.substr(0, i); substr 138 chrome/browser/chromeos/offline/offline_load_page.cc command = command.substr(1, command.length() - 2); substr 35 chrome/browser/chromeos/options/network_property_ui_data.cc recommended_property_key = property_key.substr(0, pos + 1); substr 36 chrome/browser/chromeos/options/network_property_ui_data.cc property_basename = property_key.substr(pos + 1); substr 320 chrome/browser/chromeos/options/vpn_config_view.cc service_name_from_server_ = server.substr(0, n); substr 71 chrome/browser/chromeos/policy/device_local_account.cc const std::string domain_prefix = domain.substr( substr 316 chrome/browser/chromeos/power/cpu_data_collector.cc base::StringToInt(possible_string.substr(2), &max_cpu)) { substr 61 chrome/browser/chromeos/power/peripheral_battery_observer.cc std::string reverse_address = path.substr(header_size, key_len); substr 107 chrome/browser/chromeos/profiles/profile_helper.cc return profile_dir.substr(prefix.length(), substr 212 chrome/browser/chromeos/settings/cros_settings.cc std::string("*").append(canonicalized_email.substr(at_pos)); substr 83 chrome/browser/chromeos/settings/token_encryptor.cc std::string nonce = salt.substr(0, kNonceSize); substr 115 chrome/browser/chromeos/settings/token_encryptor.cc std::string nonce = salt.substr(0, kNonceSize); substr 72 chrome/browser/chromeos/system/automatic_reboot_manager.cc if (!base::StringToDouble(contents.substr(0, contents.find(' ')), &seconds) || substr 487 chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc if (!base::StringToDouble(contents.substr(0, contents.find(' ')), &seconds) || substr 58 chrome/browser/chromeos/system/syslogs_provider.cc key = data->substr(0, equal_sign); substr 93 chrome/browser/chromeos/system/syslogs_provider.cc std::string value = data->substr(0, next_multi); substr 100 chrome/browser/chromeos/system/syslogs_provider.cc std::string value = data->substr(0, endl_pos); substr 116 chrome/browser/chromeos/ui/idle_app_name_notification_view_unittest.cc EXPECT_EQ(name, text.substr(0, name.length())); substr 94 chrome/browser/chromeos/version_loader.cc std::string str = lines[i].substr(std::string(kFirmwarePrefix).size()); substr 97 chrome/browser/chromeos/version_loader.cc return str.substr(found); substr 80 chrome/browser/component_updater/component_updater_configurator.cc if (it->substr(0, found) == test) { substr 81 chrome/browser/component_updater/component_updater_configurator.cc return it->substr(found + 1); substr 98 chrome/browser/content_settings/local_shared_objects_container.cc cookie_domain = cookie_domain.substr(1); substr 76 chrome/browser/crash_upload_list_win.cc message.substr(start_index, end_index - start_index); substr 120 chrome/browser/devtools/adb/android_usb_socket.cc read_buffer_ = read_buffer_.substr(bytes_to_copy); substr 233 chrome/browser/devtools/adb/android_usb_socket.cc read_buffer_ = read_buffer_.substr(bytes_to_copy); substr 165 chrome/browser/devtools/adb_client_socket.cc std::string len = response_.substr(content_pos + 15, substr 184 chrome/browser/devtools/adb_client_socket.cc command_callback_.Run(net::OK, response_.substr(body_pos_)); substr 380 chrome/browser/devtools/adb_client_socket.cc std::string status = data.substr(0, 4); substr 386 chrome/browser/devtools/adb_client_socket.cc data = data.substr(4); substr 392 chrome/browser/devtools/adb_client_socket.cc base::HexStringToInt(data.substr(0, 4), &payload_length)) { substr 393 chrome/browser/devtools/adb_client_socket.cc data = data.substr(4); substr 115 chrome/browser/devtools/adb_web_socket.cc response_buffer_ = response_buffer_.substr(bytes_consumed); substr 143 chrome/browser/devtools/adb_web_socket.cc request_buffer_ = request_buffer_.substr(result); substr 159 chrome/browser/devtools/devtools_adb_bridge.cc std::string package = entries[i].substr(package_prefix.size()); substr 222 chrome/browser/devtools/devtools_adb_bridge.cc std::string socket = path_field.substr(1); substr 228 chrome/browser/devtools/devtools_adb_bridge.cc pid = path_field.substr(socket_name_end + 1); substr 554 chrome/browser/devtools/devtools_adb_bridge.cc std::string name = socket.substr(0, socket.find(channel_pattern)); substr 609 chrome/browser/devtools/devtools_adb_bridge.cc line.substr(pos + std::string(kDumpsysScreenSizePrefix).size())); substr 624 chrome/browser/devtools/devtools_adb_bridge.cc Tokenize(pairs[1].substr(1, pairs[1].size() - 2), ",", &numbers); substr 875 chrome/browser/devtools/devtools_adb_bridge.cc debug_url_ = debug_url_.substr(5); substr 881 chrome/browser/devtools/devtools_adb_bridge.cc frontend_url_ = frontend_url_.substr(0, ws_param); substr 883 chrome/browser/devtools/devtools_adb_bridge.cc frontend_url_ = "https:" + frontend_url_.substr(5); substr 246 chrome/browser/devtools/devtools_file_helper.cc suggested_file_name = suggested_file_name.substr(0, 64); substr 438 chrome/browser/devtools/devtools_targets_ui.cc remote_version = base::Version(browser->version().substr(pos + 7)); substr 132 chrome/browser/download/download_path_reservation_tracker.cc truncated = name.substr(0, CBU16_IS_TRAIL(name[limit]) ? limit - 1 : limit); substr 151 chrome/browser/download/save_package_file_picker.cc extra_extension = suggested_path_copy.FinalExtension().substr(1); substr 195 chrome/browser/drive/drive_api_util.cc token = query.substr(begin_token, end_token - begin_token); substr 203 chrome/browser/drive/drive_api_util.cc token = query.substr(begin_token, end_token - begin_token); substr 95 chrome/browser/drive/drive_app_registry.cc base::FilePath(file_extension.substr(1)).AsUTF8Unsafe(); substr 684 chrome/browser/drive/fake_drive_service.cc new std::string(content_data.substr(i, size))); substr 341 chrome/browser/enumerate_modules_model_win.cc module->name = module->location.substr(last_slash + 1); substr 342 chrome/browser/enumerate_modules_model_win.cc module->location = module->location.substr(0, last_slash + 1); substr 352 chrome/browser/enumerate_modules_model_win.cc module->version = module->version.substr(0, first_space); substr 667 chrome/browser/enumerate_modules_model_win.cc location.substr(prefix.length() - 1); substr 118 chrome/browser/extensions/activity_log/activity_actions.cc set_page_url(GURL(url.substr(strlen(constants::kIncognitoUrl)))); substr 130 chrome/browser/extensions/activity_log/activity_actions.cc set_arg_url(GURL(url.substr(strlen(constants::kIncognitoUrl)))); substr 721 chrome/browser/extensions/api/cast_channel/cast_socket.cc const std::string& ip_address_str = path.substr(2, colon - 2); substr 722 chrome/browser/extensions/api/cast_channel/cast_socket.cc const std::string& port_str = path.substr(colon + 1); substr 125 chrome/browser/extensions/api/cookies/cookies_helpers.cc domain_key.find('.') != 0 ? domain_key : domain_key.substr(1); substr 196 chrome/browser/extensions/api/cookies/cookies_helpers.cc sub_domain = sub_domain.substr(1); substr 528 chrome/browser/extensions/api/developer_private/developer_private_api.cc view->path = url.path().substr(1); substr 1074 chrome/browser/extensions/api/developer_private/developer_private_api.cc project_name = directory_url_str.substr(pos + 1); substr 1075 chrome/browser/extensions/api/developer_private/developer_private_api.cc project_base_url_ = directory_url_str.substr(0, pos + 1); substr 471 chrome/browser/extensions/api/downloads/downloads_api.cc term_str = term_str.substr(1); substr 30 chrome/browser/extensions/api/feedback_private/feedback_private_api.cc return path.substr(arraysize(kFakePathStr) - 1); substr 131 chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc std::string fragment = url.GetContent().substr( substr 174 chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc GURL url(title.substr(prefix.length(), std::string::npos)); substr 341 chrome/browser/extensions/api/messaging/native_message_process_host.cc incoming_data_.substr(kMessageHeaderSize, message_size))); substr 124 chrome/browser/extensions/api/notifications/notifications_api.cc return id.substr(index_of_separator); substr 87 chrome/browser/extensions/api/permissions/permissions_api_helpers.cc std::string permission_name = it->substr(0, delimiter); substr 88 chrome/browser/extensions/api/permissions/permissions_api_helpers.cc std::string permission_arg = it->substr(delimiter + 1); substr 21 chrome/browser/extensions/api/sessions/session_id.cc session_tag = session_id.substr(0, separator); substr 28 chrome/browser/extensions/api/sessions/session_id.cc session_tag.empty() ? session_id : session_id.substr(separator + 1), substr 316 chrome/browser/extensions/api/web_request/form_data_parser.cc content_type_header->substr(0, content_type_header->find(';'))); substr 330 chrome/browser/extensions/api/web_request/form_data_parser.cc boundary = content_type_header->substr( substr 46 chrome/browser/extensions/extension_apitest.cc request.relative_url.substr(query_string_pos + 1); substr 62 chrome/browser/extensions/extension_apitest.cc request.relative_url.substr(query_string_pos + 1); substr 88 chrome/browser/extensions/extension_apitest.cc request.relative_url.substr(query_string_pos + 1); substr 106 chrome/browser/extensions/extension_apitest.cc request.relative_url.substr(query_string_pos + 1); substr 118 chrome/browser/extensions/extension_apitest.cc std::string header_name = header.substr(0, colon_pos); substr 120 chrome/browser/extensions/extension_apitest.cc std::string header_value = header.substr(colon_pos + 2); substr 445 chrome/browser/extensions/extension_protocols.cc : request->url().path().substr(1); substr 483 chrome/browser/extensions/extension_protocols.cc path = path.substr(1); substr 558 chrome/browser/extensions/extension_protocols.cc path.substr(1) == extensions::kGeneratedBackgroundPageFilename) { substr 88 chrome/browser/extensions/extension_view_host_factory.cc extension_id = url.path().substr(1); substr 191 chrome/browser/extensions/extension_warning_set.cc std::string extension_id = message.substr(sizeof(kTranslate) - 1); substr 292 chrome/browser/extensions/extension_web_ui.cc it.key() + url->spec().substr(override.length())); substr 59 chrome/browser/extensions/isolated_app_browsertest.cc request.relative_url.substr(query_string_pos + 1); substr 65 chrome/browser/extensions/isolated_app_browsertest.cc std::string escaped_key(query_string.substr(key_pos.begin, key_pos.len)); substr 67 chrome/browser/extensions/isolated_app_browsertest.cc query_string.substr(value_pos.begin, value_pos.len)); substr 167 chrome/browser/extensions/policy_handlers.cc std::string extension_id = entry_string.substr(0, pos); substr 168 chrome/browser/extensions/policy_handlers.cc std::string update_url = entry_string.substr(pos+1); substr 301 chrome/browser/extensions/updater/local_extension_cache.cc id = basename.substr(0, n); substr 303 chrome/browser/extensions/updater/local_extension_cache.cc version = basename.substr(n + 1, basename.size() - 5 - id.size()); substr 226 chrome/browser/extensions/user_script_master.cc script_file->set_content(content.substr(strlen(base::kUtf8ByteOrderMark))); substr 251 chrome/browser/extensions/user_script_master_unittest.cc EXPECT_EQ(content.substr(3), substr 260 chrome/browser/file_select_helper.cc extensions->push_back(ext.substr(1)); substr 106 chrome/browser/google/google_util.cc std::string country_code = google_hostname.substr(last_dot + 1); substr 36 chrome/browser/history/in_memory_url_index_types.cc return url.substr(0, kCleanedUpUrlMaxLength - 1); substr 38 chrome/browser/history/in_memory_url_index_types.cc return url.substr(0, kCleanedUpUrlMaxLength - 2); substr 40 chrome/browser/history/in_memory_url_index_types.cc return url.substr(0, kCleanedUpUrlMaxLength); substr 53 chrome/browser/history/in_memory_url_index_types.cc return base::i18n::ToLower(title.substr(0u, kCleanedUpTitleMaxLength)); substr 62 chrome/browser/history/in_memory_url_index_types.cc cleaned_string.substr(0, kMaxCompareLength) : cleaned_string; substr 125 chrome/browser/history/in_memory_url_index_types.cc word_set.insert(base::i18n::ToLower(*iter).substr(0, kMaxSignificantChars)); substr 250 chrome/browser/history/snippet.cc snippet += base::UTF8ToUTF16(document.substr(start, match_start - start)); substr 255 chrome/browser/history/snippet.cc snippet += base::UTF8ToUTF16(document.substr(match_start, substr 271 chrome/browser/history/snippet.cc snippet += base::UTF8ToUTF16(document.substr(match_end, end - match_end)); substr 279 chrome/browser/history/snippet.cc snippet += base::UTF8ToUTF16(document.substr(match_end, end - match_end)); substr 128 chrome/browser/history/snippet_unittest.cc star_snippet += snippet.text().substr(pos, match->first - pos); substr 130 chrome/browser/history/snippet_unittest.cc star_snippet += snippet.text().substr(match->first, substr 135 chrome/browser/history/snippet_unittest.cc star_snippet += snippet.text().substr(pos); substr 595 chrome/browser/history/url_index_private_data.cc leftovers = term.substr(prefix_length); substr 518 chrome/browser/history/visit_database.cc host_query_min.substr(0, host_query_min.size() - 1) + '0'); substr 279 chrome/browser/internal_auth.cc passport.substr(BASE64_PER_RAW(kHMACSizeInBytes)); substr 595 chrome/browser/io_thread.cc std::string log_description(curr_log.substr(0, delim_pos)); substr 597 chrome/browser/io_thread.cc CHECK(base::Base64Decode(curr_log.substr(delim_pos + 1), substr 48 chrome/browser/local_discovery/device_description.cc std::string key = i->substr(0, equals_pos); substr 49 chrome/browser/local_discovery/device_description.cc std::string value = i->substr(equals_pos + 1); substr 316 chrome/browser/mac/relauncher.cc dmg_bsd_device_name.assign(arg.substr(strlen(kRelauncherDMGDeviceArg))); substr 335 chrome/browser/managed_mode/managed_user_settings_service.cc std::string prefix = key->substr(0, pos); substr 105 chrome/browser/managed_mode/managed_user_settings_service_unittest.cc managed_user_setting.name().substr(strlen(kSplitItemName) + 1); substr 157 chrome/browser/managed_mode/managed_user_sync_service.cc avatar_str.substr(0, prefix_len) != prefix) { substr 161 chrome/browser/managed_mode/managed_user_sync_service.cc if (!base::StringToInt(avatar_str.substr(prefix_len), avatar_index)) substr 361 chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc *raw_mos = result.substr(first_number_pos, 5); substr 363 chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc *mos_lqo = result.substr(first_number_pos + 5 + 1, 5); substr 96 chrome/browser/media/encrypted_media_browsertest.cc return key_system.substr(0, prefix.size()) == prefix; substr 312 chrome/browser/media/webrtc_browsertest_base.cc return result.substr(3); substr 157 chrome/browser/media/webrtc_browsertest_perf.cc return key.substr(key_start_pos, key_end_pos - key_start_pos); substr 97 chrome/browser/media_galleries/fileapi/media_file_system_backend.cc base::StringToUint64(mount_point.substr(expected_mount_prefix.size()), substr 136 chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc std::string extension = filename.substr(extension_index); substr 273 chrome/browser/metrics/metrics_log.cc return thread_name.substr(0, i) + '*'; substr 282 chrome/browser/metrics/metrics_log.cc return offset != std::string::npos ? file_name.substr(offset + 1) : file_name; substr 166 chrome/browser/metrics/metrics_log_chromeos.cc base::RemoveChars(address.substr(0, 9), ":", &vendor_prefix_str); substr 80 chrome/browser/metrics/variations/variations_http_header_provider.cc std::string entry = trigger_id ? it->substr(1) : *it; substr 115 chrome/browser/net/chrome_network_delegate.cc std::string parameter_prefix = second_parameter.substr( substr 92 chrome/browser/net/firefox_proxy_settings.cc std::string key = line.substr(start_key, stop_key - start_key); substr 105 chrome/browser/net/firefox_proxy_settings.cc std::string value = line.substr(start_value + 1, substr 118 chrome/browser/net/firefox_proxy_settings.cc value = value.substr(1, value.size() - 2); substr 184 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc host_pattern = pattern.substr(0, pos); substr 253 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc auth_info->realm.substr(0, strlen(kAuthenticationRealmName)); substr 273 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc auth_info->realm.substr(strlen(kAuthenticationRealmName)); substr 355 chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc if ("OK" == response.substr(0, 2)) { substr 295 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc EXPECT_EQ("SpdyProxy", entry->auth_challenge().substr(0,9)); substr 202 chrome/browser/omnibox/omnibox_field_trial.cc group_name.substr(strlen(kDisabledProviders))), &types)) substr 546 chrome/browser/password_manager/password_store_mac.cc *security_domain = realm_as_url.path().substr(1); substr 2670 chrome/browser/policy/policy_browsertest.cc EXPECT_EQ(kExpectedLabel, text.substr(0, kExpectedLabel.size())); substr 32 chrome/browser/policy/policy_path_parser_linux.cc result = result.substr(1, result.length() - 2); substr 76 chrome/browser/policy/policy_path_parser_win.cc result = result.substr(1, result.length() - 2); substr 28 chrome/browser/predictors/autocomplete_action_predictor_table.cc statement->BindString16(1, row.user_text.substr(0, kMaxDataLength)); substr 29 chrome/browser/predictors/autocomplete_action_predictor_table.cc statement->BindString(2, row.url.spec().substr(0, kMaxDataLength)); substr 51 chrome/browser/predictors/logged_in_predictor_table.cc return effective_domain.substr(1); substr 290 chrome/browser/process_singleton_linux.cc *hostname = real_path.substr(0, pos); substr 292 chrome/browser/process_singleton_linux.cc const std::string& pid_str = real_path.substr(pos + 1); substr 122 chrome/browser/process_singleton_win.cc if (msg.substr(0, first_null) == L"START") { substr 136 chrome/browser/process_singleton_win.cc *current_directory = base::FilePath(msg.substr(first_null + 1, substr 149 chrome/browser/process_singleton_win.cc msg.substr(second_null + 1, third_null - second_null); substr 667 chrome/browser/profile_resetter/jtl_interpreter.cc *out = program_.substr(next_instruction_index_, substr 120 chrome/browser/profiles/profile_downloader.cc std::string new_spec = old_spec.substr(0, pos) + new_size_component + substr 121 chrome/browser/profiles/profile_downloader.cc old_spec.substr(end); substr 161 chrome/browser/profiles/profile_io_data.cc relative_path.assign(spec.substr(offset + bundled_path_prefix.length())); substr 252 chrome/browser/renderer_host/pepper/pepper_flash_clipboard_message_filter.cc html.substr(fragment_start, fragment_end - fragment_start)); substr 50 chrome/browser/rlz/rlz_unittest.cc const char* substr) { substr 51 chrome/browser/rlz/rlz_unittest.cc if (NULL != strstr(str, substr)) { substr 57 chrome/browser/rlz/rlz_unittest.cc << substr << "' not in '" << str << "'"; substr 63 chrome/browser/rlz/rlz_unittest.cc const char* substr) { substr 64 chrome/browser/rlz/rlz_unittest.cc if (NULL == strstr(str, substr)) { substr 70 chrome/browser/rlz/rlz_unittest.cc << substr << "' in '" << str << "'"; substr 73 chrome/browser/rlz/rlz_unittest.cc #define EXPECT_STR_CONTAINS(str, substr) \ substr 74 chrome/browser/rlz/rlz_unittest.cc EXPECT_PRED_FORMAT2(CmpHelperSTRC, str, substr) substr 76 chrome/browser/rlz/rlz_unittest.cc #define EXPECT_STR_NOT_CONTAIN(str, substr) \ substr 77 chrome/browser/rlz/rlz_unittest.cc EXPECT_PRED_FORMAT2(CmpHelperSTRNC, str, substr) substr 172 chrome/browser/safe_browsing/protocol_parser.cc chunk_url.url = cmd_line.substr(2); // Skip the initial "u:". substr 278 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc command = command.substr(1, command.length() - 2); substr 385 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc command = command.substr(0, colon_index); substr 143 chrome/browser/safe_browsing/safe_browsing_database.cc SBFullHashForString(hosts[i] + path.substr(0, path.size() - 1))); substr 229 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc const std::string msg = str.substr(0, newline + 1); substr 336 chrome/browser/safe_browsing/safe_browsing_util.cc ? url_unescaped_str.substr(parsed.host.begin, parsed.host.len) substr 349 chrome/browser/safe_browsing/safe_browsing_util.cc ? url_unescaped_str.substr(parsed.path.begin, parsed.path.len) substr 379 chrome/browser/safe_browsing/safe_browsing_util.cc escaped_canon_url_str.substr(final_parsed.host.begin, substr 383 chrome/browser/safe_browsing/safe_browsing_util.cc *canonicalized_path = escaped_canon_url_str.substr(final_parsed.path.begin, substr 387 chrome/browser/safe_browsing/safe_browsing_util.cc *canonicalized_query = escaped_canon_url_str.substr( substr 57 chrome/browser/search/local_ntp_source.cc return path.substr(0, path.find("?")); substr 176 chrome/browser/search/local_ntp_source.cc std::string filename = request->url().path().substr(1); substr 793 chrome/browser/search/search.cc group_prefix = group_name.substr(0, first_space); substr 794 chrome/browser/search/search.cc if (!base::SplitStringIntoKeyValuePairs(group_name.substr(first_space), substr 157 chrome/browser/search_engines/template_url.cc std::string value_string = params.substr(value.begin, value.len); substr 162 chrome/browser/search_engines/template_url.cc return params.substr(key.begin, key.len); substr 502 chrome/browser/search_engines/template_url.cc if (params.substr(key.begin, key.len) == search_term_key_) { substr 511 chrome/browser/search_engines/template_url.cc params.substr(value.begin, value.len), substr 547 chrome/browser/search_engines/template_url.cc std::string parameter(url->substr(start + 1, length)); substr 548 chrome/browser/search_engines/template_url.cc std::string full_parameter(url->substr(start, end - start + 1)); substr 1212 chrome/browser/search_engines/template_url.cc params[i].substr(key.begin, key.len) == substr 1249 chrome/browser/search_engines/template_url.cc new_params += old_params.substr(search_terms_position.end()); substr 366 chrome/browser/search_engines/template_url_service.cc result.substr(0, result.length() - 1) : result; substr 223 chrome/browser/shell_integration_win.cc const base::string16 parameters = url_spec.substr(split_offset + 1, substr 90 chrome/browser/signin/local_auth.cc if (!base::Base64Decode(encoded.substr(1), &unbase64)) substr 50 chrome/browser/signin/local_auth_unittest.cc base::Base64Decode(passhash.substr(1), &decodedhash); substr 29 chrome/browser/speech/tts_controller.cc return lang.substr(0, 2); substr 73 chrome/browser/spellchecker/misspelling.cc return context.substr(location, length); substr 66 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc std::string checksum = contents.substr(pos + strlen(CHECKSUM_PREFIX)); substr 67 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc contents = contents.substr(0, pos); substr 153 chrome/browser/spellchecker/spellcheck_message_filter.cc text_copy.substr(iter->location, iter->length))) { substr 49 chrome/browser/spellchecker/word_trimmer.cc return text.substr(first, last - first); substr 246 chrome/browser/sync/glue/favicon_cache_unittest.cc std::string temp = tag.substr(kPrefix.length()); substr 249 chrome/browser/sync/glue/favicon_cache_unittest.cc temp = temp.substr(0, temp.rfind(kSuffix)); substr 87 chrome/browser/sync/glue/session_model_associator.cc std::string client_id = session_tag.substr( substr 124 chrome/browser/sync/test/integration/extensions_helper.cc !base::StringToInt(name.substr(strlen(extension_name_prefix)), index)) { substr 189 chrome/browser/sync/test/integration/sync_app_list_helper.cc << " Page: " << s->GetPageOrdinal(id).ToDebugString().substr(0, 8) substr 191 chrome/browser/sync/test/integration/sync_app_list_helper.cc << s->GetAppLaunchOrdinal(id).ToDebugString().substr(0, 8); substr 180 chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc !net::GetWellKnownMimeTypeFromExtension(extension.substr(1), &mime_type)) substr 51 chrome/browser/sync_file_system/drive_backend/metadata_database.cc return str.substr(prefix.size()); substr 48 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc if (virtual_path.value().substr(0, prefix.size()) != prefix) substr 51 chrome/browser/sync_file_system/drive_backend/metadata_db_migration_util.cc *path = base::FilePath(virtual_path.value().substr(prefix.size())); substr 137 chrome/browser/sync_file_system/drive_backend_v1/api_util.cc !net::GetWellKnownMimeTypeFromExtension(extension.substr(1), &mime_type)) substr 82 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc return str.substr(prefix.size()); substr 101 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc *origin = GURL(key_body.substr(0, separator_position)); substr 103 chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.cc key_body.substr(separator_position + 1)); substr 81 chrome/browser/sync_file_system/syncable_file_system_util.cc path_for_url = base::FilePath(path.value().substr(1)); substr 726 chrome/browser/themes/browser_theme_pack.cc expected_id.substr(0, extensions::id_util::kIdSize); substr 305 chrome/browser/translate/translate_infobar_delegate.cc strings->push_back(text.substr(0, offset)); substr 306 chrome/browser/translate/translate_infobar_delegate.cc strings->push_back(text.substr(offset)); substr 321 chrome/browser/translate/translate_infobar_delegate.cc strings->push_back(text.substr(0, offsets[0])); substr 322 chrome/browser/translate/translate_infobar_delegate.cc strings->push_back(text.substr(offsets[0], offsets[1] - offsets[0])); substr 323 chrome/browser/translate/translate_infobar_delegate.cc strings->push_back(text.substr(offsets[1])); substr 389 chrome/browser/ui/app_list/app_list_syncable_service.cc VLOG(2) << this << ": RemoveSyncItem: " << id.substr(0, 8); substr 750 chrome/browser/ui/app_list/app_list_syncable_service.cc VLOG(2) << this << ": DeleteSyncItemSpecifics: " << item_id.substr(0, 8); substr 786 chrome/browser/ui/app_list/app_list_syncable_service.cc std::string res = item_id.substr(0, 8); substr 793 chrome/browser/ui/app_list/app_list_syncable_service.cc res += " <" + parent_id.substr(0, 8) + ">"; substr 116 chrome/browser/ui/app_list/extension_app_model_builder.cc << params.extension_id.substr(0, 8); substr 148 chrome/browser/ui/app_list/extension_app_model_builder.cc << extension->id().substr(0, 8); substr 175 chrome/browser/ui/app_list/extension_app_model_builder.cc << extension->id().substr(0, 8); substr 53 chrome/browser/ui/app_list/search/term_break_iterator.cc return word_.substr(prev_, pos_ - prev_); substr 668 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc value.substr(0, value.size() / 2)); substr 700 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc value.substr(0, value.size() / 2)); substr 786 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc value.substr(0, value.size() / 2)); substr 803 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc value.substr(0, value.size() / 2)); substr 830 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc value.substr(0, value.size() / 2)); substr 864 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc card.GetRawInfo(CREDIT_CARD_NUMBER).substr(0, 1)); substr 1641 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc view->SetTextContentsOfInput(NAME_FULL, name.substr(0, name.size() / 2)); substr 1668 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc view->SetTextContentsOfInput(NAME_FULL, name.substr(0, name.size() / 2)); substr 903 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc cc_number.substr(cc_number.size() - 4), substr 2291 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc verified_profile.GetRawInfo(NAME_FULL).substr(0, 1), substr 3369 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc cn_profile.GetRawInfo(NAME_FULL).substr(0, 1), substr 3384 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc us_profile.GetRawInfo(NAME_FULL).substr(0, 1), substr 3406 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc profile.GetRawInfo(NAME_FULL).substr(0, 1), substr 43 chrome/browser/ui/autofill/generated_credit_card_bubble_controller_unittest.cc return string.substr(range.start(), range.end() - range.start()); substr 33 chrome/browser/ui/browser_window_state.cc if (!base::StringToInt(str.substr(0, num1_size), &num1) || substr 34 chrome/browser/ui/browser_window_state.cc !base::StringToInt(str.substr(num2_pos, num2_size), &num2)) substr 208 chrome/browser/ui/chrome_pages.cc loc != std::string::npos ? sub_page.substr(loc) : std::string(); substr 98 chrome/browser/ui/elide_url.cc *url_subdomain = url_host->substr(0, domain_start_index); substr 137 chrome/browser/ui/elide_url.cc base::string16 url_path_query_etc = url_string.substr(path_start_index); substr 138 chrome/browser/ui/elide_url.cc base::string16 url_path = url_string.substr(path_start_index, path_len); substr 142 chrome/browser/ui/elide_url.cc url_string.substr(0, path_start_index + path_len); substr 165 chrome/browser/ui/elide_url.cc url_host = url_domain = file_path_split.at(0).substr(1) + kColon; substr 192 chrome/browser/ui/elide_url.cc url_query = UTF8ToUTF16("?") + url_string.substr(parsed.query.begin); substr 597 chrome/browser/ui/gtk/find_bar_gtk.cc return base::UTF8ToUTF16(contents.substr(cursor_pos, selection_bound)); substr 719 chrome/browser/ui/gtk/gtk_util.cc text_utf8 = text_utf8.substr(0, 2000); substr 34 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc CreateLabel(base::UTF16ToUTF8(text.substr(0, offset))), substr 47 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc CreateLabel(base::UTF16ToUTF8(text.substr(offset))), substr 234 chrome/browser/ui/gtk/infobars/infobar_gtk.cc base::UTF16ToUTF8(display_text.substr(0, link_offset))); substr 236 chrome/browser/ui/gtk/infobars/infobar_gtk.cc base::UTF16ToUTF8(display_text.substr(link_offset))); substr 1348 chrome/browser/ui/gtk/location_bar_view_gtk.cc keyword_hint.substr(0, content_param_offsets.front()))); substr 1350 chrome/browser/ui/gtk/location_bar_view_gtk.cc keyword_hint.substr(content_param_offsets.front()))); substr 101 chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc return base::UTF16ToUTF8(text.substr(0, text_offset)).length(); substr 386 chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc localized_text = localized_text.substr(0, 2000); substr 69 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc return base::UTF16ToUTF8(text.substr(0, text_offset)).size(); substr 1582 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc bool grey_out_url = text.substr(scheme.begin, scheme.len) == substr 150 chrome/browser/ui/gtk/sad_tab_gtk.cc base::UTF16ToUTF8(help_text.substr(0, offset))); substr 152 chrome/browser/ui/gtk/sad_tab_gtk.cc base::UTF16ToUTF8(help_text.substr(offset))); substr 1784 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc url = GURL(url_string.substr(0, url_string.find_first_of('\n'))); substr 29 chrome/browser/ui/omnibox/location_bar_util.cc min_string = description.substr(0, chop_index); substr 79 chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc base::UTF16ToUTF8(match.fill_into_edit.substr(prefix_length)), substr 1384 chrome/browser/ui/omnibox/omnibox_edit_model.cc base::TrimWhitespace(new_text.substr(0, space_position), base::TRIM_LEADING, substr 66 chrome/browser/ui/omnibox/omnibox_edit_unittest.cc inline_autocomplete_text_ = display_text.substr(user_text_length); substr 30 chrome/browser/ui/omnibox/omnibox_view.cc base::TrimWhitespace(out.substr(kJsPrefix.length()), base::TRIM_LEADING, substr 1423 chrome/browser/ui/omnibox/omnibox_view_browsertest.cc EXPECT_EQ(old_text.substr(0, old_text.size() - 2), omnibox_view->GetText()); substr 1432 chrome/browser/ui/omnibox/omnibox_view_browsertest.cc EXPECT_EQ(old_text.substr(0, old_text.size() - 2), omnibox_view->GetText()); substr 1441 chrome/browser/ui/omnibox/omnibox_view_browsertest.cc EXPECT_EQ(old_text.substr(0, old_text.size() - 2), omnibox_view->GetText()); substr 171 chrome/browser/ui/search/instant_test_utils.cc return omnibox()->GetText().substr(start, end - start); substr 419 chrome/browser/ui/startup/startup_browser_creator.cc profile, param.LossyDisplayName().substr(2))); substr 207 chrome/browser/ui/toolbar/origin_chip_info.cc formatted = formatted.substr(7); substr 209 chrome/browser/ui/toolbar/origin_chip_info.cc formatted = formatted.substr(8); substr 211 chrome/browser/ui/toolbar/origin_chip_info.cc formatted = formatted.substr(6); substr 213 chrome/browser/ui/toolbar/origin_chip_info.cc formatted = formatted.substr(4); substr 215 chrome/browser/ui/toolbar/origin_chip_info.cc formatted = formatted.substr(0, formatted.size() - 1); substr 138 chrome/browser/ui/toolbar/toolbar_model_impl.cc if (key.is_nonempty() && query_str.substr(key.begin, key.len) == kChipKey) { substr 140 chrome/browser/ui/toolbar/toolbar_model_impl.cc query_str.substr(value.begin, value.len), substr 235 chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.cc text = text.substr(0, kMaxLength); substr 1135 chrome/browser/ui/views/autofill/autofill_dialog_views.cc label_->SetText(text.substr(0, position)); substr 1136 chrome/browser/ui/views/autofill/autofill_dialog_views.cc label_line_2_->SetText(text.substr(position + line_return.length())); substr 132 chrome/browser/ui/views/create_application_shortcut_view.cc text = text.substr(0, kMaxLength); substr 80 chrome/browser/ui/views/infobars/alternate_nav_infobar_view.cc label_1_text_ = message_text.substr(0, offset); substr 88 chrome/browser/ui/views/infobars/alternate_nav_infobar_view.cc label_2_text_ = message_text.substr(offset); substr 89 chrome/browser/ui/views/infobars/before_translate_infobar.cc label_1_ = CreateLabel(text.substr(0, offset)); substr 99 chrome/browser/ui/views/infobars/before_translate_infobar.cc label_2_ = CreateLabel(text.substr(offset)); substr 64 chrome/browser/ui/views/location_bar/keyword_hint_view.cc keyword_hint.substr(0, content_param_offsets.front())); substr 65 chrome/browser/ui/views/location_bar/keyword_hint_view.cc trailing_label_->SetText(keyword_hint.substr(content_param_offsets.front())); substr 111 chrome/browser/ui/views/omnibox/omnibox_view_views.cc const std::string& language = locale.substr(0, 2); substr 629 chrome/browser/ui/views/omnibox/omnibox_view_views.cc display_text.substr(user_text_length)); substr 1003 chrome/browser/ui/views/omnibox/omnibox_view_views.cc bool grey_out_url = text().substr(scheme.begin, scheme.len) == substr 143 chrome/browser/ui/views/sad_tab_view.cc views::Label* help_prefix = CreateLabel(help_text.substr(0, offset)); substr 144 chrome/browser/ui/views/sad_tab_view.cc views::Label* help_suffix = CreateLabel(help_text.substr(offset)); substr 642 chrome/browser/ui/webui/about_ui.cc std::string name = full_name.substr(2); substr 121 chrome/browser/ui/webui/chromeos/login/oobe_ui.cc std::string path = url.path().size() ? url.path().substr(1) : ""; substr 48 chrome/browser/ui/webui/chromeos/login/screenlock_icon_source.cc url.path().substr(1), substr 458 chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc MobileActivator::GetInstance()->InitiateActivation(path.substr(1)); substr 509 chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc const NetworkState* network = nsh->GetNetworkState(path.substr(1)); substr 571 chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc std::string path = web_ui()->GetWebContents()->GetURL().path().substr(1); substr 591 chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc std::string path = web_ui()->GetWebContents()->GetURL().path().substr(1); substr 44 chrome/browser/ui/webui/chromeos/slow_trace_ui.cc !base::StringToInt(path.substr(pos + 1), &trace_id)) { substr 33 chrome/browser/ui/webui/devtools_ui.cc .path().substr(1); substr 130 chrome/browser/ui/webui/devtools_ui.cc StartBundledDataRequest(path.substr(bundled_path_prefix.length()), substr 139 chrome/browser/ui/webui/devtools_ui.cc StartRemoteDataRequest(path.substr(remote_path_prefix.length()), substr 209 chrome/browser/ui/webui/devtools_ui.cc url.path().substr(1).c_str())); substr 83 chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc const std::string candidate_id = path.substr(last_slash + 1); substr 286 chrome/browser/ui/webui/extensions/extension_icon_source.cc match_param = match_param.substr(0, match_param.find('?')); substr 32 chrome/browser/ui/webui/extensions/extension_info_ui.cc AddExtensionDataToSource(url.path().substr(1)); substr 302 chrome/browser/ui/webui/extensions/extension_settings_handler.cc view_value->SetString("path", iter->url.path().substr(1)); substr 47 chrome/browser/ui/webui/fileicon_source.cc gurl.path().substr(1), (net::UnescapeRule::URL_SPECIAL_CHARS | substr 121 chrome/browser/ui/webui/help/help_handler.cc domain = user.substr(user.find('@') + 1); substr 509 chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc string_id = string_id.substr(1); substr 89 chrome/browser/ui/webui/ntp/favicon_webui_handler.cc path = path.substr(slash + 1); substr 83 chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc const base::string16& host = controller_->input().text().substr( substr 33 chrome/browser/ui/webui/options/chromeos/user_image_source.cc *email = net::UnescapeURLComponent(url.path().substr(1), substr 41 chrome/browser/ui/webui/options/chromeos/user_image_source.cc if (url_spec.substr(key.begin, key.len) == kKeyAnimated) { substr 1251 chrome/browser/ui/webui/options/content_settings_handler.cc std::string scheme = pattern.substr(0, scheme_separator_position); substr 1252 chrome/browser/ui/webui/options/content_settings_handler.cc std::string host = pattern.substr( substr 202 chrome/browser/ui/webui/signin/inline_login_handler_impl.cc GaiaUrls::GetInstance()->embedded_signin_url().path().substr(1)); substr 296 chrome/browser/web_applications/web_app.cc if (app_name.substr(0, prefix.length()) != prefix) substr 298 chrome/browser/web_applications/web_app.cc return app_name.substr(prefix.length()); substr 85 chrome/common/auto_start_linux.cc if (tokenizer.token().substr(0, token.length()) == token) { substr 86 chrome/common/auto_start_linux.cc *value = tokenizer.token().substr(token.length()); substr 55 chrome/common/chrome_content_client_unittest.cc product_str.substr(product_str.size() - kMobileStr.size())); substr 129 chrome/common/content_settings_pattern_parser.cc scheme = pattern_spec.substr(scheme_component.start, scheme_component.len); substr 140 chrome/common/content_settings_pattern_parser.cc std::string host = pattern_spec.substr(host_component.start, substr 145 chrome/common/content_settings_pattern_parser.cc host = host.substr(kDomainWildcardLength); substr 159 chrome/common/content_settings_pattern_parser.cc const std::string port = pattern_spec.substr(port_component.start, substr 181 chrome/common/content_settings_pattern_parser.cc const std::string path = pattern_spec.substr(path_component.start, substr 183 chrome/common/content_settings_pattern_parser.cc if (path.substr(1) == kPathWildcard) substr 85 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php $value = substr($value, strlen($m[0])); substr 492 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php if (substr($key, 0, strlen('openid_ns_')) == 'openid_ns_' substr 495 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php $alias = substr($key, strlen('openid_ns_')); substr 508 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php if (substr($key, 0, strlen($keyMatch)) != $keyMatch) { substr 511 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php $key = substr($key, strlen($keyMatch)); substr 518 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php $key = substr($this->data['openid_' . $alias . '_type_' . $key], substr 531 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php if (substr($key, 0, strlen($keyMatch)) != $keyMatch) { substr 534 chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/openid.php $key = substr($key, strlen($keyMatch)); substr 278 chrome/common/extensions/docs/examples/apps/hello-php/lib/oauth/OAuth.php if (isset($request_headers['Authorization']) && substr($request_headers['Authorization'], 0, 6) == 'OAuth ') { substr 428 chrome/common/extensions/docs/examples/apps/hello-php/lib/oauth/OAuth.php if (substr($k, 0, 5) != "oauth") continue; substr 799 chrome/common/extensions/docs/examples/apps/hello-php/lib/oauth/OAuth.php if (substr($key, 0, 5) == "HTTP_") { substr 806 chrome/common/extensions/docs/examples/apps/hello-php/lib/oauth/OAuth.php ucwords(strtolower(str_replace("_", " ", substr($key, 5)))) substr 23 chrome/common/extensions/extension_constants.cc gallery_prefix = gallery_prefix.substr(0, gallery_prefix.length() - 1); substr 30 chrome/common/extensions/manifest_handler_helpers.cc *path = path->substr(first_non_slash); substr 99 chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc return url.substr(strlen(kWwwPrefix)); substr 249 chrome/common/extensions/message_bundle.cc message->substr(beg_index, end_index - beg_index); substr 65 chrome/common/favicon/favicon_url_parser.cc size_str = path.substr(parsed_index, slash - parsed_index); substr 67 chrome/common/favicon/favicon_url_parser.cc size_str = path.substr(parsed_index, scale_delimiter - parsed_index); substr 68 chrome/common/favicon/favicon_url_parser.cc scale_str = path.substr(scale_delimiter + 1, substr 100 chrome/common/favicon/favicon_url_parser.cc parsed->url = path.substr(parsed_index); substr 107 chrome/common/favicon/favicon_url_parser.cc std::string possibly_invalid_url = path.substr(parsed_index); substr 117 chrome/common/favicon/favicon_url_parser.cc parsed->url = path.substr(parsed_index); substr 149 chrome/common/importer/firefox_importer_utils.cc std::string key = line.substr(0, equal); substr 151 chrome/common/importer/firefox_importer_utils.cc base::StringToInt(line.substr(equal + 1), version); substr 161 chrome/common/importer/firefox_importer_utils.cc const std::string& path_from_ini = line.substr(separator_pos + 1); substr 165 chrome/common/importer/firefox_importer_utils.cc *app_path = base::FilePath::FromUTF8Unsafe(line.substr(equal + 1)); substr 209 chrome/common/importer/firefox_importer_utils.cc return content.substr(start + 1, stop - start - 1); substr 229 chrome/common/importer/firefox_importer_utils.cc return GURL(home_page_list.substr(0, seperator)); substr 284 chrome/common/importer/firefox_importer_utils.cc return content.substr(start, stop - start); substr 315 chrome/common/importer/firefox_importer_utils.cc branding_name = lines[i].substr(name_attr.size()); substr 19 chrome/common/local_discovery/service_discovery_client.cc return service_name.substr(0, first_period); substr 28 chrome/common/local_discovery/service_discovery_client.cc return service_name.substr(first_period+1); substr 89 chrome/common/metrics/variations/experiment_labels_unittest.cc parsed_ids.insert(it->substr(index_of_equals + 1, substr 40 chrome/common/net/url_fixer_upper.cc text_utf8.substr(0, component_utf8.begin); substr 41 chrome/common/net/url_fixer_upper.cc std::string component_string = text_utf8.substr(component_utf8.begin, substr 133 chrome/common/net/url_fixer_upper.cc return home + text.substr(1); substr 145 chrome/common/net/url_fixer_upper.cc return kHome + text.substr(1); substr 520 chrome/common/net/url_fixer_upper.cc FixupURL(trimmed.substr(scheme.length() + 1), substr 236 chrome/common/net/url_fixer_upper_unittest.cc if (std::string("file:///") != url.substr(0, 8)) substr 494 chrome/common/net/url_fixer_upper_unittest.cc EXPECT_NE(std::string("file:///"), fixedup.substr(0, 8)); substr 115 chrome/common/net/x509_certificate_model_nss.cc name = name.substr(colon_pos + 1); substr 24 chrome/common/pref_names_util.cc *generic_family = pref_path.substr(start, pos - start); substr 26 chrome/common/pref_names_util.cc *script = pref_path.substr(pos + 1); substr 266 chrome/installer/util/channel_info.cc return value_.substr(position + pfx_length, length - pfx_length); substr 334 chrome/installer/util/delete_after_reboot_helper.cc match_path = match_path.substr(4); substr 172 chrome/installer/util/install_util.cc DCHECK_EQ(program, params.substr(1, program.length())); substr 173 chrome/installer/util/install_util.cc params = params.substr(program.length() + 2); substr 175 chrome/installer/util/install_util.cc DCHECK_EQ(program, params.substr(0, program.length())); substr 176 chrome/installer/util/install_util.cc params = params.substr(program.length()); substr 68 chrome/installer/util/install_util_unittest.cc systime.wYear = _wtoi(date.substr(0, 4).c_str()); substr 69 chrome/installer/util/install_util_unittest.cc systime.wMonth = _wtoi(date.substr(4, 2).c_str()); substr 70 chrome/installer/util/install_util_unittest.cc systime.wDay = _wtoi(date.substr(6, 2).c_str()); substr 424 chrome/installer/util/installation_validator_unittest.cc file, line, str.substr(message_start, message_length).c_str()); substr 178 chrome/installer/util/language_selector.cc std::wstring primary_language = language.substr(0, language.find(L'-')); substr 1731 chrome/installer/util/shell_util.cc return (*components.begin()).substr(0, installer::kMaxAppModelIdLength); substr 849 chrome/installer/util/shell_util_unittest.cc ASSERT_TRUE(base::ContainsOnlyChars(suffix.substr(1), substr 862 chrome/installer/util/shell_util_unittest.cc ASSERT_STREQ(user_name, suffix.substr(1).c_str()); substr 423 chrome/installer/util/user_experiment.cc if (base_group == client.substr(0, 2)) { substr 55 chrome/renderer/extensions/resource_request_policy.cc : resource_url.path().substr(1); substr 169 chrome/renderer/extensions/webstore_bindings.cc std::string candidate_webstore_item_id = webstore_url.path().substr( substr 163 chrome/renderer/media/chrome_key_systems.cc return name.substr(0, last_period); substr 37 chrome/renderer/pepper/pepper_uma_host.cc histogram.substr(0, histogram.find('.'))); substr 105 chrome/renderer/plugins/plugin_uma.cc *extension = extension_file_path.substr(last_dot); substr 56 chrome/renderer/safe_browsing/phishing_url_feature_extractor.cc host.substr(tld_start))) substr 85 chrome/renderer/searchbox/searchbox.cc raw_path = raw_path.substr(1); substr 94 chrome/renderer/searchbox/searchbox.cc *favicon_params = raw_path.substr(0, parsed.path_index); substr 111 chrome/renderer/searchbox/searchbox.cc std::string id_part = raw_path.substr(parsed.path_index); substr 136 chrome/renderer/searchbox/searchbox.cc path = path.substr(1); substr 53 chrome/renderer/spellchecker/custom_dictionary_engine.cc dictionary_.count(text.substr(misspelling_start, misspelling_len)) > 0; substr 145 chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc base::string16 substring = text.substr(0, kSubstringLength); substr 829 chrome/renderer/spellchecker/spellcheck_unittest.cc << std::wstring(kTestCases[i].input).substr( substr 398 chrome/service/cloud_print/cloud_print_proxy_backend.cc std::string printer_id = notification.substr(0, pos); substr 854 chrome/service/cloud_print/print_system_cups.cc std::string server = full_printer_name.substr(2, separator - 2); substr 865 chrome/service/cloud_print/print_system_cups.cc *short_printer_name = full_printer_name.substr(separator + 1); substr 343 chrome/test/chromedriver/capabilities.cc value = unparsed_switch.substr(equals_index + 1); substr 347 chrome/test/chromedriver/capabilities.cc if (unparsed_switch.substr(0, 2) == "--") substr 349 chrome/test/chromedriver/capabilities.cc name = unparsed_switch.substr(start_index, equals_index - start_index); substr 112 chrome/test/chromedriver/chrome/devtools_http_client.cc std::string stripped_version = devtools_version.substr(prefix.length()); substr 498 chrome/test/chromedriver/chrome_launcher.cc std::string key_len_str = decoded_extension.substr(8, 4); substr 502 chrome/test/chromedriver/chrome_launcher.cc std::string public_key = decoded_extension.substr(16, key_len); substr 149 chrome/test/chromedriver/chrome_launcher_unittest.cc ASSERT_EQ(FILE_PATH_LITERAL("/a,"), load.substr(0, 3)); substr 150 chrome/test/chromedriver/chrome_launcher_unittest.cc ASSERT_TRUE(base::PathExists(base::FilePath(load.substr(3)))); substr 307 chrome/test/chromedriver/key_converter.cc unmodified_text = base::UTF16ToUTF8(keys.substr(i, 1)); substr 308 chrome/test/chromedriver/key_converter.cc modified_text = base::UTF16ToUTF8(keys.substr(i, 1)); substr 100 chrome/test/chromedriver/logging.cc std::string message = str.substr(message_start); substr 185 chrome/test/chromedriver/net/adb_client_socket.cc std::string len = response_.substr(content_pos + 15, substr 433 chrome/test/chromedriver/net/adb_client_socket.cc std::string status = data.substr(0, 4); substr 439 chrome/test/chromedriver/net/adb_client_socket.cc data = data.substr(4); substr 445 chrome/test/chromedriver/net/adb_client_socket.cc base::HexStringToInt(data.substr(0, 4), &payload_length)) { substr 446 chrome/test/chromedriver/net/adb_client_socket.cc data = data.substr(4); substr 123 chrome/test/chromedriver/net/port_server.cc !base::StringToInt(response.substr(0, response.length() - 1), &new_port)) substr 226 chrome/test/chromedriver/net/websocket.cc std::string leftover_message = handshake_response_.substr(headers_end); substr 237 chrome/test/chromedriver/server/chromedriver_server.cc path += address.substr(1); substr 48 chrome/test/chromedriver/session_commands.cc *web_view_id = window_handle.substr( substr 515 chrome/test/data/dromaeo/JSON.php $delim = substr($str, 0, 1); substr 516 chrome/test/data/dromaeo/JSON.php $chrs = substr($str, 1, -1); substr 522 chrome/test/data/dromaeo/JSON.php $substr_chrs_c_2 = substr($chrs, $c, 2); substr 557 chrome/test/data/dromaeo/JSON.php case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)): substr 559 chrome/test/data/dromaeo/JSON.php $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2))) substr 560 chrome/test/data/dromaeo/JSON.php . chr(hexdec(substr($chrs, ($c + 4), 2))); substr 572 chrome/test/data/dromaeo/JSON.php $utf8 .= substr($chrs, $c, 2); substr 579 chrome/test/data/dromaeo/JSON.php $utf8 .= substr($chrs, $c, 3); substr 586 chrome/test/data/dromaeo/JSON.php $utf8 .= substr($chrs, $c, 4); substr 593 chrome/test/data/dromaeo/JSON.php $utf8 .= substr($chrs, $c, 5); substr 600 chrome/test/data/dromaeo/JSON.php $utf8 .= substr($chrs, $c, 6); substr 630 chrome/test/data/dromaeo/JSON.php $chrs = substr($str, 1, -1); substr 650 chrome/test/data/dromaeo/JSON.php $substr_chrs_c_2 = substr($chrs, $c, 2); substr 655 chrome/test/data/dromaeo/JSON.php $slice = substr($chrs, $top['where'], ($c - $top['where'])); substr 701 chrome/test/data/dromaeo/JSON.php ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) { substr 56 chrome/test/data/nacl/postmessage_redir/pm_redir_test.cc key = entry.substr(0, eq); substr 57 chrome/test/data/nacl/postmessage_redir/pm_redir_test.cc val = entry.substr(eq+1); substr 74 chrome/test/data/nacl/postmessage_redir/pm_redir_test.cc std::string sub = str_map.substr(s, comma - s); substr 79 chrome/test/data/nacl/postmessage_redir/pm_redir_test.cc std::string sub = str_map.substr(s); substr 264 chrome/test/ppapi/ppapi_test.cc return test_name.substr(strlen(prefixes[i])); substr 68 chrome/test/security_tests/ipc_security_tests.cc *pipe_name = cl.substr(pos, pos2); substr 80 chrome/test/security_tests/ipc_security_tests.cc *parent_id = pipe_name.substr(0, pos); substr 81 chrome/test/security_tests/ipc_security_tests.cc *channel_id = pipe_name.substr(pos + 1); substr 103 chrome/tools/convert_dict/aff_reader.cc encoding_ = line.substr(4); substr 110 chrome/tools/convert_dict/aff_reader.cc std::string group(line.substr(3)); substr 122 chrome/tools/convert_dict/aff_reader.cc std::string replacement(line.substr(4)); substr 223 chrome/tools/convert_dict/aff_reader.cc part = rule->substr(part_start); // From here to end. substr 256 chrome/tools/convert_dict/aff_reader.cc std::string before_flags = part.substr(0, slash_index + 1); substr 261 chrome/tools/convert_dict/aff_reader.cc base::SplitString(part.substr(slash_index + 1), ' ', &after_slash); substr 288 chrome/tools/convert_dict/aff_reader.cc *rule = rule->substr(0, part_start) + reencoded; substr 314 chrome/tools/convert_dict/aff_reader.cc split.push_back(utf8rule.substr(0, space_index)); substr 315 chrome/tools/convert_dict/aff_reader.cc split.push_back(utf8rule.substr(space_index + 1)); substr 37 chrome/tools/convert_dict/dic_reader.cc std::string word = line.substr(0, slash_index); substr 43 chrome/tools/convert_dict/dic_reader.cc output->push_back(line.substr(slash_index + 1)); substr 101 chrome/tools/convert_dict/dic_reader.cc split[1] = split[1].substr(0, split1_tab_offset); substr 114 chrome/tools/convert_dict/dic_reader.cc utf8word = utf8word.substr(0, word_tab_offset); substr 21 chrome/tools/convert_dict/hunspell_reader.cc *line = line->substr(3); substr 95 chrome/tools/profile_reset/jtl_compiler_frontend.cc ? error.context.substr(0, 60) + "..." substr 49 chrome/utility/importer/bookmark_html_reader.cc *value = attribute_list.substr(begin, end - begin); substr 253 chrome/utility/importer/bookmark_html_reader.cc *charset = line.substr(begin, end - begin); substr 278 chrome/utility/importer/bookmark_html_reader.cc base::CodepageToUTF16(line.substr(tag_end, end - tag_end), charset.c_str(), substr 282 chrome/utility/importer/bookmark_html_reader.cc std::string attribute_list = line.substr(arraysize(kFolderOpen), substr 336 chrome/utility/importer/bookmark_html_reader.cc std::string attribute_list = line.substr(arraysize(kItemOpen), substr 347 chrome/utility/importer/bookmark_html_reader.cc base::CodepageToUTF16(line.substr(tag_end, end - tag_end), charset.c_str(), substr 413 chrome/utility/importer/bookmark_html_reader.cc std::string attribute_list = line.substr(arraysize(kItemOpen), substr 417 chrome/utility/importer/bookmark_html_reader.cc base::CodepageToUTF16(line.substr(tag_end, end - tag_end), charset.c_str(), substr 439 chrome/utility/importer/firefox_importer.cc file = app_path.AppendASCII(engine.substr(index + kAppPrefix.length())); substr 443 chrome/utility/importer/firefox_importer.cc engine.substr(index + kProfilePrefix.length())); substr 584 chrome/utility/importer/ie_importer_win.cc if (i != base::string16::npos && ac.key.substr(i) == kDataSuffix) { substr 840 chrome/utility/importer/ie_importer_win.cc shortcut.DirName().value().substr(favorites_path_len); substr 843 chrome/utility/importer/ie_importer_win.cc relative_string = relative_string.substr(1); substr 101 chrome/utility/importer/nss_decryptor.cc base::Base64Decode(crypt.substr(1), &plain); substr 183 chrome/utility/importer/nss_decryptor.cc url = GURL(lines[begin].substr(0, start)); substr 187 chrome/utility/importer/nss_decryptor.cc realm = lines[begin].substr(start, end - start); substr 212 chrome/utility/importer/nss_decryptor.cc form.password_element = base::UTF8ToUTF16(lines[begin++].substr(1)); substr 120 chrome_elf/blacklist/blacklist_interceptions.cc return module_path.substr(sep+1); substr 573 chromeos/disks/disk_mount_manager.cc std::string path = received_path.substr(success ? 0 : 1); substr 49 chromeos/ime/extension_ime_util.cc return input_method_id.substr(kExtensionIMEPrefixLength, substr 55 chromeos/ime/extension_ime_util.cc return input_method_id.substr(kComponentExtensionIMEPrefixLength, substr 71 chromeos/ime/extension_ime_util.cc std::string id = keyboard_layout_id.substr( substr 114 chromeos/ime/extension_ime_util.cc return input_method_id.substr(pos); substr 41 chromeos/network/network_cert_migrator.cc name = name.substr(colon_pos + 1); substr 37 chromeos/network/network_configuration_handler.cc return in_str.substr(1, len-2); substr 46 chromeos/network/network_event_log_unittest.cc output += "[time] " + lines[i].substr(n+2) + '\n'; substr 212 chromeos/settings/timezone_settings.cc return timezone.substr(strlen(kTimezoneFilesDir)); substr 95 chromeos/system/name_value_pairs_parser.cc base::TrimString(pair.substr(0, eq_pos), kTrimChars, &key); substr 96 chromeos/system/name_value_pairs_parser.cc base::TrimString(pair.substr(eq_pos + 1, value_size), kTrimChars, &value); substr 84 chromeos/system/statistics_provider.cc return name.substr(0, 4) == "oem_"; substr 30 cloud_print/gcp20/prototype/cloud_print_xmpp_listener.cc *device_id = message.substr(0, pos); substr 31 cloud_print/gcp20/prototype/cloud_print_xmpp_listener.cc *path = message.substr(pos); substr 71 cloud_print/gcp20/prototype/command_line_reader.cc domain_name.substr(domain_name.size() - suffix.size()) != suffix) { substr 48 cloud_print/gcp20/prototype/x_privet_token.cc std::string issue_time_str = token.substr(delimeter_pos + 1); substr 206 cloud_print/service/service_state.cc return lines[i].substr(arraysize(kAuthStart) - 1); substr 32 cloud_print/service/win/service_utils.cc user_name.substr(arraysize(kLocalDomain) - 2); substr 322 components/autofill/content/browser/wallet/full_wallet.cc cvn_ = card_info.substr(split); substr 323 components/autofill/content/browser/wallet/full_wallet.cc pan_ = iin_ + card_info.substr(0, split); substr 120 components/autofill/content/browser/wallet/instrument.cc primary_account_number_.substr(primary_account_number_.size() - 4); substr 189 components/autofill/content/browser/wallet/wallet_service_url.cc query_str.substr(key.begin, key.len) == kUserIndexKey) { substr 190 components/autofill/content/browser/wallet/wallet_service_url.cc base::StringToSizeT(query_str.substr(value.begin, value.len), user_index); substr 412 components/autofill/content/renderer/autofill_agent.cc last_part = last_part.substr(0, i); substr 633 components/autofill/content/renderer/autofill_agent.cc node->setEditingValue(value.substr(0, node->maxLength())); substr 640 components/autofill/content/renderer/autofill_agent.cc node->setSuggestedValue(value.substr(0, node->maxLength())); substr 543 components/autofill/content/renderer/form_autofill_util.cc value = value.substr(0, input_element->maxLength()); substr 575 components/autofill/content/renderer/form_autofill_util.cc data.value.substr(0, input_element->maxLength())); substr 820 components/autofill/content/renderer/form_autofill_util.cc value = value.substr(0, kMaxDataLength); substr 213 components/autofill/core/browser/autofill_field.cc value = number.substr(PhoneNumber::kPrefixOffset, substr 217 components/autofill/core/browser/autofill_field.cc value = number.substr(PhoneNumber::kSuffixOffset, substr 63 components/autofill/core/browser/autofill_ie_toolbar_import_win.cc return rc4_algorithm.Run(data.substr(kMacLen)); substr 1792 components/autofill/core/browser/autofill_manager_unittest.cc base::string16 original_name = name.substr(0, name.size() - 1); substr 204 components/autofill/core/browser/autofill_merge_unittest.cc base::UTF8ToUTF16(line.substr(0, separator_pos)); substr 206 components/autofill/core/browser/autofill_merge_unittest.cc base::UTF8ToUTF16(line.substr(separator_pos + kFieldOffset)); substr 225 components/autofill/core/browser/credit_card.cc if (!base::StringToInt(number.substr(0, 2), &first_two_digits)) substr 250 components/autofill/core/browser/credit_card.cc if (!base::StringToInt(number.substr(0, 3), &first_three_digits)) substr 264 components/autofill/core/browser/credit_card.cc if (!base::StringToInt(number.substr(0, 4), &first_four_digits)) substr 475 components/autofill/core/browser/credit_card.cc return number.substr(number.size() - kNumLastDigits, kNumLastDigits); substr 1076 components/autofill/core/browser/form_structure.cc section = tokens.back().substr(kSectionPrefix.size()) + section; substr 161 components/autofill/core/browser/phone_number.cc base::string16 prefix = number.substr(kPrefixOffset, kPrefixLength); substr 162 components/autofill/core/browser/phone_number.cc base::string16 suffix = number.substr(kSuffixOffset, kSuffixLength); substr 127 components/autofill/core/browser/phone_number_i18n.cc area_code = national_significant_number.substr(0, area_length); substr 128 components/autofill/core/browser/phone_number_i18n.cc subscriber_number = national_significant_number.substr(area_length); substr 73 components/autofill/core/browser/webdata/autofill_table.cc return data.substr(0, AutofillTable::kMaxDataLength); substr 215 components/breakpad/app/breakpad_linux.cc GetBreakpadClient()->SetClientID(switch_value.substr(0, separator)); substr 216 components/breakpad/app/breakpad_linux.cc base::SetLinuxDistro(switch_value.substr(separator + 1)); substr 167 components/breakpad/app/breakpad_win.cc return shorter.substr(0, substr 187 components/breakpad/app/breakpad_win.cc SetPluginPath(path.substr(path.size() - kMaxPluginPathLength)); substr 203 components/breakpad/app/breakpad_win.cc path.substr(chunk_start, chunk_length).c_str())); substr 431 components/breakpad/app/breakpad_win.cc std::wstring safe_key(std::wstring(key).substr( substr 433 components/breakpad/app/breakpad_win.cc std::wstring safe_value(std::wstring(value).substr( substr 124 components/os_crypt/os_crypt_posix.cc std::string raw_ciphertext = ciphertext.substr(strlen(kObfuscationPrefix)); substr 31 components/plugins/renderer/mobile_youtube_plugin.cc std::string video_id = url.path().substr(strlen(kSlashVSlash)); substr 36 components/plugins/renderer/mobile_youtube_plugin.cc video_id = video_id.substr(0, video_id_end); substr 127 components/plugins/renderer/plugin_placeholder.cc width_str = width_str.substr(0, width_str.length() - 2); substr 134 components/plugins/renderer/plugin_placeholder.cc height_str = height_str.substr(0, height_str.length() - 2); substr 192 components/policy/core/browser/url_blacklist_manager.cc if (!base::StringToInt(filter.substr(parsed.port.begin, parsed.port.len), substr 43 components/policy/core/common/cloud/cloud_policy_service.cc return username.substr(pos + 1); substr 143 components/policy/core/common/policy_loader_win.cc if (!LowerCaseEqualsASCII(entry.substr(pos), kExpectedWebStoreUrl)) { substr 186 components/policy/core/common/preg_parser_win.cc std::string action_trigger(StringToLowerASCII(value_name.substr( substr 204 components/policy/core/common/preg_parser_win.cc value_name.substr(arraysize(kActionTriggerPrefix) - 1 + substr 299 components/policy/core/common/preg_parser_win.cc HandleRecord(key_name.substr(root.size()), value, type, data, dict); substr 34 components/signin/core/browser/mutable_profile_oauth2_token_service.cc return prefixed_account_id.substr(kAccountIdPrefixLength); substr 103 components/storage_monitor/storage_info.cc ? device_id.substr(0, prefix_length + 1) substr 131 components/storage_monitor/storage_info.cc *unique_id = device_id.substr(prefix_length + 1); substr 64 components/storage_monitor/test_volume_mount_watcher_win.cc path = base::FilePath(device_path.value().substr(0, 3)); substr 71 components/storage_monitor/volume_mount_watcher_win.cc device = mount_point.substr(0, mount_point.length() - 1); substr 76 components/translate/core/browser/translate_accept_languages.cc accept_lang = iter->substr(0, index); substr 158 components/translate/core/browser/translate_language_list.cc return language.substr(0, hypen_index); substr 276 components/translate/core/browser/translate_language_list.cc std::string languages_json = language_list.substr( substr 30 components/translate/core/common/translate_util.cc *tail_part = language.substr(main_part->size()); substr 282 components/translate/language_detection/language_detection_util.cc *code = code->substr(0, coma_index); substr 294 components/translate/language_detection/language_detection_util.cc *code = StringToLowerASCII(code->substr(0, dash_index)) + substr 295 components/translate/language_detection/language_detection_util.cc StringToUpperASCII(code->substr(dash_index)); substr 2038 content/browser/accessibility/browser_accessibility_win.cc base::string16 substr = text_str.substr(start_offset, substr 2040 content/browser/accessibility/browser_accessibility_win.cc if (substr.empty()) substr 2043 content/browser/accessibility/browser_accessibility_win.cc *text = SysAllocString(substr.c_str()); substr 112 content/browser/accessibility/dump_accessibility_tree_browsertest.cc Filter(base::UTF8ToUTF16(line.substr(allow_empty_str.size())), substr 116 content/browser/accessibility/dump_accessibility_tree_browsertest.cc line.substr(allow_str.size())), substr 120 content/browser/accessibility/dump_accessibility_tree_browsertest.cc line.substr(deny_str.size())), substr 27 content/browser/android/date_time_chooser_android.cc base::string16 trimmed = string.substr(0, 255); substr 71 content/browser/android/interstitial_page_delegate_android.cc sanitized_command = sanitized_command.substr( substr 303 content/browser/appcache/view_appcache_internals_job.cc *command = query.substr(0, position); substr 304 content/browser/appcache/view_appcache_internals_job.cc *value = query.substr(position + 1); substr 224 content/browser/devtools/devtools_http_handler_impl.cc return path.substr(0, query_position); substr 260 content/browser/devtools/devtools_http_handler_impl.cc const std::string target_id = info.path.substr(strlen(kThumbUrlPrefix)); substr 291 content/browser/devtools/devtools_http_handler_impl.cc std::string filename = PathWithoutParams(info.path.substr(10)); substr 414 content/browser/devtools/devtools_http_handler_impl.cc *command = path.substr(1); substr 418 content/browser/devtools/devtools_http_handler_impl.cc *target_id = command->substr(separator_pos + 1); substr 419 content/browser/devtools/devtools_http_handler_impl.cc *command = command->substr(0, separator_pos); substr 428 content/browser/devtools/devtools_http_handler_impl.cc std::string path = info.path.substr(5); substr 434 content/browser/devtools/devtools_http_handler_impl.cc query = path.substr(query_pos + 1); substr 435 content/browser/devtools/devtools_http_handler_impl.cc path = path.substr(0, query_pos); substr 440 content/browser/devtools/devtools_http_handler_impl.cc path = path.substr(0, fragment_pos); substr 590 content/browser/devtools/devtools_http_handler_impl.cc std::string page_id = request.path.substr(strlen(kPageUrlPrefix)); substr 46 content/browser/devtools/devtools_protocol.cc domain_ = method.substr(0, pos); substr 300 content/browser/dom_storage/session_storage_database.cc key.substr(0, current_namespace_start_key.length()) != substr 306 content/browser/dom_storage/session_storage_database.cc key.substr(namespace_prefix.length(), substr 314 content/browser/dom_storage/session_storage_database.cc std::string origin = key.substr(current_namespace_start_key.length()); substr 463 content/browser/dom_storage/session_storage_database.cc std::string origin = key.substr(namespace_start_key.length()); substr 575 content/browser/dom_storage/session_storage_database.cc base::UTF8ToUTF16(key.substr(map_start_key.length())); substr 124 content/browser/dom_storage/session_storage_database_unittest.cc *namespace_id = key.substr( substr 143 content/browser/dom_storage/session_storage_database_unittest.cc *namespace_id = key.substr( substr 159 content/browser/dom_storage/session_storage_database_unittest.cc std::string map_id_str = key.substr(map_prefix.length(), substr 176 content/browser/dom_storage/session_storage_database_unittest.cc std::string map_id_str = key.substr(map_prefix.length(), substr 36 content/browser/download/drag_download_util.cc GURL parsed_url = GURL(metadata.substr(file_name_end_pos + 1)); substr 41 content/browser/download/drag_download_util.cc *mime_type = metadata.substr(0, mime_type_end_pos); substr 43 content/browser/download/drag_download_util.cc base::string16 file_name_str = metadata.substr( substr 97 content/browser/download/save_package.cc return pure_file_name.substr(0, l_paren_index); substr 446 content/browser/download/save_package.cc *pure_file_name = pure_file_name->substr(0, available_length); substr 1274 content/browser/download/save_package.cc name.Extension().substr(1) : name.Extension(); substr 427 content/browser/fileapi/blob_url_request_job_unittest.cc expected_response_ = result.substr(5, 10 - 5 + 1); substr 448 content/browser/fileapi/blob_url_request_job_unittest.cc expected_response_ = result.substr(result.length() - 10); substr 386 content/browser/fileapi/file_system_url_request_job_unittest.cc extension = extension.substr(1); substr 193 content/browser/frame_host/navigation_entry_impl.cc title = title.substr(slashpos + 1); substr 77 content/browser/gpu/gpu_data_manager_impl_private.cc version_str = version_str.substr(0, pos); substr 27 content/browser/histogram_internals_request_job.cc path_.assign(spec.substr(offset)); substr 438 content/browser/indexed_db/indexed_db_browsertest.cc request_path = request.relative_url.substr(s_corrupt_db_test_prefix.size()); substr 446 content/browser/indexed_db/indexed_db_browsertest.cc request_query = request_path.substr(query_pos + 1); substr 447 content/browser/indexed_db/indexed_db_browsertest.cc request_path = request_path.substr(0, query_pos); substr 447 content/browser/loader/resource_dispatcher_host_browsertest.cc "Location", request.relative_url.substr(request_path.length())); substr 28 content/browser/media/capture/web_contents_capture_util.cc device_id.substr(arraysize(kVirtualDeviceScheme) - 1) : substr 44 content/browser/media/capture/web_contents_capture_util.cc const std::string device_id = device_id_param.substr( substr 57 content/browser/media/media_internals_unittest.cc utf8_update.substr(first_brace, last_brace - first_brace + 1))); substr 137 content/browser/net/view_http_cache_job_factory.cc request.url().spec().substr(strlen(kChromeUINetworkViewCacheURL)); substr 105 content/browser/renderer_host/java/java_type.cc binary_name.substr(1)))); substr 65 content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc net::EscapePath(path_.substr(1))); substr 556 content/browser/renderer_host/render_widget_host_view_android.cc std::string utf8_selection = base::UTF16ToUTF8(text.substr(pos, n)); substr 1082 content/browser/renderer_host/render_widget_host_view_aura.cc clipboard_writer.WriteText(text.substr(pos, n)); substr 2413 content/browser/renderer_host/render_widget_host_view_aura.cc *text = selection_text_.substr( substr 447 content/browser/renderer_host/render_widget_host_view_base.cc return selection_text_.substr( substr 972 content/browser/renderer_host/render_widget_host_view_gtk.cc clipboard_writer.WriteText(text.substr(pos, n)); substr 182 content/browser/speech/google_one_shot_remote_engine.cc lang_param = accepted_language_list.substr(0, separator); substr 556 content/browser/speech/google_streaming_remote_engine.cc langs = accepted_language_list.substr(0, separator); substr 212 content/browser/tracing/tracing_ui.cc std::string data = path.substr(strlen(beginRecordingPath)); substr 226 content/browser/tracing/tracing_ui.cc std::string data = path.substr(strlen(enableMonitoringPath)); substr 236 content/browser/web_contents/web_drag_dest_gtk.cc drop_data_->url = GURL(netscape_url.substr(0, split)); substr 239 content/browser/web_contents/web_drag_dest_gtk.cc base::UTF8ToUTF16(netscape_url.substr(split + 1)); substr 34 content/browser/webui/shared_resources_data_source.cc (kReplacement + path.substr(arraysize(kAppImagesPath) - 1))) substr 38 content/browser/webui/shared_resources_data_source.cc (kReplacement2x + path.substr(arraysize(kAppImagesPath2x) - 1))) substr 91 content/browser/webui/url_data_manager_backend.cc path->assign(spec.substr(offset)); substr 55 content/common/android/address_parser.cc address->assign(text.substr(start, len)); substr 85 content/common/android/address_parser_unittest.cc result_16 = content_16.substr(start, end - start); substr 813 content/common/gpu/media/video_decode_accelerator_unittest.cc return encoded_data_.substr(start_pos, *end_pos - start_pos); substr 843 content/common/gpu/media/video_decode_accelerator_unittest.cc bytes.append(encoded_data_.substr(*end_pos, frame_size)); substr 368 content/common/plugin_list_posix.cc mime_type.mime_type = description.substr(ofs, end - ofs); substr 374 content/common/plugin_list_posix.cc const std::string extensions = description.substr(ofs, end - ofs); substr 383 content/common/plugin_list_posix.cc base::UTF8ToUTF16(description.substr(ofs, end - ofs)); substr 385 content/common/plugin_list_posix.cc mime_type.description = base::UTF8ToUTF16(description.substr(ofs)); substr 413 content/common/plugin_list_posix.cc version = desc.substr(pos + strlen(kPrePostFixes[i].kPrefix)); substr 418 content/common/plugin_list_posix.cc version = version.substr(0, pos); substr 194 content/common/sandbox_win.cc std::wstring alt_name = name.substr(0, 6) + suffix; substr 195 content/common/sandbox_win.cc alt_name += name.substr(period, name.size()); substr 32 content/gpu/gpu_child_thread.cc std::string header = str.substr(0, message_start); substr 33 content/gpu/gpu_child_thread.cc std::string message = str.substr(message_start); substr 74 content/gpu/gpu_main.cc std::string header = str.substr(0, message_start); substr 75 content/gpu/gpu_main.cc std::string message = str.substr(message_start); substr 94 content/public/common/webplugininfo.cc no_leading_zeros_version += (j < n) ? numbers[i].substr(j) : "0"; substr 197 content/public/test/test_launcher.cc std::string test_case_name = full_name.substr(0, dot_pos); substr 198 content/public/test/test_launcher.cc std::string test_name = full_name.substr(dot_pos + 1); substr 302 content/public/test/test_launcher.cc std::string test_case_name = full_name.substr(0, dot_pos); substr 303 content/public/test/test_launcher.cc std::string test_name = full_name.substr(dot_pos + 1); substr 23 content/renderer/android/email_detector_unittest.cc result_16 = content_16.substr(start, end - start); substr 82 content/renderer/android/phone_number_detector.cc base::UTF8ToUTF16(utf8_input.substr(0, match.start())).length(); substr 23 content/renderer/android/phone_number_detector_unittest.cc result_16 = content_16.substr(start, end - start); substr 762 content/renderer/browser_plugin/browser_plugin.cc input = input.substr(index + 1); substr 143 content/renderer/dom_serializer_browsertest.cc charset_info = content.substr(start_pos, end_pos - start_pos); substr 697 content/renderer/media/buffered_resource_loader.cc content_range_str.substr(kUpThroughBytesUnit.length()); substr 705 content/renderer/media/buffered_resource_loader.cc if (!base::StringToInt64(range_spec.substr(0, dash_offset), substr 707 content/renderer/media/buffered_resource_loader.cc !base::StringToInt64(range_spec.substr(dash_offset + 1, substr 716 content/renderer/media/buffered_resource_loader.cc if (!base::StringToInt64(range_spec.substr(slash_offset + 1), substr 64 content/renderer/media/cache_util.cc if (cache_control_header.substr(0, kMaxAgePrefixLen) == kMaxAgePrefix) { substr 41 content/renderer/media/cache_util_unittest.cc WebString::fromUTF8(lines[i].substr(0, colon)), substr 42 content/renderer/media/cache_util_unittest.cc WebString::fromUTF8(lines[i].substr(colon + 2))); substr 60 content/renderer/pepper/pepper_file_ref_renderer_host.cc net::EscapePath(internal_path_.substr(1))); substr 1084 content/renderer/render_frame_impl.cc base::TrimWhitespace(selection_text.substr(start, length), base::TRIM_ALL, substr 1345 content/renderer/render_view_impl.cc base::string16 shortened_title = title.substr(0, kMaxTitleChars); substr 115 content/renderer/web_ui_mojo_context_state.cc response.url().string().utf8().substr(0, arraysize(kModulePrefix) - 1)); substr 117 content/renderer/web_ui_mojo_context_state.cc response.url().string().utf8().substr(arraysize(kModulePrefix) - 1); substr 45 content/shell/browser/shell_browser_main.cc pixel_switch = path_or_url.substr(separator_position + 1); substr 50 content/shell/browser/shell_browser_main.cc pixel_hash = pixel_switch.substr(separator_position + 1); substr 53 content/shell/browser/shell_layout_tests_android.cc test_location.append(path_or_url.substr(strlen(kAndroidLayoutTestPath))); substr 74 content/shell/renderer/test_runner/MockSpellCheck.cpp word = stringText.substr(wordOffset, wordLength); substr 92 content/shell/renderer/test_runner/MockSpellCheck.cpp stringText = stringText.substr(wordOffset + wordLength); substr 67 content/shell/renderer/test_runner/SpellCheckClient.cpp m_spellcheck.spellCheckWord(data.substr(offset), &misspelledPosition, &misspelledLength); substr 121 content/shell/renderer/test_runner/SpellCheckClient.cpp m_spellcheck.fillSuggestionList(WebString(text.substr(misspelledPosition, misspelledLength)), &suggestions); substr 123 content/shell/renderer/test_runner/SpellCheckClient.cpp text = text.substr(misspelledPosition + misspelledLength); substr 31 content/shell/renderer/test_runner/TestCommon.cpp string path = url.substr(dataUrlPatternSize); substr 125 content/shell/renderer/test_runner/TestInterfaces.cpp string test_path = spec.substr(spec.find("/inspector/") + 11); substr 130 content/shell/renderer/test_runner/TestInterfaces.cpp test_path.substr(0, slash_index).c_str()); substr 121 content/shell/renderer/test_runner/WebTestProxy.cpp return url.substr(pos + 1); substr 194 content/shell/renderer/test_runner/WebTestProxy.cpp string filename = url.substr(pos + 1); substr 1299 content/shell/renderer/test_runner/WebTestProxy.cpp newMessage = newMessage.substr(0, fileProtocol) substr 1300 content/shell/renderer/test_runner/WebTestProxy.cpp + urlSuitableForTestResult(newMessage.substr(fileProtocol)); substr 343 content/shell/renderer/webkit_test_runner.cc std::string("file://") + utf8_path + utf8_url.substr(kPrefixLen); substr 475 content/shell/renderer/webkit_test_runner.cc return base_url.Resolve(resource.substr(strlen("/tmp/"))).spec(); substr 483 content/shell/renderer/webkit_test_runner.cc result = result.substr(0, strlen("file:///")) + substr 484 content/shell/renderer/webkit_test_runner.cc result.substr(strlen("file:////")); substr 207 content/test/plugin/plugin_geturl_test.cc filename = filename.substr(8); // remove "file:///" substr 211 content/test/plugin/plugin_geturl_test.cc filename = filename.substr(7); // remove "file://" substr 100 courgette/bsdiff_memory_unittest.cc std::string file1a = file1.substr(0, critical_size - 1); substr 103 courgette/bsdiff_memory_unittest.cc std::string file1b = file1.substr(0, critical_size - 2); substr 106 courgette/bsdiff_memory_unittest.cc std::string file1c = file1 + file1.substr(0, 1); substr 242 crypto/encryptor_unittest.cc encryptor.Decrypt(ciphertext_str.substr(offset, len), &decrypted)); substr 96 crypto/p224_spake_unittest.cc *m = m->substr(0, (i >> 3) % m->size()); substr 583 device/bluetooth/bluetooth_adapter_chromeos.cc if (board.substr(0, 6) == "stumpy") { substr 585 device/bluetooth/bluetooth_adapter_chromeos.cc } else if (board.substr(0, 4) == "link") { substr 159 device/bluetooth/bluetooth_device.cc std::string vendor = GetAddress().substr(0, 8); substr 104 device/bluetooth/bluetooth_service_record_win.cc numbers_only += address.substr(i * 3, 2); substr 34 device/bluetooth/bluetooth_uuid.cc uuid = uuid.substr(2); substr 235 device/hid/hid_connection_linux.cc std::string sub_path = device_path.substr(parent_path.length()); substr 236 device/hid/hid_connection_linux.cc if (sub_path.substr(0, sizeof(kHidrawSubsystem)-1) == kHidrawSubsystem) { substr 138 extensions/browser/event_router.cc return full_event_name.substr(0, slash_sep); substr 387 extensions/browser/extension_prefs.cc base::FilePath::StringType retval = child.value().substr( substr 390 extensions/browser/extension_prefs.cc return retval.substr(1); substr 87 extensions/browser/file_highlighter.cc return contents_.substr(0, start_); substr 91 extensions/browser/file_highlighter.cc return contents_.substr(start_, end_ - start_); substr 95 extensions/browser/file_highlighter.cc return contents_.substr(end_); substr 155 extensions/browser/file_highlighter.cc if (contents_.substr(start_ + 1, quote_end - 1 - start_) == feature) { substr 162 extensions/browser/file_highlighter.cc } else if (contents_.substr(start_, feature.size()) == feature) { substr 29 extensions/browser/image_util.cc formatted_color = color_string.substr(1, 6); substr 172 extensions/common/extension.cc path = relative_path.substr(1); substr 239 extensions/common/extension.cc working = working.substr(start_pos, end_pos - start_pos); substr 272 extensions/common/extension.cc output->append(input.substr(i, slice)); substr 193 extensions/common/extension_api.cc *feature_type = full_name.substr(0, colon_index); substr 194 extensions/common/extension_api.cc *feature_name = full_name.substr(colon_index + 1); substr 405 extensions/common/extension_api.cc *child_name = full_name.substr(result.length() + 1); substr 417 extensions/common/extension_api.cc api_name_candidate = api_name_candidate.substr(0, last_dot_index); substr 27 extensions/common/file_util.cc file_path = file_path.substr(skip); substr 87 extensions/common/manifest_handlers/sandboxed_page_info.cc relative_path = relative_path.substr(1, relative_path.length() - 1); substr 87 extensions/common/manifest_handlers/web_accessible_resources_info.cc relative_path = relative_path.substr(1, relative_path.length() - 1); substr 122 extensions/common/permissions/permission_message_util.cc rcd = host.substr(host.size() - reg_len); substr 123 extensions/common/permissions/permission_message_util.cc host = host.substr(0, host.size() - reg_len); substr 107 extensions/common/url_pattern.cc return wildcard_index == path_last ? path.substr(0, path_last) : path; substr 176 extensions/common/url_pattern.cc if (!SetScheme(pattern.substr(0, scheme_end_pos))) substr 217 extensions/common/url_pattern.cc host_ = pattern.substr(host_start_pos, host_end_pos - host_start_pos); substr 232 extensions/common/url_pattern.cc SetPath(pattern.substr(path_start_pos)); substr 236 extensions/common/url_pattern.cc if (!SetPort(host_.substr(port_pos + 1))) substr 238 extensions/common/url_pattern.cc host_ = host_.substr(0, port_pos); substr 61 google_apis/drive/base_requests.cc json.substr(0, 50).c_str(), substr 63 google_apis/drive/base_requests.cc json.substr(json.size() - 10).c_str()); substr 1193 google_apis/drive/drive_api_requests_unittest.cc const std::string payload = kTestContent.substr( substr 254 google_apis/drive/gdata_wapi_parser.cc *app_id = rel.as_string().substr(kOpenWithPrefixStr.size()); substr 568 google_apis/drive/gdata_wapi_parser.cc std::string type = term.substr(strlen(kTermPrefix)); substr 67 google_apis/drive/gdata_wapi_requests_unittest.cc remaining_path.substr(1), net::UnescapeRule::URL_SPECIAL_CHARS); substr 247 google_apis/drive/gdata_wapi_url_generator.cc : resource_id.substr(colon + 1))); substr 34 google_apis/drive/test_util.cc *output = input.substr(prefix.size()); substr 75 google_apis/gaia/fake_gaia.cc value = value.substr(0, value.size() -1); substr 91 google_apis/gaia/fake_gaia.cc *access_token = auth_header_entry->second.substr( substr 455 google_apis/gaia/gaia_auth_fetcher.cc auth_code->assign(part.substr( substr 64 google_apis/gaia/gaia_auth_util.cc return email.substr(separator_pos + 1); substr 385 google_apis/gaia/oauth_request_signer.cc url_without_parameters = spec.substr(0,question); substr 64 google_apis/gcm/engine/gcm_store_impl.cc return key.substr(arraysize(kRegistrationKeyStart) - 1); substr 76 google_apis/gcm/engine/gcm_store_impl.cc return key.substr(arraysize(kOutgoingMsgKeyStart) - 1); substr 428 google_apis/gcm/engine/gcm_store_impl.cc if (data_message.ParseFromString(outgoing_message.substr(1))) { substr 574 google_apis/gcm/engine/gcm_store_impl.cc !message->ParseFromString(iter->value().ToString().substr(1))) { substr 48 google_apis/gcm/engine/registration_info.cc std::string senders = value.substr(0, pos); substr 49 google_apis/gcm/engine/registration_info.cc registration_id = value.substr(pos + 1); substr 199 google_apis/gcm/engine/registration_request.cc *token = response.substr(token_pos + arraysize(kTokenPrefix) - 1); substr 208 google_apis/gcm/engine/registration_request.cc std::string error = response.substr( substr 81 google_apis/gcm/engine/unregistration_request.cc std::string app_id = response.substr( substr 89 google_apis/gcm/engine/unregistration_request.cc std::string error = response.substr( substr 233 gpu/command_buffer/service/feature_info.cc is_es3 = (lstr.substr(0, 12) == "opengl es 3."); substr 785 gpu/command_buffer/service/feature_info.cc extensions_.substr(pos + str.length(), 1) != " ") { substr 101 gpu/command_buffer/service/program_manager.cc *new_name = name.substr(0, open_pos); substr 894 gpu/command_buffer/service/program_manager.cc base_name = name.substr(0, name.size() - 3); substr 237 gpu/command_buffer/service/test_helper.cc bool is_es3 = (l_version.substr(0, 12) == "opengl es 3."); substr 306 gpu/command_buffer/service/test_helper.cc bool is_es3 = (l_version.substr(0, 12) == "opengl es 3."); substr 547 gpu/command_buffer/service/test_helper.cc base_name = base_name.substr(0, base_name.size() - 3); substr 1316 gpu/config/gpu_control_list.cc os_version = os_version.substr(0, pos); substr 68 gpu/config/gpu_info_collector.cc sub_string = version_string.substr(begin, end - begin); substr 70 gpu/config/gpu_info_collector.cc sub_string = version_string.substr(begin); substr 37 gpu/config/gpu_info_collector_android.cc sub_string = version_string.substr(begin, end - begin); substr 39 gpu/config/gpu_info_collector_android.cc sub_string = version_string.substr(begin); substr 542 gpu/config/gpu_info_collector_win.cc std::wstring vendor_string = id.substr(8, 4); substr 543 gpu/config/gpu_info_collector_win.cc std::wstring device_string = id.substr(17, 4); substr 597 gpu/config/gpu_info_collector_win.cc base::string16 vendor_id_string = id.substr(8, 4); substr 598 gpu/config/gpu_info_collector_win.cc base::string16 device_id_string = id.substr(17, 4); substr 61 gpu/config/gpu_info_collector_x11.cc return line.substr(begin); substr 63 gpu/config/gpu_info_collector_x11.cc return line.substr(begin, end - begin); substr 248 gpu/config/gpu_info_collector_x11.cc gl_version_string = gl_version_string.substr(10); substr 261 gpu/config/gpu_info_collector_x11.cc driver_version = driver_version.substr(0, pos); substr 194 ipc/ipc_channel_win.cc base::StringToInt(channel_id.substr(index + 1), secret); substr 195 ipc/ipc_channel_win.cc return base::ASCIIToWide(name.append(channel_id.substr(0, index - 1))); substr 58 media/audio/alsa/alsa_util.cc device_name.substr(pos1) : substr 59 media/audio/alsa/alsa_util.cc kMixerPrefix + device_name.substr(pos1, pos2 - pos1); substr 70 media/audio/sounds/wav_audio_handler.cc const int length = ParseSubChunk(wav_data.substr(offset)); substr 117 media/audio/sounds/wav_audio_handler.cc if (!ParseFmtChunk(data.substr(kChunkHeaderSize, chunk_length))) substr 120 media/audio/sounds/wav_audio_handler.cc if (!ParseDataChunk(data.substr(kChunkHeaderSize, chunk_length))) substr 123 media/audio/sounds/wav_audio_handler.cc DVLOG(1) << "Unknown data chunk: " << data.substr(0, 4) << "."; substr 48 media/cast/test/utility/input_builder.cc input = input.substr(0, input.size() - 1); // Strip last \n. substr 17 media/cdm/key_system_names.cc return key_system.substr(0, prefix.size()) == prefix; substr 92 media/cdm/ppapi/cdm_logging.cc filename = filename.substr(last_slash_pos + 1); substr 384 media/filters/chunk_demuxer_unittest.cc timestamp_str = timestamp_str.substr(0, timestamps[i].length() - 1); substr 352 media/filters/pipeline_integration_test.cc type = mimetype_.substr(0, semicolon); substr 364 media/filters/pipeline_integration_test.cc mimetype_.substr(codecs_param_start, substr 405 media/filters/source_buffer_stream_unittest.cc timestamps[i] = timestamps[i].substr(2, timestamps[i].length()); substr 411 media/filters/source_buffer_stream_unittest.cc timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1); substr 419 media/filters/source_buffer_stream_unittest.cc timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1); substr 424 media/filters/source_buffer_stream_unittest.cc timestamps[i] = timestamps[i].substr(0, timestamps[i].length() - 1); substr 51 media/midi/midi_manager_alsa.cc manufacturer = card_name.substr(0, name_index - 1); substr 39 media/video/capture/file_video_capture_device.cc *numerator = ParseY4MInt(token.substr(0, index_divider)); substr 40 media/video/capture/file_video_capture_device.cc *denominator = ParseY4MInt(token.substr(index_divider + 1, token.length())); substr 234 media/video/capture/linux/video_capture_device_linux.cc unique_id_.substr(dev_dir.length(), unique_id_.length()); substr 358 media/video/capture/win/video_capture_device_mf_win.cc unique_id_.substr(vid_location + vid_prefix_size, kVidPidSize); substr 360 media/video/capture/win/video_capture_device_mf_win.cc unique_id_.substr(pid_location + pid_prefix_size, kVidPidSize); substr 126 native_client_sdk/src/examples/api/audio/audio.cc std::string string_arg = message.substr(sep_pos + 1); substr 125 native_client_sdk/src/examples/api/file_io/file_io.cc std::string file_text = message.substr(reader.tellg()); substr 84 native_client_sdk/src/examples/api/socket/socket.cc Connect(message.substr(2), false); substr 89 native_client_sdk/src/examples/api/socket/socket.cc Connect(message.substr(2), true); substr 98 native_client_sdk/src/examples/api/socket/socket.cc int port = atoi(message.substr(2).c_str()); substr 105 native_client_sdk/src/examples/api/socket/socket.cc Send(message.substr(2)); substr 173 native_client_sdk/src/examples/api/socket/socket.cc hostname = host.substr(0, pos); substr 174 native_client_sdk/src/examples/api/socket/socket.cc port = atoi(host.substr(pos+1).c_str()); substr 45 native_client_sdk/src/examples/api/url_loader/url_loader.cc std::string url = message.substr(sep_pos + 1); substr 72 native_client_sdk/src/examples/api/websocket/websocket.cc Open(message.substr(2)); substr 81 native_client_sdk/src/examples/api/websocket/websocket.cc SendAsBinary(message.substr(2)); substr 86 native_client_sdk/src/examples/api/websocket/websocket.cc SendAsText(message.substr(2)); substr 361 native_client_sdk/src/examples/demo/drive/drive.cc std::string auth_token = message.substr(kTokenMessageLen); substr 135 native_client_sdk/src/examples/tutorial/dlopen/dlopen.cc std::string s = message.substr(strlen("reverse:")); substr 414 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc std::string key = it->substr(0, location); substr 415 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc std::string val = it->substr(location + 1); substr 493 native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc MessageHandlerInput(pp::Var(message.substr(prefix_len))); substr 285 native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_html5_fs.cc return path.substr(0, last_slash); substr 58 net/base/data_url.cc charset->assign(iter->substr(kCharsetTagLength)); substr 78 net/base/dns_util.cc domain.substr(i + 1, domain[i]).AppendToString(&ret); substr 52 net/base/hash_value.cc base64_str = value.substr(5); substr 55 net/base/hash_value.cc base64_str = value.substr(7); substr 210 net/base/mime_util.cc return GetMimeTypeFromExtension(file_name_str.substr(1), result); substr 560 net/base/mime_util.cc base::SplitString(mime_type_pattern.substr(semicolon + 1), substr 564 net/base/mime_util.cc base::SplitString(mime_type.substr(test_semicolon + 1), substr 595 net/base/mime_util.cc const std::string base_pattern(mime_type_pattern.substr(0, semicolon)); substr 597 net/base/mime_util.cc const std::string base_type(mime_type.substr(0, semicolon)); substr 614 net/base/mime_util.cc const std::string left(base_pattern.substr(0, star)); substr 615 net/base/mime_util.cc const std::string right(base_pattern.substr(star + 1)); substr 942 net/base/mime_util.cc std::string leading_mime_type = mime_type.substr(0, mime_type.length() - 1); substr 220 net/base/net_util.cc return !lang.substr(0, 2).compare("zh") || substr 221 net/base/net_util.cc !lang.substr(0, 2).compare("ja") || substr 222 net/base/net_util.cc !lang.substr(0, 2).compare("ko"); substr 639 net/base/net_util.cc FormatUrlWithOffsets(GURL(url_str.substr(kViewSourceLength)), languages, substr 1196 net/base/net_util.cc return StartsWith(text, www, true) ? text.substr(www.length()) : text; substr 1490 net/base/net_util.cc if (!ParseIPLiteralToNumber(hostname.substr(host_info.out_host.begin, substr 1849 net/base/net_util.cc url_string = url_string.substr(kHTTPSize); substr 2660 net/base/net_util_unittest.cc formatted.substr(parsed.username.begin, parsed.username.len)); substr 2662 net/base/net_util_unittest.cc formatted.substr(parsed.password.begin, parsed.password.len)); substr 2664 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2666 net/base/net_util_unittest.cc formatted.substr(parsed.port.begin, parsed.port.len)); substr 2668 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 2670 net/base/net_util_unittest.cc formatted.substr(parsed.query.begin, parsed.query.len)); substr 2672 net/base/net_util_unittest.cc formatted.substr(parsed.ref.begin, parsed.ref.len)); substr 2683 net/base/net_util_unittest.cc formatted.substr(parsed.username.begin, parsed.username.len)); substr 2685 net/base/net_util_unittest.cc formatted.substr(parsed.password.begin, parsed.password.len)); substr 2687 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2689 net/base/net_util_unittest.cc formatted.substr(parsed.port.begin, parsed.port.len)); substr 2691 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 2693 net/base/net_util_unittest.cc formatted.substr(parsed.query.begin, parsed.query.len)); substr 2695 net/base/net_util_unittest.cc formatted.substr(parsed.ref.begin, parsed.ref.len)); substr 2708 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2710 net/base/net_util_unittest.cc formatted.substr(parsed.port.begin, parsed.port.len)); substr 2712 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 2714 net/base/net_util_unittest.cc formatted.substr(parsed.query.begin, parsed.query.len)); substr 2716 net/base/net_util_unittest.cc formatted.substr(parsed.ref.begin, parsed.ref.len)); substr 2730 net/base/net_util_unittest.cc formatted.substr(parsed.scheme.begin, parsed.scheme.len)); substr 2734 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2736 net/base/net_util_unittest.cc formatted.substr(parsed.port.begin, parsed.port.len)); substr 2738 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 2740 net/base/net_util_unittest.cc formatted.substr(parsed.query.begin, parsed.query.len)); substr 2742 net/base/net_util_unittest.cc formatted.substr(parsed.ref.begin, parsed.ref.len)); substr 2757 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2759 net/base/net_util_unittest.cc formatted.substr(parsed.port.begin, parsed.port.len)); substr 2761 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 2763 net/base/net_util_unittest.cc formatted.substr(parsed.query.begin, parsed.query.len)); substr 2765 net/base/net_util_unittest.cc formatted.substr(parsed.ref.begin, parsed.ref.len)); substr 2780 net/base/net_util_unittest.cc formatted.substr(parsed.scheme.begin, parsed.scheme.len)); substr 2782 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2784 net/base/net_util_unittest.cc formatted.substr(parsed.port.begin, parsed.port.len)); substr 2786 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 2788 net/base/net_util_unittest.cc formatted.substr(parsed.query.begin, parsed.query.len)); substr 2790 net/base/net_util_unittest.cc formatted.substr(parsed.ref.begin, parsed.ref.len)); substr 2809 net/base/net_util_unittest.cc formatted.substr(parsed.host.begin, parsed.host.len)); substr 2811 net/base/net_util_unittest.cc formatted.substr(parsed.path.begin, parsed.path.len)); substr 189 net/base/registry_controlled_domains/registry_controlled_domain.cc return host.substr(dot + 1); substr 89 net/base/url_util.cc return url_.spec().substr(key_.begin, key_.len); substr 96 net/base/url_util.cc return url_.spec().substr(value_.begin, value_.len); substr 336 net/cert/cert_verify_proc_unittest.cc std::string size = key_type.substr(0, pos); substr 337 net/cert/cert_verify_proc_unittest.cc std::string type = key_type.substr(pos + 1); substr 50 net/cert/ct_serialization_unittest.cc test_digitally_signed_.substr(4), substr 58 net/cert/ct_serialization_unittest.cc digitally_signed.substr(0, test_digitally_signed_.size() - 5)); substr 69 net/cert/ct_serialization_unittest.cc digitally_signed.signature_data = test_digitally_signed_.substr(4); substr 90 net/cert/ct_serialization_unittest.cc EXPECT_EQ(expected_prefix, encoded.substr(0, 5)); substr 48 net/cert/pem_tokenizer.cc if (!str_.substr(pos_).starts_with(it->header)) substr 64 net/cert/pem_tokenizer.cc StringPiece encoded = str_.substr(data_begin, substr 214 net/cert/x509_certificate.cc *left = src.substr(0, pos); substr 215 net/cert/x509_certificate.cc *right = src.substr(pos); substr 102 net/cookies/canonical_cookie.cc return url_path.substr(0, idx); substr 2084 net/cookies/cookie_monster.cc return effective_domain.substr(1); substr 34 net/cookies/cookie_util.cc return host.substr(1); substr 209 net/cookies/cookie_util.cc const std::string host = domain[0] == '.' ? domain.substr(1) : domain; substr 437 net/dns/dns_config_service_win.cc config->search.push_back(primary_suffix.substr(offset + 1)); substr 38 net/dns/record_rdata.cc if (!parser.ReadName(data.substr(kSrvRecordMinimumSize).begin(), substr 199 net/dns/record_rdata.cc rdata->texts_.push_back(data.substr(i + 1, length).as_string()); substr 252 net/dns/record_rdata.cc base::StringPiece bitmap_data = data.substr(next_domain_length + 2); substr 131 net/ftp/ftp_ctrl_response_buffer.cc result.status_text = line.substr(4); substr 145 net/ftp/ftp_ctrl_response_buffer.cc lines_.push(ParseLine(buffer_.substr(cut_pos, i - cut_pos - 1))); substr 225 net/ftp/ftp_directory_listing_parser_ls.cc entry.name = entry.name.substr(0, pos); substr 104 net/ftp/ftp_directory_listing_parser_vms.cc match = match.substr(1); substr 105 net/ftp/ftp_directory_listing_parser_vms.cc pattern = pattern.substr(1); substr 119 net/ftp/ftp_directory_listing_parser_vms.cc base::SplitString(input.substr(1, input.length() - 2), ',', &parts); substr 175 net/ftp/ftp_directory_listing_parser_vms.cc time_column = time_column.substr(0, 8); substr 177 net/ftp/ftp_directory_listing_parser_vms.cc time_column = time_column.substr(0, 5); substr 170 net/ftp/ftp_network_transaction.cc line = line.substr(space_pos + 1); substr 179 net/ftp/ftp_network_transaction.cc line = line.substr(paren_pos + 1, closing_paren_pos - paren_pos - 1); substr 528 net/ftp/ftp_network_transaction.cc std::string typecode_string(gurl_path.substr(pos)); substr 893 net/ftp/ftp_network_transaction.cc line = line.substr(quote_pos + 1); substr 897 net/ftp/ftp_network_transaction.cc line = line.substr(0, quote_pos); substr 52 net/ftp/ftp_util.cc return unix_path.substr(1); // Drop the leading slash. substr 91 net/ftp/ftp_util.cc return path.substr(0, path.length() - 1); substr 123 net/ftp/ftp_util.cc result = result.substr(0, result.length() - 1); substr 188 net/ftp/ftp_util.cc map_[month_name.substr(0, 3)] = month + 1; substr 237 net/ftp/ftp_util.cc !AbbreviatedMonthToNumber(month.substr(month.length() - 3), substr 322 net/ftp/ftp_util.cc base::SplitString(time.substr(0, 5), ':', &time_parts); substr 335 net/ftp/ftp_util.cc base::string16 am_or_pm(time.substr(5, 2)); substr 368 net/ftp/ftp_util.cc base::string16 result(text.substr(iter.array_pos())); substr 26 net/http/http_auth_cache.cc return path.substr(0, last_slash + 1); substr 64 net/http/http_auth_handler_ntlm.cc domain = username.substr(0, backslash_idx); substr 65 net/http/http_auth_handler_ntlm.cc user = username.substr(backslash_idx + 1); substr 402 net/http/http_auth_sspi_win.cc *domain = combined.substr(0, backslash_idx); substr 403 net/http/http_auth_sspi_win.cc *user = combined.substr(backslash_idx + 1); substr 111 net/http/http_security_headers.cc pair.first = source.substr(0, point); substr 113 net/http/http_security_headers.cc pair.second = source.substr(point + 1); substr 764 net/http/http_stream_parser_unittest.cc blocks.push_back(response.substr(i, length)); substr 30 net/http/mock_http_cache.cc url = GURL(key.substr(slash + 1)); substr 278 net/proxy/proxy_bypass_rules.cc scheme = raw.substr(0, scheme_pos); substr 279 net/proxy/proxy_bypass_rules.cc raw = raw.substr(scheme_pos + 3); substr 325 net/proxy/proxy_bypass_rules.cc raw = raw.substr(0, pos_colon); substr 65 net/proxy/proxy_config_service_linux.cc host = host.substr(colon + 3); substr 74 net/proxy/proxy_config_service_linux.cc host = host.substr(at_sign + 1); substr 1041 net/proxy/proxy_config_service_linux.cc if (value.empty() || value.substr(0, 3) == "//:") substr 1090 net/proxy/proxy_resolver_v8_tracing_unittest.cc proxy_uri.substr(0, proxy_uri.find(':') + 1)); substr 71 net/proxy/proxy_server.cc return host.substr(1, len - 2); substr 630 net/quic/crypto/cert_compressor.cc (*out_certs)[i] = uncompressed.substr(0, cert_len).as_string(); substr 37 net/quic/crypto/cert_compressor_test.cc EXPECT_EQ("0100", base::HexEncode(compressed.substr(0, 2).data(), 2)); substr 34 net/quic/crypto/crypto_secret_boxer_test.cc EXPECT_FALSE(boxer.Unbox(box.substr(1, string::npos), &storage, &result)); substr 36 net/quic/crypto/crypto_secret_boxer_test.cc EXPECT_FALSE(boxer.Unbox(string(1, box[0]^0x80) + box.substr(1, string::npos), substr 88 net/quic/crypto/local_strike_register_client_test.cc string short_nonce = valid_nonce.substr(0, valid_nonce.length() - 1); substr 138 net/quic/crypto/proof_test.cc verifier.get(), server_config.substr(1, string::npos), server_config, substr 261 net/quic/crypto/proof_test.cc verifier.get(), hostname, server_config.substr(1, string::npos), substr 343 net/quic/crypto/proof_test.cc verifier.get(), hostname, server_config.substr(1, string::npos), substr 429 net/quic/quic_framer_test.cc StringPiece ciphertext(encrypted.AsStringPiece().substr( substr 231 net/quic/quic_stream_sequencer.cc it->second.substr(frame_offset))); substr 280 net/quic/quic_stream_sequencer.cc string new_data = it->second.substr(bytes_consumed); substr 291 net/quic/reliable_quic_stream.cc StringPiece remainder(data.substr(consumed_data.bytes_consumed)); substr 44 net/server/http_connection.cc recv_data_ = recv_data_.substr(num_bytes); substr 167 net/server/http_server.cc request.data = connection->recv_data_.substr(pos, content_length); substr 132 net/server/web_socket.cc key3_ = connection->recv_data().substr( substr 223 net/socket/socket_test_util.cc std::string actual_data(data.substr(0, w->data_len)); substr 53 net/spdy/hpack_encoder.cc out->push_back(cookie.substr(pos)); substr 56 net/spdy/hpack_encoder.cc out->push_back(cookie.substr(pos, end - pos)); substr 1194 net/spdy/spdy_framer.cc cookie_values.push_back(cookie_data.substr(0, i)); substr 64 net/spdy/spdy_http_utils.cc tval = value.substr(start, (end - start)); substr 66 net/spdy/spdy_http_utils.cc tval = value.substr(start); substr 68 net/spdy/spdy_http_utils.cc raw_headers.append(it->first.substr(1)); substr 839 net/spdy/spdy_test_util_common.cc key = key.substr(1); substr 54 net/test/embedded_test_server/embedded_test_server.cc std::string request_path(request.relative_url.substr(1)); substr 59 net/test/embedded_test_server/embedded_test_server.cc request_path = request_path.substr(0, query_pos); substr 57 net/test/embedded_test_server/http_request.cc std::string result = buffer_.substr(buffer_position_, line_length); substr 115 net/test/embedded_test_server/http_request.cc Trim(header_line.substr(1, header_line.size() - 1)); substr 121 net/test/embedded_test_server/http_request.cc header_name = Trim(header_line.substr(0, delimiter_pos)); substr 122 net/test/embedded_test_server/http_request.cc std::string header_value = Trim(header_line.substr( substr 68 net/tools/balsa/string_piece_utils.h return EqualIgnoreCase(text.substr(0, starts_with.size()), starts_with); substr 60 net/tools/dump_cache/cache_dumper.cc base::FilePath::StringType subdir = path.value().substr(0, pos); substr 82 net/tools/dump_cache/cache_dumper.cc std::string url = urlpos > 0 ? key.substr(urlpos) : key; substr 190 net/tools/dump_cache/cache_dumper.cc url = url.substr(pos); substr 104 net/tools/dump_cache/url_to_filename_encoder.cc segment = filename_prefix.substr(start_of_segment + 1); substr 105 net/tools/dump_cache/url_to_filename_encoder.cc *encoded_filename = filename_prefix.substr(0, start_of_segment + 1); substr 123 net/tools/dump_cache/url_to_filename_encoder.h url_filename = url_filename.substr(1); substr 42 net/tools/flip_server/loadtime_measurement.h std::string action = uri.substr(9); substr 56 net/tools/flip_server/loadtime_measurement.h int num = atoi(action.substr(b + 1).c_str()); substr 169 net/tools/flip_server/mem_cache.cc visitor.body = filename_contents.substr(pos); substr 192 net/tools/flip_server/mem_cache.cc DCHECK_EQ(std::string(filename).substr(0, cwd_.size()), cwd_); substr 194 net/tools/flip_server/mem_cache.cc std::string filename_stripped = std::string(filename).substr(cwd_.size() + 1); substr 202 net/tools/flip_server/mem_cache.cc &visitor.headers, filename_stripped.substr(0, slash_pos), visitor.body); substr 208 net/tools/flip_server/mem_cache.cc fi = files_.find(filename.substr(0, filename.size() - 5) + ".http"); substr 203 net/tools/quic/quic_in_memory_cache.cc StringPiece host(base.substr(0, path_start)); substr 204 net/tools/quic/quic_in_memory_cache.cc StringPiece path(base.substr(path_start)); substr 127 net/tools/tld_cleanup/tld_cleanup_util.cc domain->assign(spec.substr(host.begin, host.len)); substr 190 net/tools/tld_cleanup/tld_cleanup_util.cc std::string extra_rule_domain = domain.substr(tld_start + 1); substr 565 net/url_request/url_fetcher_impl_unittest.cc EXPECT_EQ(expected.substr(range_offset_, expected_size), data); substr 440 net/websockets/websocket_handshake_handler.cc tval = value.substr(start, (end - start)); substr 442 net/websockets/websocket_handshake_handler.cc tval = value.substr(start); substr 448 net/websockets/websocket_handshake_handler.cc AppendHeader(iter->first.substr(1), tval, &response_message); substr 487 net/websockets/websocket_handshake_handler.cc return original_.substr(0, original_header_length_); substr 25 net/websockets/websocket_net_log_params.cc std::string entry = headers->substr(last, pos - last); substr 116 ppapi/examples/audio_input/audio_input.cc std::string index_str = event.substr(strlen("Monitor:")); substr 123 ppapi/examples/audio_input/audio_input.cc std::string index_str = event.substr(strlen("Enumerate:")); substr 150 ppapi/examples/ime/ime.cc utf8_text_.substr(0, SelectionLeft())); substr 152 ppapi/examples/ime/ime.cc utf8_text_.substr(0, SelectionRight())); substr 158 ppapi/examples/ime/ime.cc std::string str = utf8_text_.substr(0, caret_pos_); substr 174 ppapi/examples/ime/ime.cc str.substr(0, composition_selection_.first)); substr 176 ppapi/examples/ime/ime.cc str.substr(0, composition_selection_.second)); substr 192 ppapi/examples/ime/ime.cc int lx = font_.MeasureSimpleText(str.substr(0, l)); substr 193 ppapi/examples/ime/ime.cc int rx = font_.MeasureSimpleText(str.substr(0, r)); substr 204 ppapi/examples/ime/ime.cc str.substr(0, composition_selection_.first)); substr 212 ppapi/examples/ime/ime.cc std::string str = utf8_text_.substr(caret_pos_); substr 363 ppapi/examples/ime/ime.cc std::string str = utf8_text_.substr(0, caret_pos_); substr 365 ppapi/examples/ime/ime.cc str += composition_.substr(0, composition_selection_.first); substr 370 ppapi/examples/ime/ime.cc utf8_text_.substr(SelectionLeft(), substr 223 ppapi/examples/video_capture/video_capture.cc std::string index_str = event.substr(strlen("Monitor:")); substr 230 ppapi/examples/video_capture/video_capture.cc std::string index_str = event.substr(strlen("Enumerate:")); substr 29 ppapi/native_client/src/trusted/plugin/nacl_http_response_headers.cc elems->push_back(str.substr(0, pos)); substr 30 ppapi/native_client/src/trusted/plugin/nacl_http_response_headers.cc elems->push_back(str.substr(pos + 1)); substr 94 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc nacl::string key_basename = key.substr(kFilesPrefix.length()); substr 41 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc nacl::string r = full_url.substr(nacl::string(kPnaclBaseUrl).length()); substr 117 ppapi/proxy/file_ref_resource.cc std::string parent_path = create_info_.internal_path.substr(0, pos); substr 20 ppapi/shared_impl/file_ref_create_info.cc return base::WideToUTF8(path.substr(pos + 1)); substr 22 ppapi/shared_impl/file_ref_create_info.cc return path.substr(pos + 1); substr 18 ppapi/shared_impl/file_ref_util.cc return path.substr(pos + 1); substr 26 ppapi/shared_impl/file_ref_util.cc return base::WideToUTF8(file_path.substr(pos + 1)); substr 28 ppapi/shared_impl/file_ref_util.cc return file_path.substr(pos + 1); substr 44 ppapi/shared_impl/var.cc result = string->value().substr(0, kTruncateAboveLength) + "..."; substr 71 ppapi/tests/extensions/socket/test_socket.cc parts.push_back(control_message.substr(pos, next_match - pos)); substr 25 ppapi/tests/test_case.cc return test_name.substr(strlen(prefixes[i])); substr 43 ppapi/tests/test_case.cc return full_test_name.substr(delim+1); substr 118 ppapi/tests/test_flash_drm.cc path_string.substr(path_string.size() - expected_filename.size())); substr 20 ppapi/tests/test_tcp_socket.cc s.substr(0, 5) == "HTTP/" && substr 21 ppapi/tests/test_tcp_socket.cc s.substr(s.size() - 2) == "\r\n"; substr 21 ppapi/tests/test_tcp_socket_private.cc s.substr(0, 5) == "HTTP/" && substr 22 ppapi/tests/test_tcp_socket_private.cc s.substr(s.size() - 2) == "\r\n"; substr 388 ppapi/tests/test_url_loader.cc return LoadAndCompareBody(request, postdata.substr(4, 12)); substr 80 ppapi/tests/test_utils.cc host->assign(url.substr(components.host.begin, components.host.len)); substr 85 ppapi/tests/test_utils.cc int i = atoi(url.substr(components.port.begin, components.port.len).c_str()); substr 238 ppapi/tests/testing_instance.cc std::string case_name = name.substr(0, name.find_first_of('_')); substr 57 printing/backend/cups_helper.cc line = line.substr(kDefaultLen); substr 60 printing/backend/cups_helper.cc line = line.substr(kDestLen); substr 73 printing/backend/cups_helper.cc std::string name = line.substr(0, space_found); substr 82 printing/backend/cups_helper.cc line = line.substr(space_found + 1); substr 23 remoting/base/auth_token_util.cc auth_service->assign(auth_service_with_token.substr(0, delimiter_pos)); substr 27 remoting/base/auth_token_util.cc auth_token->assign(auth_service_with_token.substr(delimiter_pos + 1)); substr 1100 remoting/client/plugin/chromoting_instance.cc std::string url_scheme = url.substr(url_components.scheme.begin, substr 197 remoting/host/client_session.cc reply.set_data(message.data().substr(0, 16)); substr 164 remoting/host/disconnect_window_linux.cc base::UTF8ToUTF16(client_jid.substr(0, client_jid.find('/'))); substr 128 remoting/host/disconnect_window_win.cc username_ = client_jid.substr(0, client_jid.find('/')); substr 19 remoting/host/setup/oauth_helper.cc return url.substr(component.begin, component.len); substr 17 remoting/host/setup/oauth_helper_unittest.cc return s.substr(0, pos) + new_substr + substr 18 remoting/host/setup/oauth_helper_unittest.cc s.substr(pos + old_substr.length(), std::string::npos); substr 135 remoting/protocol/authentication_method.cc std::string function_name = as_string.substr(0, separator); substr 144 remoting/protocol/authentication_method.cc if (!base::Base64Decode(as_string.substr(separator + 1), &value)) { substr 131 remoting/protocol/me2me_host_authenticator_factory.cc remote_jid_prefix = local_jid.substr(0, slash_pos); substr 105 rlz/lib/rlz_lib.cc std::string events = response_line.substr(field_header.size()); substr 111 rlz/lib/rlz_lib.cc events = events.substr(0, events_length); substr 122 rlz/lib/rlz_lib.cc std::string event_string = events.substr(event_begin, substr 129 rlz/lib/rlz_lib.cc if (!GetAccessPointFromName(event_string.substr(0, 2).c_str(), &point) || substr 134 rlz/lib/rlz_lib.cc if (!GetEventFromName(event_string.substr(event_string.size() - 1).c_str(), substr 420 rlz/lib/rlz_lib.cc std::string message(response_string.substr(0, checksum_index + 1)); substr 439 rlz/lib/rlz_lib.cc std::string checksum = response_string.substr(checksum_begin, substr 535 rlz/lib/rlz_lib.cc response_line = response_string.substr(line_begin, line_end - line_begin); substr 544 rlz/lib/rlz_lib.cc response_line.substr(3, separator_index - rlz_cgi_length); substr 551 rlz/lib/rlz_lib.cc std::string rlz_value(response_line.substr(separator_index + 2)); substr 562 rlz/lib/rlz_lib.cc SetAccessPointRlz(point, rlz_value.substr(0, rlz_length).c_str()); substr 537 sandbox/win/src/file_policy_test.cc base::string16 temp_file_title = subfolder.substr(subfolder.rfind(L"\\") + 1); substr 329 sandbox/win/src/policy_target_test.cc desktop_name = desktop_name.substr(desktop_name.find_first_of(L'\\') + 1); substr 40 sandbox/win/src/process_thread_dispatcher.cc exe_name = cmd_line.substr(1, pos - 1); substr 49 sandbox/win/src/process_thread_dispatcher.cc exe_name = cmd_line.substr(0, pos); substr 75 sandbox/win/src/win_utils.cc *resolved_name += name.substr(wcslen(kKnownKey[i].name)); substr 88 sandbox/win/src/win_utils.cc path = path.substr(kNTPrefixLen); substr 99 sandbox/win/src/win_utils.cc path = path.substr(0, last_pos); substr 141 sandbox/win/src/win_utils.cc path = path.substr(0, path.length() - 1); substr 190 sandbox/win/src/win_utils.cc path = path.substr(kNTPrefixLen); substr 214 sandbox/win/src/win_utils.cc base::string16 begin = path.substr(0, last_slash); substr 215 sandbox/win/src/win_utils.cc base::string16 end = path.substr(last_slash); substr 40 sandbox/win/tests/validation_tests/commands.cc (*string) = string->substr(pos1, pos2 + 1); substr 134 sandbox/win/tests/validation_tests/suite.cc desktop_name = desktop_name.substr(desktop_name.find('\\') + 1); substr 140 sync/engine/net/server_connection_manager.cc return s.substr(0, stripped_end_pos); substr 211 sync/internal_api/public/base/unique_position.cc return bytes.substr(prefix_len, std::string::npos); substr 230 sync/internal_api/public/base/unique_position.cc if (suffix.substr(suffix_zeroes) < reference.substr(ref_zeroes)) { substr 265 sync/internal_api/public/base/unique_position.cc if (suffix.substr(suffix_FFs) > reference.substr(ref_FFs)) { substr 311 sync/internal_api/public/base/unique_position.cc if (before.substr(i+1) < suffix && suffix < after.substr(i+1)) { substr 327 sync/internal_api/public/base/unique_position.cc mid_a.append(FindGreaterWithSuffix(before.substr(i+1), suffix)); substr 337 sync/internal_api/public/base/unique_position.cc mid_b.append(FindSmallerWithSuffix(after.substr(i+1), suffix)); substr 349 sync/internal_api/public/base/unique_position.cc DCHECK_EQ(before.substr(0, i), after.substr(0, i)); substr 358 sync/internal_api/public/base/unique_position.cc mid.append(FindSmallerWithSuffix(after.substr(i), suffix)); substr 2222 sync/internal_api/sync_manager_impl_unittest.cc EXPECT_EQ(node.GetTitle(), title.substr(0, 255)); substr 2233 sync/internal_api/sync_manager_impl_unittest.cc EXPECT_EQ(node.GetTitle(), title.substr(0, 255)); substr 60 sync/internal_api/syncapi_internal.cc *out = server_name.substr(0, length_to_copy); substr 1247 sync/syncable/directory_backing_store.cc id_string.substr(1)); substr 1263 sync/syncable/directory_backing_store.cc id_string.substr(1)); substr 704 sync/syncable/model_type.cc working_copy = working_copy.substr(working_copy.find_first_not_of(' ')); substr 713 sync/syncable/model_type.cc type_str = working_copy.substr(0, end); substr 718 sync/syncable/model_type.cc working_copy = working_copy.substr(end + 1); substr 31 sync/syncable/syncable_id.cc return s_.substr(1); substr 38 sync/util/get_session_name.cc session_name = board.substr(0, 6) == "stumpy" ? "Chromebox" : "Chromebook"; substr 206 sync/util/nigori.cc std::string iv(input.substr(0, kIvSize)); substr 207 sync/util/nigori.cc std::string ciphertext(input.substr(kIvSize, substr 209 sync/util/nigori.cc std::string hash(input.substr(input.size() - kHashSize, kHashSize)); substr 105 third_party/libaddressinput/chromium/cpp/src/retriever.cc data_and_footer->substr(footer_start + footer_prefix.length()); substr 244 third_party/libaddressinput/chromium/cpp/src/retriever.cc ? url.substr(validation_data_url_.length()) substr 110 third_party/libaddressinput/chromium/cpp/src/rule.cc const std::string literal = format_parts[i].substr(1); substr 41 third_party/libaddressinput/chromium/cpp/src/util/string_util.cc if (language_code.substr(pos) == "-latn") { substr 44 third_party/libaddressinput/chromium/cpp/src/util/string_util.cc return language_code.substr(0, pos); substr 42 third_party/libaddressinput/chromium/cpp/test/fake_downloader.cc : key.substr(0, language_code_pos); substr 57 third_party/libaddressinput/chromium/cpp/test/fake_downloader.cc return key.substr(0, split); substr 74 third_party/libaddressinput/chromium/cpp/test/fake_downloader.cc std::string key = line.substr(0, divider); substr 76 third_party/libaddressinput/chromium/cpp/test/fake_downloader.cc std::string value = line.substr(divider + 1); substr 230 third_party/libaddressinput/chromium/cpp/test/retriever_test.cc EXPECT_EQ(data_, storage_->SynchronousGet(kKey).substr(0, data_.size())); substr 244 third_party/libaddressinput/chromium/cpp/test/retriever_test.cc storage_->SynchronousGet(not_a_key).substr(0, sizeof kEmptyData - 1)); substr 262 third_party/libjingle/overrides/talk/base/logging.cc std::string substr(reinterpret_cast<const char*>(line), end_of_line - line); substr 263 third_party/libjingle/overrides/talk/base/logging.cc std::string::size_type pos_private = substr.find("Email"); substr 265 third_party/libjingle/overrides/talk/base/logging.cc pos_private = substr.find("Passwd"); substr 268 third_party/libjingle/overrides/talk/base/logging.cc LOG_V(level) << label << direction << substr; substr 49 third_party/power_gadget/PowerGadgetLib.cpp wstring substring( s.substr(prev_pos, pos-prev_pos) ); substr 61 third_party/power_gadget/PowerGadgetLib.cpp wstring substring(s.substr(prev_pos, pos-prev_pos)); substr 73 third_party/power_gadget/PowerGadgetLib.cpp wstring version = path.substr(pos+1, path.length()); substr 71 third_party/protobuf/src/google/protobuf/compiler/code_generator.cc value.first = parts[i].substr(0, equals_pos); substr 72 third_party/protobuf/src/google/protobuf/compiler/code_generator.cc value.second = parts[i].substr(equals_pos + 1); substr 934 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc virtual_path = parts[i].substr(0, equals_pos); substr 935 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc disk_path = parts[i].substr(equals_pos + 1); substr 1054 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc plugin_name = value.substr(slash_pos + 1); substr 1058 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc plugin_name = value.substr(0, equals_pos); substr 1059 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc path = value.substr(equals_pos + 1); substr 1105 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc directive.parameter = value.substr(0, colon_pos); substr 1106 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc directive.output_location = value.substr(colon_pos + 1); substr 1192 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc output_directive.name.substr(2, output_directive.name.size() - 6); substr 320 third_party/protobuf/src/google/protobuf/compiler/command_line_interface_unittest.cc string dir = name.substr(0, slash_pos); substr 581 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc CEscape(file_data.substr(i, kBytesPerLine)))); substr 139 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc string inner_name = descriptor->full_name().substr(outer_name.size()); substr 67 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc "def", def.substr(0, def.find_first_of('\n'))); substr 236 third_party/protobuf/src/google/protobuf/compiler/importer.cc path = "\\\\" + StringReplace(path.substr(2), "\\", "/", true); substr 329 third_party/protobuf/src/google/protobuf/compiler/importer.cc string after_prefix = filename.substr(after_prefix_start); substr 323 third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc "data", CEscape(file_data.substr(i, kBytesPerLine))); substr 130 third_party/protobuf/src/google/protobuf/compiler/java/java_helpers.cc basename = file->name().substr(last_slash + 1); substr 175 third_party/protobuf/src/google/protobuf/compiler/java/java_helpers.cc result += full_name.substr(file->package().size() + 1); substr 68 third_party/protobuf/src/google/protobuf/compiler/java/java_message.cc "def", def.substr(0, def.find_first_of('\n'))); substr 1340 third_party/protobuf/src/google/protobuf/descriptor.cc prefix = prefix.substr(0, dot_pos); substr 2660 third_party/protobuf/src/google/protobuf/descriptor.cc return FindSymbol(name.substr(1)); substr 2679 third_party/protobuf/src/google/protobuf/descriptor.cc first_part_of_name = name.substr(0, name_dot_pos); substr 2746 third_party/protobuf/src/google/protobuf/descriptor.cc placeholder_full_name = tables_->AllocateString(name.substr(1)); substr 2754 third_party/protobuf/src/google/protobuf/descriptor.cc placeholder_full_name->substr(0, dotpos)); substr 2756 third_party/protobuf/src/google/protobuf/descriptor.cc placeholder_full_name->substr(dotpos + 1)); substr 2877 third_party/protobuf/src/google/protobuf/descriptor.cc "\"" + full_name.substr(dot_pos + 1) + substr 2879 third_party/protobuf/src/google/protobuf/descriptor.cc full_name.substr(0, dot_pos) + "\"."); substr 2901 third_party/protobuf/src/google/protobuf/descriptor.cc string* parent_name = tables_->AllocateString(name.substr(0, dot_pos)); substr 2903 third_party/protobuf/src/google/protobuf/descriptor.cc ValidateSymbolName(name.substr(dot_pos + 1), name, proto); substr 157 third_party/protobuf/src/google/protobuf/descriptor_database.cc make_pair(field.extendee().substr(1), substr 86 third_party/protobuf/src/google/protobuf/message_unittest.cc EXPECT_EQ("bar", str2.substr(0, 3)); substr 89 third_party/protobuf/src/google/protobuf/message_unittest.cc EXPECT_TRUE(str2.substr(3) == str1); substr 177 third_party/protobuf/src/google/protobuf/stubs/strutil.cc *result++ = full.substr(begin_index); substr 180 third_party/protobuf/src/google/protobuf/stubs/strutil.cc *result++ = full.substr(begin_index, (end_index - begin_index)); substr 215 third_party/protobuf/src/google/protobuf/stubs/strutil.cc *result++ = full.substr(begin_index); substr 218 third_party/protobuf/src/google/protobuf/stubs/strutil.cc *result++ = full.substr(begin_index, (end_index - begin_index)); substr 221 third_party/protobuf/src/google/protobuf/stubs/strutil.cc *result++ = full.substr(begin_index); substr 88 third_party/protobuf/src/google/protobuf/stubs/strutil.h return str.substr(prefix.size()); substr 110 third_party/protobuf/src/google/protobuf/stubs/strutil.h return str.substr(0, str.size() - suffix.size()); substr 112 third_party/protobuf/src/google/protobuf/testing/file.cc return RecursivelyCreateDir(path.substr(0, slashpos), mode) && substr 852 third_party/protobuf/src/google/protobuf/wire_format_unittest.cc return s.substr(0, prefix.length()) == prefix; substr 129 third_party/re2/re2/re2.cc return pattern.substr(0, 100).as_string() + "..."; substr 491 third_party/re2/re2/re2.cc pmin = prefix_.substr(0, n); substr 492 third_party/re2/re2/re2.cc pmax = prefix_.substr(0, n); substr 149 third_party/re2/re2/stringpiece.h StringPiece substr(size_type pos, size_type n = npos) const; substr 83222 third_party/sqlite/amalgamation/sqlite3.c FUNCTION(substr, 2, 0, 0, substrFunc ), substr 83223 third_party/sqlite/amalgamation/sqlite3.c FUNCTION(substr, 3, 0, 0, substrFunc ), substr 1523 third_party/sqlite/src/src/func.c FUNCTION(substr, 2, 0, 0, substrFunc ), substr 1524 third_party/sqlite/src/src/func.c FUNCTION(substr, 3, 0, 0, substrFunc ), substr 26 tools/clang/plugins/ChromeClassTester.cpp return one.substr(two.size()); substr 197 tools/cygprofile/cygprofile.cc (strtol((str_line.substr(0, dashindex)).c_str(), substr 201 tools/cygprofile/cygprofile.cc (strtol((str_line.substr(dashindex + 1, substr 52 tools/gn/command_args.cc return " " + line.substr(line.find('#') + 1).as_string(); substr 23 tools/gn/err.cc return data.substr(line_off, end - line_off).as_string(); substr 271 tools/gn/file_template.cc t.container().push_back(Subrange(Subrange::LITERAL, str.substr(cur))); substr 275 tools/gn/file_template.cc Subrange(Subrange::LITERAL, str.substr(cur, next - cur))); substr 397 tools/gn/filesystem_utils.cc path.substr(0, source_root.size()))) substr 402 tools/gn/filesystem_utils.cc DoesBeginWindowsDriveLetter(path.substr(1))) { substr 405 tools/gn/filesystem_utils.cc path.substr(1, source_root.size()))) substr 431 tools/gn/filesystem_utils.cc if (path.substr(0, source_root.size()) == source_root) { substr 140 tools/gn/input_conversion.cc input_conversion.substr(arraysize(kTrimPrefix) - 1), err); substr 19 tools/gn/label.cc return dir.value().substr(0, dir.value().size() - 1); substr 297 tools/gn/ninja_binary_target_writer.cc all_libs[i].substr(0, all_libs[i].size() - framework_ending.size()), substr 105 tools/gn/ninja_helper.cc AppendStringPiece(&ret.value(), dir.substr(1)); substr 121 tools/gn/path_output.cc if (str.substr(0, current_dir_.value().size()) == substr 125 tools/gn/path_output.cc EscapeStringToStream(out, str.substr(current_dir_.value().size()), substr 128 tools/gn/path_output.cc WriteSourceRelativeString(out, str.substr(2)); substr 135 tools/gn/path_output.cc EscapeStringToStream(out, str.substr(1), options_); substr 128 tools/gn/standard_out.cc OutputString(" " + line.substr(0, colon_offset), DECORATION_YELLOW); substr 143 tools/gn/standard_out.cc OutputString(line.substr(begin_bracket, first_normal - begin_bracket), substr 147 tools/gn/standard_out.cc OutputString(line.substr(first_normal) + "\n"); substr 163 tools/gn/standard_out.cc OutputString(line.substr(0, chars_to_highlight), DECORATION_YELLOW); substr 164 tools/gn/standard_out.cc OutputString(line.substr(chars_to_highlight) + "\n"); substr 169 tools/gn/string_utils.cc return str.substr(prefix.size()); substr 181 tools/gn/visibility.cc path = path.substr(0, path.size() - 1); substr 441 tools/imagediff/image_diff_png.cc png_text_[pos].key = strdup(comment.key.substr(0, 78).c_str()); substr 142 tools/ipc_fuzzer/message_lib/message_file_reader.cc string_table_ = file_data_.substr(string_table_offset); substr 1068 tools/traceline/traceline/main.cc str = str.substr(0, str.find('\0')); substr 1094 tools/traceline/traceline/main.cc str = str.substr(0, str.find('\0')); substr 82 tools/traceline/traceline/sym_resolver.h filename = filename.substr(filename.find_last_of('\\') + 1); substr 73 tools/win/link_limiter/limiter.cc cmdline = exe_name + cmdline.substr(first_space); substr 318 tools/win/link_limiter/limiter.cc shimmed_plus_pipename = shimmed_plus_pipename.substr(last_slash + 1); substr 326 tools/win/link_limiter/limiter.cc tstring shimmed_exe = shimmed_plus_pipename.substr(0, separator); substr 327 tools/win/link_limiter/limiter.cc tstring base_pipename = shimmed_plus_pipename.substr(separator + 2); substr 333 tools/win/link_limiter/limiter.cc base_pipename = base_pipename.substr(0, dot); substr 99 ui/app_list/app_list_item.cc return id_.substr(0, 8) + " '" + name_ + "'" substr 95 ui/app_list/app_list_item_list.cc LOG(ERROR) << "SetItemPosition: Not in list: " << item->id().substr(0, 8); substr 109 ui/app_list/app_list_item_list.cc DVLOG(2) << "SetItemPosition: No change: " << item->id().substr(0, 8); substr 116 ui/app_list/app_list_item_list.cc DVLOG(2) << "SetItemPosition: " << item->id().substr(0, 8) << " -> " substr 191 ui/app_list/views/folder_header_view.cc folder_name_view_->text().substr(0, kMaxFolderNameChars)); substr 3063 ui/aura/window_unittest.cc description.substr(start_pos, part_length); substr 458 ui/base/clipboard/clipboard_util_win.cc *html = cf_html.substr(fragment_start, fragment_end - fragment_start); substr 476 ui/base/clipboard/clipboard_util_win.cc *base_url = cf_html.substr(src_start, src_end - src_start); substr 672 ui/base/clipboard/clipboard_win.cc title->assign(bookmark.substr(0, title_end)); substr 678 ui/base/clipboard/clipboard_win.cc bookmark.substr(url_start, base::string16::npos)); substr 276 ui/base/dragdrop/gtk_dnd_util.cc GURL gurl(data.substr(0, newline)); substr 281 ui/base/dragdrop/gtk_dnd_util.cc *title = base::UTF8ToUTF16(data.substr(newline + 1)); substr 305 ui/base/ime/input_method_chromeos_unittest.cc *text = surrounding_text_.substr(range.GetMin(), range.length()); substr 203 ui/base/l10n/l10n_util.cc if (LowerCaseEqualsASCII(locale_name.substr(0, 3), "es_")) substr 608 ui/base/l10n/l10n_util.cc std::string keywords = locale.substr(split_point + 1); substr 609 ui/base/l10n/l10n_util.cc prefix = locale.substr(0, split_point); substr 93 ui/base/webui/web_ui_util.cc identifier.substr(0, identifier.length() - 1).CopyToString(&stripped); substr 106 ui/base/webui/web_ui_util.cc *path = net::UnescapeURLComponent(url.path().substr(1), substr 118 ui/base/webui/web_ui_util.cc if (ParseScaleFactor(stripped_path.substr( substr 549 ui/gfx/codec/png_codec.cc png_text_[pos].key = base::strdup(comment.key.substr(0, 78).c_str()); substr 1139 ui/gfx/render_text.cc layout_text_.replace(cp_start, 1, text_.substr(start, end - start)); substr 1150 ui/gfx/render_text.cc layout_text_.assign(text.substr(0, iter.getIndex()) + gfx::kEllipsisUTF16); substr 58 ui/gfx/render_text_unittest.cc return render_text->text().substr(render_text->selection().GetMin(), substr 56 ui/gfx/text_elider.cc text_.substr(FindValidBoundaryBefore(text_.length() - length)); substr 59 ui/gfx/text_elider.cc return text_.substr(0, FindValidBoundaryBefore(length)) + ellipsis_text; substr 68 ui/gfx/text_elider.cc return text_.substr(0, prefix_length) + ellipsis_text + substr 69 ui/gfx/text_elider.cc text_.substr(suffix_start, suffix_length); substr 99 ui/gfx/text_elider.cc base::string16 username = email.substr(0, split_index); substr 100 ui/gfx/text_elider.cc base::string16 domain = email.substr(split_index + 1); substr 114 ui/gfx/text_elider.cc GetStringWidthF(username.substr(0, 1) + kEllipsisUTF16, substr 270 ui/gfx/text_elider.cc output->assign(input.substr(0, 1)); substr 273 ui/gfx/text_elider.cc output->assign(input.substr(0, 2)); substr 276 ui/gfx/text_elider.cc output->assign(input.substr(0, 1) + ASCIIToUTF16(".") + substr 277 ui/gfx/text_elider.cc input.substr(input.length() - 1)); substr 280 ui/gfx/text_elider.cc output->assign(input.substr(0, 1) + ASCIIToUTF16("..") + substr 281 ui/gfx/text_elider.cc input.substr(input.length() - 1)); substr 286 ui/gfx/text_elider.cc output->assign(input.substr(0, lstr_len) + ASCIIToUTF16("...") + substr 287 ui/gfx/text_elider.cc input.substr(input.length() - rstr_len)); substr 425 ui/gfx/text_elider.cc Append(word.substr(array_start, chars.array_pos() - array_start)); substr 434 ui/gfx/text_elider.cc Append(word.substr(array_start, chars.array_pos() - array_start)); substr 641 ui/gfx/text_elider.cc fragment = text.substr(0, 1); substr 645 ui/gfx/text_elider.cc text = text.substr(fragment.length()); substr 776 ui/gfx/text_elider.cc return string.substr(0, max) + kElideString; substr 810 ui/gfx/text_elider.cc return string.substr(0, index) + kElideString; substr 23 ui/gl/gl_version_info.cc is_es = (lstr.substr(0, 9) == "opengl es"); substr 25 ui/gl/gl_version_info.cc is_es1 = (lstr.substr(9, 2) == "-c" && lstr.substr(13, 2) == "1."); substr 26 ui/gl/gl_version_info.cc is_es2 = (lstr.substr(9, 3) == " 2."); substr 27 ui/gl/gl_version_info.cc is_es3 = (lstr.substr(9, 3) == " 3."); substr 29 ui/gl/gl_version_info.cc is_gl2 = (lstr.substr(0, 2) == "2."); substr 30 ui/gl/gl_version_info.cc is_gl3 = (lstr.substr(0, 2) == "3."); substr 31 ui/gl/gl_version_info.cc is_gl4 = (lstr.substr(0, 2) == "4."); substr 45 ui/shell_dialogs/select_file_dialog_win.cc return extension.empty() ? extension : extension.substr(1); substr 156 ui/shell_dialogs/select_file_dialog_win.cc std::wstring first_extension = ext.substr(ext.find(L'.')); substr 159 ui/shell_dialogs/select_file_dialog_win.cc first_extension = first_extension.substr(0, first_separator_index); substr 165 ui/shell_dialogs/select_file_dialog_win.cc ext_name = ext_name.substr(ext_index); substr 965 ui/views/accessibility/native_view_accessibility_win.cc base::string16 substr = substr 966 ui/views/accessibility/native_view_accessibility_win.cc text_str.substr(start_offset, end_offset - start_offset); substr 967 ui/views/accessibility/native_view_accessibility_win.cc if (substr.empty()) substr 970 ui/views/accessibility/native_view_accessibility_win.cc *text = SysAllocString(substr.c_str()); substr 47 ui/views/color_chooser/color_chooser_view.cc base::UTF16ToUTF8((text.size() == 6) ? text : text.substr(1)); substr 205 ui/views/controls/menu/menu_item_view.cc accessible_name.substr(index + 1)); substr 243 ui/views/controls/menu/native_menu_win.cc accel = label.substr(tab_pos); substr 244 ui/views/controls/menu/native_menu_win.cc label = label.substr(0, tab_pos); substr 54 ui/views/controls/message_box_view.cc paragraphs->push_back(text.substr(start, i - start)); substr 58 ui/views/controls/message_box_view.cc paragraphs->push_back(text.substr(start, text.length() - start)); substr 267 ui/views/controls/styled_label.cc chunk = chunk.substr(0, std::min(chunk.size(), range.end() - position)); substr 279 ui/views/controls/styled_label.cc chunk = chunk.substr(0, range.start() - position); substr 303 ui/views/controls/styled_label.cc remaining_string = remaining_string.substr(chunk.size()); substr 106 ui/views/controls/styled_label_unittest.cc Label label(ASCIIToUTF16(text.substr(0, text.size() * 2 / 3))); substr 159 ui/views/controls/styled_label_unittest.cc Label label(ASCIIToUTF16(text + link_text.substr(0, link_text.size() / 2))); substr 185 ui/views/controls/styled_label_unittest.cc text + unbreakable_text.substr(0, unbreakable_text.size() / 2))); substr 352 ui/views/controls/styled_label_unittest.cc text + tooltip_text.substr(0, tooltip_text.size() - 3))); substr 422 ui/views/controls/textfield/textfield_model.cc return text().substr(render_text_->selection().GetMin(), substr 569 ui/views/controls/textfield/textfield_model.cc return text().substr(range.GetMin(), range.length()); substr 617 ui/views/controls/textfield/textfield_model.cc base::string16 composition = text().substr(range.start(), range.length()); substr 706 ui/views/controls/textfield/textfield_model.cc const base::string16 old_text = text().substr(old_text_start, range.length()); substr 1654 ui/views/view.cc result.append(class_name.substr(base_name_index).c_str()); substr 32 webkit/browser/blob/blob_storage_context.cc return GURL(url.spec().substr(0, hash_pos)); substr 84 webkit/browser/blob/blob_url_request_job_factory.cc std::string uuid = request->url().spec().substr(kPrefix.length()); substr 36 webkit/browser/database/database_util.cc vfs_file_name.substr(0, first_slash_index)); substr 39 webkit/browser/database/database_util.cc *database_name = vfs_file_name.substr( substr 43 webkit/browser/database/database_util.cc *sqlite_suffix = vfs_file_name.substr( substr 124 webkit/browser/fileapi/file_system_url_request_job.cc extension = extension.substr(1); substr 1123 webkit/browser/fileapi/obfuscated_file_util.cc dest_local_path.value().substr(root.value().length() + 1)); substr 295 webkit/browser/fileapi/sandbox_origin_database.cc iter->key().ToString().substr(origin_key_prefix.length()); substr 98 webkit/child/multipart_response_delegate.cc data_ = data_.substr(pos); substr 118 webkit/child/multipart_response_delegate.cc data_ = data_.substr(pos); substr 161 webkit/child/multipart_response_delegate.cc data_ = data_.substr(boundary_end_pos + offset); substr 183 webkit/child/multipart_response_delegate.cc data_ = data_.substr(send_length); substr 241 webkit/child/multipart_response_delegate.cc data_ = data_.substr(line_end_pos); substr 318 webkit/child/multipart_response_delegate.cc content_type.substr(boundary_start_offset, boundary_length); substr 360 webkit/child/multipart_response_delegate.cc content_range.substr(byte_range_lower_bound_start_offset, substr 376 webkit/child/multipart_response_delegate.cc content_range.substr(byte_range_upper_bound_start_offset, substr 390 webkit/child/multipart_response_delegate.cc content_range.substr(byte_range_instance_size_start_offset, substr 340 webkit/child/multipart_response_delegate_unittest.cc string chunk = data.substr(chunks[i].start_pos, substr 69 webkit/common/fileapi/file_system_util.cc return base::FilePath(path.substr(0, 1)); substr 99 webkit/common/fileapi/file_system_util.cc StringType component = path.value().substr( substr 431 webkit/common/fileapi/file_system_util.cc *filesystem_id = filesystem_name.substr(pos + start_token.length(), substr 271 win8/metro_driver/ime/text_store.cc string_buffer_.substr(acp_start, *text_buffer_copied); substr 416 win8/metro_driver/ime/text_store.cc string_buffer_ = string_buffer_.substr(0, start_pos) + substr 418 win8/metro_driver/ime/text_store.cc string_buffer_.substr(end_pos); substr 529 win8/metro_driver/ime/text_store.cc string_buffer_.substr(last_committed_size, substr 532 win8/metro_driver/ime/text_store.cc string_buffer_.substr(new_committed_size); substr 861 win8/metro_driver/ime/text_store.cc string_buffer_.substr(committed_size_);