/third_party/python/Lib/test/ |
D | test_strftime.py | 24 new_text = re.escape(text) 25 new_text = new_text.replace(re.escape(ampm), ampm) 26 new_text = new_text.replace(r'\%', '%') 27 new_text = new_text.replace(r'\:', ':') 28 new_text = new_text.replace(r'\?', '?') 29 return new_text
|
/third_party/jsoncpp/devtools/ |
D | licenseupdater.py | 30 new_text = BRIEF_LICENSE + original_text 33 new_text = BRIEF_LICENSE + original_text[license_end_index+2:] 34 if original_text != new_text: 37 fout.write(new_text.replace('\n', newline)) 42 new_text.split('\n'))))
|
/third_party/boost/libs/config/tools/ |
D | generate.cpp | 67 std::string new_text; in write_config_info() local 68 new_text.append(what.prefix().first, what[1].first); in write_config_info() 69 new_text.append(macros); in write_config_info() 70 new_text.append(what[1].second, what.suffix().second); in write_config_info() 72 ofs << new_text; in write_config_info()
|
/third_party/googletest/googletest/scripts/ |
D | release_docs.py | 144 new_text = self.search_for_re.sub(self.replace_with, text) 145 file(versioned_file, 'w').write(new_text)
|
/third_party/python/Lib/lib2to3/ |
D | refactor.py | 274 def print_output(self, old_text, new_text, filename, equal): argument 492 def processed_file(self, new_text, filename, old_text=None, write=False, argument 502 equal = old_text == new_text 503 self.print_output(old_text, new_text, filename, equal) 509 self.write_file(new_text, filename, old_text, encoding) 513 def write_file(self, new_text, filename, old_text, encoding=None): argument 528 fp.write(new_text)
|
D | main.py | 69 def write_file(self, new_text, filename, old_text, encoding): argument 101 write(new_text, filename, old_text, encoding)
|
/third_party/weston/clients/ |
D | keyboard.c | 415 char *new_text = xmalloc(tlen + ilen + 1); in insert_text() local 417 memcpy(new_text, text, offset); in insert_text() 418 memcpy(new_text + offset, insert, ilen); in insert_text() 419 memcpy(new_text + offset + ilen, text + offset, tlen - offset); in insert_text() 420 new_text[tlen + ilen] = '\0'; in insert_text() 422 return new_text; in insert_text()
|
D | editor.c | 918 char *new_text = xmalloc(strlen(entry->text) + strlen(text) + 1); in text_entry_insert_at_cursor() local 920 strncpy(new_text, entry->text, entry->cursor); in text_entry_insert_at_cursor() 921 strcpy(new_text + entry->cursor, text); in text_entry_insert_at_cursor() 922 strcpy(new_text + entry->cursor + strlen(text), in text_entry_insert_at_cursor() 926 entry->text = new_text; in text_entry_insert_at_cursor()
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/ |
D | gstmpegtsdescriptor.c | 423 gchar *new_text; in convert_to_utf8() local 529 new_text = in convert_to_utf8() 531 GST_DEBUG ("Converted to : %s", new_text); in convert_to_utf8() 533 new_text = g_strdup (""); in convert_to_utf8() 538 return new_text; in convert_to_utf8()
|
/third_party/libpng/ |
D | pngset.c | 793 png_textp new_text = NULL; in png_set_text_2() local 811 new_text = png_voidcast(png_textp,png_realloc_array(png_ptr, in png_set_text_2() 813 sizeof *new_text)); in png_set_text_2() 816 if (new_text == NULL) in png_set_text_2() 826 info_ptr->text = new_text; in png_set_text_2()
|
/third_party/skia/third_party/externals/libpng/ |
D | pngset.c | 793 png_textp new_text = NULL; in png_set_text_2() local 811 new_text = png_voidcast(png_textp,png_realloc_array(png_ptr, in png_set_text_2() 813 sizeof *new_text)); in png_set_text_2() 816 if (new_text == NULL) in png_set_text_2() 826 info_ptr->text = new_text; in png_set_text_2()
|
/third_party/flutter/skia/third_party/externals/libpng/ |
D | pngset.c | 793 png_textp new_text = NULL; in png_set_text_2() local 811 new_text = png_voidcast(png_textp,png_realloc_array(png_ptr, in png_set_text_2() 813 sizeof *new_text)); in png_set_text_2() 816 if (new_text == NULL) in png_set_text_2() 826 info_ptr->text = new_text; in png_set_text_2()
|
/third_party/python/Lib/lib2to3/tests/ |
D | test_refactor.py | 168 def print_output(self, old_text, new_text, filename, equal): argument 169 results.extend([old_text, new_text, filename, equal])
|
/third_party/python/Lib/idlelib/ |
D | sidebar.py | 349 new_text = '\n'.join(itertools.chain( 353 self.sidebar_text.insert(f'end -1c', new_text, 'linenumber')
|
/third_party/re2/ |
D | ucs2.diff | 398 - // Converts UTF-8 string in text into UCS-2 string in new_text. 399 - static bool ConvertUTF8ToUCS2(const StringPiece& text, StringPiece* new_text) { 419 - *new_text = StringPiece(reinterpret_cast<char*>(q0), 2*(q - q0));
|
/third_party/flutter/skia/third_party/externals/imgui/ |
D | imgui_widgets.cpp | 2946 static bool STB_TEXTEDIT_INSERTCHARS(STB_TEXTEDIT_STRING* obj, int pos, const ImWchar* new_text, in… in STB_TEXTEDIT_INSERTCHARS() argument 2952 const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); in STB_TEXTEDIT_INSERTCHARS() 2968 memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); in STB_TEXTEDIT_INSERTCHARS() 3032 void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_en… in InsertChars() argument 3035 const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); in InsertChars() 3054 memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); in InsertChars()
|
/third_party/mesa3d/src/imgui/ |
D | imgui_widgets.cpp | 2946 static bool STB_TEXTEDIT_INSERTCHARS(STB_TEXTEDIT_STRING* obj, int pos, const ImWchar* new_text, in… in STB_TEXTEDIT_INSERTCHARS() argument 2952 const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); in STB_TEXTEDIT_INSERTCHARS() 2968 memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); in STB_TEXTEDIT_INSERTCHARS() 3032 void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_en… in InsertChars() argument 3035 const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); in InsertChars() 3054 memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); in InsertChars()
|
/third_party/skia/third_party/externals/imgui/ |
D | imgui_widgets.cpp | 3710 static bool STB_TEXTEDIT_INSERTCHARS(ImGuiInputTextState* obj, int pos, const ImWchar* new_text, in… in STB_TEXTEDIT_INSERTCHARS() argument 3716 const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); in STB_TEXTEDIT_INSERTCHARS() 3732 memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); in STB_TEXTEDIT_INSERTCHARS() 3816 void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_en… in InsertChars() argument 3819 const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); in InsertChars() 3838 memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); in InsertChars()
|