Home
last modified time | relevance | path

Searched refs:StringToInt (Results 1 – 25 of 83) sorted by relevance

1234

/external/chromium/base/
Dstring_number_conversions.h61 BASE_API bool StringToInt(const std::string& input, int* output);
62 BASE_API bool StringToInt(std::string::const_iterator begin,
65 BASE_API bool StringToInt(const char* begin, const char* end, int* output);
67 BASE_API bool StringToInt(const string16& input, int* output);
68 BASE_API bool StringToInt(string16::const_iterator begin,
71 BASE_API bool StringToInt(const char16* begin, const char16* end, int* output);
Dstring_number_conversions_unittest.cc75 TEST(StringNumberConversionsTest, StringToInt) { in TEST() argument
110 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output)); in TEST()
113 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input.begin(), in TEST()
118 EXPECT_EQ(cases[i].success, StringToInt( in TEST()
125 EXPECT_EQ(cases[i].success, StringToInt(utf16_input, &output)); in TEST()
128 EXPECT_EQ(cases[i].success, StringToInt(utf16_input.begin(), in TEST()
133 EXPECT_EQ(cases[i].success, StringToInt( in TEST()
144 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
147 EXPECT_FALSE(StringToInt(input_string.begin(), input_string.end(), &output)); in TEST()
150 EXPECT_FALSE(StringToInt(input, input + arraysize(input), &output)); in TEST()
[all …]
Dprocess_util_linux.cc132 base::StringToInt(tokenizer.token(), &ppid); in GetParentProcessId()
202 if (StringToInt(pid_string, &pid) && !GetProcCmdline(pid, &cmd_line_args)) in CheckForNextProcess()
275 base::StringToInt(proc_stats[kVmSize], &vm_size); in GetPagefileUsage()
289 if (base::StringToInt(proc_stats[kVmPeak], &vm_peak)) in GetPeakPagefileUsage()
303 if (base::StringToInt(proc_stats[kVmRss], &num_pages)) in GetWorkingSetSize()
317 base::StringToInt(proc_stats[kVmHwm], &num_pages); in GetPeakWorkingSetSize()
378 base::StringToInt(tokenizer.token(), &cur); in GetWorkingSetKBytes()
383 base::StringToInt(tokenizer.token(), &cur); in GetWorkingSetKBytes()
413 base::StringToInt(statm_vec[1], &statm1); in GetWorkingSetKBytes()
414 base::StringToInt(statm_vec[2], &statm2); in GetWorkingSetKBytes()
[all …]
Dsys_info_chromeos.cc102 StringToInt(tokenizer.token_begin(), in ParseLsbRelease()
107 StringToInt(tokenizer.token_begin(), in ParseLsbRelease()
111 StringToInt(tokenizer.token_begin(), in ParseLsbRelease()
Dstring_number_conversions.cc391 bool StringToInt(const std::string& input, int* output) { in StringToInt() function
398 bool StringToInt(std::string::const_iterator begin, in StringToInt() function
407 bool StringToInt(const char* begin, const char* end, int* output) { in StringToInt() function
413 bool StringToInt(const string16& input, int* output) { in StringToInt() function
419 bool StringToInt(string16::const_iterator begin, in StringToInt() function
428 bool StringToInt(const char16* begin, const char16* end, int* output) { in StringToInt() function
Dvlog.cc52 if (base::StringToInt(v_switch, &vlog_level)) { in VlogInfo()
68 if (!base::StringToInt(it->second, &pattern.vlog_level)) { in VlogInfo()
/external/chromium/net/ftp/
Dftp_directory_listing_parser_windows.cc29 if (!base::StringToInt(date_parts[0], &time_exploded.month)) in WindowsDateListingToTime()
31 if (!base::StringToInt(date_parts[1], &time_exploded.day_of_month)) in WindowsDateListingToTime()
33 if (!base::StringToInt(date_parts[2], &time_exploded.year)) in WindowsDateListingToTime()
51 if (!base::StringToInt(time_parts[0], &time_exploded.hour)) in WindowsDateListingToTime()
53 if (!base::StringToInt(time_parts[1], &time_exploded.minute)) in WindowsDateListingToTime()
Dftp_directory_listing_parser_unittest.cc115 base::StringToInt(lines[8 * i + 3], &year); in TEST()
116 base::StringToInt(lines[8 * i + 4], &month); in TEST()
117 base::StringToInt(lines[8 * i + 5], &day_of_month); in TEST()
118 base::StringToInt(lines[8 * i + 6], &hour); in TEST()
119 base::StringToInt(lines[8 * i + 7], &minute); in TEST()
Dftp_util.cc167 if (!base::StringToInt(day, &time_exploded.day_of_month)) in LsDateListingToTime()
172 if (!base::StringToInt(rest, &time_exploded.year)) { in LsDateListingToTime()
175 if (!base::StringToInt(rest.begin(), in LsDateListingToTime()
180 if (!base::StringToInt(rest.begin() + 3, in LsDateListingToTime()
186 if (!base::StringToInt(rest.begin(), in LsDateListingToTime()
191 if (!base::StringToInt(rest.begin() + 2, in LsDateListingToTime()
Dftp_directory_listing_parser_vms.cc32 if (!base::StringToInt(listing_parts[1], &version_number)) in ParseVmsFilename()
149 if (!base::StringToInt(date_parts[0], &time_exploded.day_of_month)) in VmsDateListingToTime()
154 if (!base::StringToInt(date_parts[2], &time_exploded.year)) in VmsDateListingToTime()
170 if (!base::StringToInt(time_parts[0], &time_exploded.hour)) in VmsDateListingToTime()
172 if (!base::StringToInt(time_parts[1], &time_exploded.minute)) in VmsDateListingToTime()
/external/chromium/chrome/browser/autofill/
Dcredit_card.cc62 if (!base::StringToInt(number.substr(0, 4), &first_four_digits)) in GetCreditCardType()
124 bool converted = base::StringToInt(date, num); in ConvertDate()
313 converted = base::StringToInt(year_month[0], &num); in SetInfoForMonthInputType()
316 converted = base::StringToInt(year_month[1], &num); in SetInfoForMonthInputType()
508 if (!base::StringToInt(text, &month)) in IsExpirationMonth()
516 if (!base::StringToInt(text, &year)) in Is2DigitExpirationYear()
524 if (!base::StringToInt(text, &year)) in Is4DigitExpirationYear()
/external/chromium/chrome/browser/
Dautocomplete_history_manager.cc48 if (!base::StringToInt(number_string.begin(), in IsSSN()
59 if (!base::StringToInt(number_string.begin() + 3, in IsSSN()
65 if (!base::StringToInt(number_string.begin() + 5, in IsSSN()
/external/chromium/chrome/browser/safe_browsing/
Dfilter_false_positive_perftest.cc245 base::StringToInt(url.begin() + pos + 1, url.end(), &weight); in CalculateBloomFilterFalsePositives()
301 ASSERT_TRUE(base::StringToInt(cmd_line.GetSwitchValueASCII(kFilterStart), in TEST()
307 ASSERT_TRUE(base::StringToInt(cmd_line.GetSwitchValueASCII(kFilterSteps), in TEST()
330 base::StringToInt(cmd_line.GetSwitchValueASCII(kFilterNumChecks), in TEST()
/external/chromium/chrome/browser/debugger/
Ddebugger_remote_service.cc89 base::StringToInt(destination, &tab_uid); in HandleMessage()
198 base::StringToInt(destination, &tab_uid); in AttachToTab()
242 base::StringToInt(destination, &tab_uid); in DetachFromTab()
/external/chromium/chrome/browser/first_run/
Dfirst_run_win.cc275 if (!base::StringToInt(parts[0], importer_type)) in DecodeImportParams()
278 if (!base::StringToInt(parts[1], options)) in DecodeImportParams()
281 if (!base::StringToInt(parts[2], skip_first_run_ui)) in DecodeImportParams()
/external/chromium/webkit/glue/
Dmultipart_response_delegate.cc393 if (!base::StringToInt(byte_range_lower_bound, content_range_lower_bound)) in ReadContentRanges()
395 if (!base::StringToInt(byte_range_upper_bound, content_range_upper_bound)) in ReadContentRanges()
397 if (!base::StringToInt(byte_range_instance_size, content_range_instance_size)) in ReadContentRanges()
/external/v8/src/
Dv8conversions.h56 double StringToInt(UnicodeCache* unicode_cache, String* str, int radix);
/external/chromium/chrome/browser/extensions/
Dextension_devtools_events.cc33 if (parts.size() == 2 && base::StringToInt(parts[0], tab_id)) { in IsDevToolsEventName()
/external/chromium/chrome/browser/search_engines/
Dtemplate_url_parser.cc313 base::StringToInt(XMLCharToString(value), &index_offset); in ParseURL()
316 base::StringToInt(XMLCharToString(value), &page_offset); in ParseURL()
350 base::StringToInt(XMLCharToString(value), &width); in ParseImage()
352 base::StringToInt(XMLCharToString(value), &height); in ParseImage()
/external/chromium/chrome/browser/ui/webui/
Dforeign_session_handler.cc151 !base::StringToInt(window_num_str, &window_num))) { in HandleOpenForeignSession()
160 !base::StringToInt(tab_id_str, &tab_id))) { in HandleOpenForeignSession()
/external/chromium/base/test/
Dtest_timeouts.cc24 base::StringToInt(string_value, &timeout); in InitializeTimeout()
/external/chromium/chrome/browser/ui/webui/options/
Dpassword_manager_handler.cc130 base::StringToInt(string_value, &index); in RemoveSavedPassword()
138 base::StringToInt(string_value, &index); in RemovePasswordException()
Dbrowser_options_handler.cc153 CHECK(base::StringToInt(do_fixup_string, &do_fixup)); in SetHomePage()
365 base::StringToInt(string_value, &selected_index); in RemoveStartupPages()
394 CHECK(base::StringToInt(index_string, &index)); in EditStartupPage()
/external/chromium/chrome/browser/web_resource/
Dpromo_resource_service.cc219 base::StringToInt(promo_build.substr(0, split), in UnpackPromoSignal()
221 base::StringToInt(promo_build.substr(split+1), in UnpackPromoSignal()
315 !base::StringToInt(name.substr(split+1), &target_builds)) in UnpackWebStoreSignal()
/external/chromium/chrome/browser/chromeos/login/
Ddefault_user_images.cc51 if (base::StringToInt(s.begin() + prefix.length(), in IsDefaultImageString()

1234