Home
last modified time | relevance | path

Searched refs:old_text (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/tools/metrics/common/
Ddiff_util.py17 def PromptUserToAcceptDiff(old_text, new_text, prompt): argument
31 if old_text == new_text:
35 old_text.splitlines(), new_text.splitlines(), fromdesc='Original',
/external/chromium_org/courgette/
Dbsdiff_memory_unittest.cc18 void BSDiffMemoryTest::GenerateAndTestPatch(const std::string& old_text, in GenerateAndTestPatch() argument
22 old1.Init(old_text.c_str(), old_text.length()); in GenerateAndTestPatch()
31 old2.Init(old_text.c_str(), old_text.length()); in GenerateAndTestPatch()
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_view_browsertest.cc544 base::string16 old_text = omnibox_view->GetText(); in IN_PROC_BROWSER_TEST_F() local
545 EXPECT_FALSE(old_text.empty()); in IN_PROC_BROWSER_TEST_F()
554 EXPECT_EQ(old_text, omnibox_view->GetText()); in IN_PROC_BROWSER_TEST_F()
707 base::string16 old_text = omnibox_view->GetText(); in IN_PROC_BROWSER_TEST_F() local
710 EXPECT_GT(old_text.length(), arraysize(kInlineAutocompleteText) - 1); in IN_PROC_BROWSER_TEST_F()
720 if (old_text != omnibox_view->GetText()) in IN_PROC_BROWSER_TEST_F()
724 EXPECT_NE(old_text, omnibox_view->GetText()); in IN_PROC_BROWSER_TEST_F()
728 EXPECT_EQ(old_text, omnibox_view->GetText()); in IN_PROC_BROWSER_TEST_F()
745 base::string16 old_text = omnibox_view->GetText(); in IN_PROC_BROWSER_TEST_F() local
746 EXPECT_EQ(base::UTF8ToUTF16(url::kAboutBlankURL), old_text); in IN_PROC_BROWSER_TEST_F()
[all …]
Domnibox_edit_model.cc116 void RecordPercentageMatchHistogram(const base::string16& old_text, in RecordPercentageMatchHistogram() argument
121 size_t avg_length = (old_text.length() + new_text.length()) / 2; in RecordPercentageMatchHistogram()
124 if (!old_text.empty() && !new_text.empty()) { in RecordPercentageMatchHistogram()
125 size_t shorter_length = std::min(old_text.length(), new_text.length()); in RecordPercentageMatchHistogram()
126 base::string16::const_iterator end(old_text.begin() + shorter_length); in RecordPercentageMatchHistogram()
128 std::mismatch(old_text.begin(), end, new_text.begin()).first); in RecordPercentageMatchHistogram()
129 size_t matching_characters = mismatch - old_text.begin(); in RecordPercentageMatchHistogram()
1157 bool OmniboxEditModel::OnAfterPossibleChange(const base::string16& old_text, in OnAfterPossibleChange() argument
1233 CreatedKeywordSearchByInsertingSpaceInMiddle(old_text, user_text_, in OnAfterPossibleChange()
1392 const base::string16& old_text, in CreatedKeywordSearchByInsertingSpaceInMiddle() argument
[all …]
Domnibox_edit_model.h324 bool OnAfterPossibleChange(const base::string16& old_text,
412 const base::string16& old_text,
/external/chromium_org/ui/views/controls/textfield/
Dtextfield_model.cc72 const base::string16& old_text, in Edit() argument
81 old_text_(old_text), in Edit()
112 base::string16 old_text = edit->old_text_; in MergeReplace() local
113 old_text.erase(new_text_start_, new_text_.length()); in MergeReplace()
114 old_text.insert(old_text_start_, old_text_); in MergeReplace()
117 old_text_ = old_text; in MergeReplace()
178 const base::string16& old_text, in ReplaceEdit() argument
187 old_text, in ReplaceEdit()
684 const base::string16 old_text = text().substr(old_text_start, range.length()); in ExecuteAndRecordDelete() local
686 Edit* edit = new DeleteEdit(mergeable, old_text, old_text_start, backward); in ExecuteAndRecordDelete()
[all …]
/external/qemu/distrib/libpng-1.2.46/
Dpngset.c675 png_textp old_text; in png_set_text_2() local
678 old_text = info_ptr->text; in png_set_text_2()
686 info_ptr->text = old_text; in png_set_text_2()
689 png_memcpy(info_ptr->text, old_text, (png_size_t)(old_max_text * in png_set_text_2()
691 png_free(png_ptr, old_text); in png_set_text_2()
/external/chromium_org/third_party/libpng/
Dpngset.c672 png_textp old_text; in png_set_text_2() local
677 old_text = info_ptr->text; in png_set_text_2()
682 png_free(png_ptr, old_text); in png_set_text_2()
685 png_memcpy(info_ptr->text, old_text, (png_size_t)(old_max * in png_set_text_2()
687 png_free(png_ptr, old_text); in png_set_text_2()
/external/chromium_org/net/test/spawned_test_server/
Dbase_test_server.cc254 const std::string& old_text = it->first; in GetFilePathWithReplacements() local
258 base::Base64Encode(old_text, &base64_old); in GetFilePathWithReplacements()
/external/chromium_org/ui/views/accessibility/
Dnative_view_accessibility_win.h265 STDMETHODIMP get_oldText(IA2TextSegment* old_text) { in get_oldText() argument
/external/chromium_org/content/browser/accessibility/
Dbrowser_accessibility_win.cc2156 STDMETHODIMP BrowserAccessibilityWin::get_oldText(IA2TextSegment* old_text) { in get_oldText() argument
2160 if (!old_text) in get_oldText()
2163 old_text->text = SysAllocString(old_text_.c_str()); in get_oldText()
2164 old_text->start = 0; in get_oldText()
2165 old_text->end = static_cast<long>(old_text_.size()); in get_oldText()
Dbrowser_accessibility_win.h488 CONTENT_EXPORT STDMETHODIMP get_oldText(IA2TextSegment* old_text);
/external/chromium_org/net/tools/testserver/
Dtestserver.py829 old_text = base64.urlsafe_b64decode(old_text_b64)
831 data = data.replace(old_text, new_text)
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DCodeGeneratorInspector.py2290 old_text = read_file.read()
2292 text_changed = old_text != self.output_