/third_party/pulseaudio/src/pulse/ |
H A D | utf8.c | 180 char *new_str; in pa_utf8_filter() local 183 new_str = pa_xmalloc(strlen(str) + 1); in pa_utf8_filter() 184 return utf8_validate(str, new_str); in pa_utf8_filter() 190 char *new_str; in iconv_simple() local 206 new_str = pa_xmalloc(len); in iconv_simple() 211 outbuf = new_str; in iconv_simple() 220 pa_xfree(new_str); in iconv_simple() 221 new_str = NULL; in iconv_simple() 228 new_str = pa_xrealloc(new_str, le in iconv_simple() [all...] |
/third_party/libsnd/src/ |
H A D | strings.c | 32 { char new_str [128] ; in psf_store_string() local 98 snprintf (new_str, sizeof (new_str), "%s-%s", PACKAGE_NAME, PACKAGE_VERSION) ; in psf_store_string() 100 snprintf (new_str, sizeof (new_str), "%s (%s-%s)", str, PACKAGE_NAME, PACKAGE_VERSION) ; in psf_store_string() 103 snprintf (new_str, sizeof (new_str), "%s", str) ; in psf_store_string() 105 str = new_str ; in psf_store_string()
|
/third_party/ffmpeg/libavutil/ |
H A D | bprint.c | 38 char *old_str, *new_str; in av_bprint_alloc() local 50 new_str = av_realloc(old_str, new_size); in av_bprint_alloc() 51 if (!new_str) in av_bprint_alloc() 54 memcpy(new_str, buf->str, buf->len + 1); in av_bprint_alloc() 55 buf->str = new_str; in av_bprint_alloc()
|
/third_party/elfutils/libelf/ |
H A D | elf_getarsym.c | 225 char *new_str = (char *) (elf->state.ar.ar_sym + n + 1); in elf_getarsym() local 229 || ((size_t) pread_retry (elf->fildes, new_str, in elf_getarsym() 240 str_data = (char *) new_str; in elf_getarsym()
|
/third_party/python/Parser/ |
H A D | tokenizer.c | 313 char* new_str = tok->interactive_src_start; in tok_concatenate_interactive_new_line() local 315 new_str = PyMem_Realloc(new_str, current_size + line_size + 1); in tok_concatenate_interactive_new_line() 316 if (!new_str) { in tok_concatenate_interactive_new_line() 325 strcpy(new_str + current_size, line); in tok_concatenate_interactive_new_line() 328 new_str[current_size + line_size - 1] = '\n'; in tok_concatenate_interactive_new_line() 329 new_str[current_size + line_size] = '\0'; in tok_concatenate_interactive_new_line() 331 tok->interactive_src_start = new_str; in tok_concatenate_interactive_new_line() 332 tok->interactive_src_end = new_str + current_size + line_size; in tok_concatenate_interactive_new_line()
|
/third_party/backends/lib/ |
H A D | getopt.c | 333 char *new_str = malloc (top + 1); 334 if (new_str == NULL) 338 memset (__mempcpy (new_str, __getopt_nonoption_flags, 342 __getopt_nonoption_flags = new_str; 330 char *new_str = malloc (top + 1); global() local
|
/kernel/linux/linux-5.10/scripts/kconfig/ |
H A D | nconf.c | 569 char new_str[256]; in item_add_str() local 576 vsnprintf(new_str, sizeof(new_str), fmt, ap); in item_add_str() 579 k_menu_items[index].str, new_str); in item_add_str()
|
/kernel/linux/linux-6.6/scripts/kconfig/ |
H A D | nconf.c | 579 char new_str[256]; in item_add_str() local 586 vsnprintf(new_str, sizeof(new_str), fmt, ap); in item_add_str() 589 k_menu_items[index].str, new_str); in item_add_str()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | pmu.c | 241 char **new_str) in perf_pmu_assign_str() 246 if (*new_str) { /* Have new string, check with old */ in perf_pmu_assign_str() 247 if (strcasecmp(*old_str, *new_str)) in perf_pmu_assign_str() 254 *old_str = *new_str; in perf_pmu_assign_str() 255 *new_str = NULL; in perf_pmu_assign_str() 240 perf_pmu_assign_str(char *name, const char *field, char **old_str, char **new_str) perf_pmu_assign_str() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | pmu.c | 438 const char *new_str) in assign_str() 440 if (!*old_str && new_str) { in assign_str() 441 *old_str = strdup(new_str); in assign_str() 445 if (!new_str || !strcasecmp(*old_str, new_str)) in assign_str() 449 name, field, *old_str, new_str); in assign_str() 451 *old_str = strdup(new_str); in assign_str() 437 assign_str(const char *name, const char *field, char **old_str, const char *new_str) assign_str() argument
|
/applications/standard/app_samples/code/Project/HapBuild/test-tool/ |
H A D | InstallAndTestSpecial_ci.py | 431 def replace_enable(file,old_str,new_str): 435 line = line.replace(old_str, new_str)
|
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | reporter_helper.py | 679 def _render_key(cls, prefix, key, new_str, update_context): 681 return update_context.replace(old_str, new_str) 782 new_str = str(getattr(result, key, default)) 784 new_str = str(getattr(data_object, key, default)) 785 update_context = self._render_key(prefix, key, new_str,
|
/third_party/vulkan-loader/loader/ |
H A D | loader.c | 308 char *new_str = loader_instance_heap_calloc(inst, sizeof(char *) * str_len + 1, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); in copy_str_to_string_list() local 309 if (NULL == new_str) { in copy_str_to_string_list() 312 loader_strncpy(new_str, sizeof(char *) * str_len + 1, str, str_len); in copy_str_to_string_list() 313 new_str[str_len] = '\0'; in copy_str_to_string_list() 314 VkResult res = append_str_to_string_list(inst, string_list, new_str); in copy_str_to_string_list() 316 // Cleanup new_str if the append failed - as append_str_to_string_list takes ownership but not if the function fails in copy_str_to_string_list() 317 loader_instance_heap_free(inst, new_str); in copy_str_to_string_list()
|