/third_party/rust/crates/clap/tests/builder/ |
H A D | possible_values.rs | 180 static PV_ERROR: &str = "\ in possible_values_output() 190 static PV_ERROR: &str = "\ in possible_values_output() 214 static PV_ERROR: &str = "\ in possible_values_alias_output() 224 static PV_ERROR: &str = "\ in possible_values_alias_output() 252 static PV_ERROR: &str = "\ in possible_values_hidden_output() 262 static PV_ERROR: &str = "\ in possible_values_hidden_output() 291 static PV_ERROR_ESCAPED: &str = "\ in escaped_possible_values_output() 301 static PV_ERROR_ESCAPED: &str = "\ in escaped_possible_values_output() 324 static MISSING_PV_ERROR: &str = "\ in missing_possible_value_error()
|
/third_party/skia/modules/skottie/src/layers/ |
H A D | TextLayer.cpp | 32 const char* parse_map(const TMap& map, const char* str, T* result) { in parse_map() argument 34 while (*str == ' ') ++str; in parse_map() 36 const char* next_tok = strchr(str, ' '); in parse_map() 38 if (const auto len = next_tok ? (next_tok - str) : strlen(str)) { in parse_map() 41 if (!strncmp(str, key, len) && key[len] == '\0') { in parse_map() 43 return str + len; in parse_map() 48 return str; in parse_map()
|
/third_party/rust/crates/serde/serde/src/ser/ |
H A D | mod.rs | 46 //! - str 156 /// # fn to_str(&self) -> Option<&str> { 664 /// it as a single element `str` or a `u32`. 682 /// Serialize a `&str`. 689 /// impl Serialize for str { 698 fn serialize_str(self, v: &str) -> Result<Self::Ok, Self::Error>; in serialize_str() 727 /// # bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str none some 839 fn serialize_unit_struct(self, name: &'static str) -> Result<Self::Ok, Self::Error>; in serialize_unit_struct() 869 name: &'static str, in serialize_unit_struct() 871 variant: &'static str, in serialize_unit_struct() [all...] |
/third_party/selinux/libsepol/src/ |
H A D | users.c | 49 char *str; in user_to_record() local 64 if (mls_to_string(handle, policydb, &context, &str) < 0) { in user_to_record() 70 if (sepol_user_set_mlslevel(handle, tmp_record, str) < 0) { in user_to_record() 71 free(str); in user_to_record() 74 free(str); in user_to_record() 82 if (mls_to_string(handle, policydb, &context, &str) < 0) { in user_to_record() 88 if (sepol_user_set_mlsrange(handle, tmp_record, str) < 0) { in user_to_record() 89 free(str); in user_to_record() 92 free(str); in user_to_record()
|
/third_party/spirv-tools/source/opt/ |
H A D | basic_block.cpp | 217 std::ostream& operator<<(std::ostream& str, const BasicBlock& block) { in operator <<() argument 218 str << block.PrettyPrint(); in operator <<() 219 return str; in operator <<() 227 std::ostringstream str; in PrettyPrint() local 228 ForEachInst([&str, options](const Instruction* inst) { in PrettyPrint() 229 str << inst->PrettyPrint(options); in PrettyPrint() 231 str << std::endl; in PrettyPrint() 234 return str.str(); in PrettyPrint()
|
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | dump_log.cpp | 189 std::string DumpLog::FormatDumpInfo(const std::string& str, int32_t depth) in FormatDumpInfo() argument 191 if (str.length() > DumpLog::MIN_JSON_LENGTH) { in FormatDumpInfo() 193 return str.substr(0, str.length() - DumpLog::END_POS_TWO); in FormatDumpInfo() 195 return str.substr(1, str.length() - DumpLog::END_POS_THREE); in FormatDumpInfo() 197 return str; in FormatDumpInfo()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/gpucontext_fuzzer/ |
H A D | gpucontext_fuzzer.cpp | 55 std::string str(text);
in GPUContextFuzzTest001() 56 cache.SetFilePath(str);
in GPUContextFuzzTest001() 99 std::string str(text);
in GPUContextFuzzTest002() 103 gpuContext->DumpGpuStats(str);
in GPUContextFuzzTest002() 111 GPUResourceTag tag(fPid, fTid, fWid, fFid, str);
in GPUContextFuzzTest002() 149 std::string str(categoryKey);
in GPUContextFuzzTest003() 156 GPUResourceTag tag(fPid, fTid, fWid, fFid, str);
in GPUContextFuzzTest003()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_profiler/unittest/ |
H A D | rs_profiler_packet_test.cpp | 65 std::string str = "test packet"; in HWTEST_F() local 77 p.Write(str); in HWTEST_F() 88 EXPECT_EQ(str, p.Read<std::string>(11)); in HWTEST_F() 101 std::string str = "lorum ipsum"; in HWTEST_F() local 106 p.Write(str.data(), str.size()); in HWTEST_F() 116 EXPECT_EQ(str, strRes); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/connection/ble/mock/ |
H A D | connection_ble_manager_mock.h | 71 virtual bool GetJsonObjectSignedNumberItem(const cJSON *json, const char * const str, int32_t *target) = 0; 72 virtual bool GetJsonObjectNumber16Item(const cJSON *json, const char * const str, uint16_t *target) = 0; 119 MOCK_METHOD(bool, GetJsonObjectSignedNumberItem, (const cJSON *json, const char * const str, int32_t *target), 122 bool, GetJsonObjectNumber16Item, (const cJSON *json, const char * const str, uint16_t *target), (override)); 124 static bool ActionOfGetdelta(const cJSON *json, const char * const str, int32_t *target); 125 static bool ActionOfGetPeerRc1(const cJSON *json, const char * const str, int32_t *target); 126 static bool ActionOfGetPeerRc0(const cJSON *json, const char * const str, int32_t *target);
|
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_file.cpp | 83 void BFile::Write(const UniqueFd &fd, const string &str) in Write() argument 85 int ret = pwrite(fd, str.c_str(), str.length(), 0); in Write() 214 bool BFile::EndsWith(const string &str, const string &suffix) in EndsWith() argument 216 if (suffix.length() > str.length()) { in EndsWith() 219 return (str.rfind(suffix) == (str.length() - suffix.length())); in EndsWith()
|
/kernel/linux/linux-5.10/arch/arm/mach-iop32x/ |
H A D | pci.c | 93 "str %1, [%2]\n\t" in iop3xx_read() 146 "str %1, [%2]\n\t" in iop3xx_write_config() 147 "str %0, [%3]\n\t" in iop3xx_write_config() 369 static int __init iop3xx_init_atu_setup(char *str) in iop3xx_init_atu_setup() argument 372 if (str) { in iop3xx_init_atu_setup() 373 while (*str != '\0') { in iop3xx_init_atu_setup() 374 switch (*str) { in iop3xx_init_atu_setup() 390 *str); in iop3xx_init_atu_setup() 391 *(str + 1) = '\0'; in iop3xx_init_atu_setup() 393 str in iop3xx_init_atu_setup() [all...] |
/kernel/linux/linux-5.10/arch/csky/kernel/ |
H A D | traps.c | 86 void die(struct pt_regs *regs, const char *str) in die() argument 97 pr_emerg("%s [#%d]\n", str, ++die_counter); in die() 102 ret = notify_die(DIE_OOPS, str, regs, 0, trap_no(regs), SIGSEGV); in die() 134 unsigned long addr, const char *str) in do_trap_error() 142 die(regs, str); in do_trap_error() 146 #define DO_ERROR_INFO(name, signo, code, str) \ 149 do_trap_error(regs, signo, code, regs->pc, "Oops - " str); \ 133 do_trap_error(struct pt_regs *regs, int signo, int code, unsigned long addr, const char *str) do_trap_error() argument
|
/kernel/linux/linux-5.10/arch/m68k/apollo/ |
H A D | config.c | 117 void dn_serial_console_write (struct console *co, const char *str,unsigned int count) in dn_serial_console_write() argument 120 if (*str == '\n') { in dn_serial_console_write() 125 sio01.rhrb_thrb = (unsigned char)*str++; in dn_serial_console_write() 131 void dn_serial_print (const char *str) in dn_serial_print() argument 133 while (*str) { in dn_serial_print() 134 if (*str == '\n') { in dn_serial_print() 139 sio01.rhrb_thrb = (unsigned char)*str++; in dn_serial_print()
|
/kernel/linux/linux-5.10/arch/parisc/boot/compressed/ |
H A D | misc.c | 157 char str[40]; in print_num() local 158 int i = sizeof(str)-1; in print_num() 160 str[i--] = '\0'; in print_num() 162 str[i--] = hex[num % base]; in print_num() 167 str[i--] = 'x'; in print_num() 168 str[i] = '0'; in print_num() 170 puts(&str[i]); in print_num()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | traps.c | 45 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap() argument 54 die(regs, str); in do_report_trap() 58 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap() argument 60 if (notify_die(DIE_TRAP, str, regs, 0, in do_trap() 63 do_report_trap(regs, si_signo, si_code, str); in do_trap() 87 #define DO_ERROR_INFO(name, signr, sicode, str) \ 90 do_trap(regs, signr, sicode, str); \
|
/kernel/linux/linux-5.10/arch/mips/sibyte/common/ |
H A D | cfe.c | 166 static int __init initrd_setup(char *str) in initrd_setup() argument 175 if (!str[idx] || (str[idx] == ' ')) break; in initrd_setup() 176 rdarg[idx] = str[idx]; in initrd_setup() 180 str = rdarg; in initrd_setup() 186 for (tmp = str; *tmp != '@'; tmp++) { in initrd_setup() 196 initrd_size = simple_strtoul(str, &endptr, 16); in initrd_setup()
|
/kernel/linux/linux-6.6/arch/csky/kernel/ |
H A D | traps.c | 84 void die(struct pt_regs *regs, const char *str) in die() argument 95 pr_emerg("%s [#%d]\n", str, ++die_counter); in die() 100 ret = notify_die(DIE_OOPS, str, regs, 0, trap_no(regs), SIGSEGV); in die() 132 unsigned long addr, const char *str) in do_trap_error() 140 die(regs, str); in do_trap_error() 144 #define DO_ERROR_INFO(name, signo, code, str) \ 147 do_trap_error(regs, signo, code, regs->pc, "Oops - " str); \ 131 do_trap_error(struct pt_regs *regs, int signo, int code, unsigned long addr, const char *str) do_trap_error() argument
|
/kernel/linux/linux-6.6/arch/m68k/apollo/ |
H A D | config.c | 118 void dn_serial_console_write (struct console *co, const char *str,unsigned int count) in dn_serial_console_write() argument 121 if (*str == '\n') { in dn_serial_console_write() 126 sio01.rhrb_thrb = (unsigned char)*str++; in dn_serial_console_write() 132 void dn_serial_print (const char *str) in dn_serial_print() argument 134 while (*str) { in dn_serial_print() 135 if (*str == '\n') { in dn_serial_print() 140 sio01.rhrb_thrb = (unsigned char)*str++; in dn_serial_print()
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | head-common.S | 112 str r9, [r0] @ Save processor ID 113 str r7, [r1] @ Save machine type 114 str r8, [r2] @ Save atags pointer 232 str r3, [r0], #4 233 str r3, [r0], #4 234 str r3, [r0], #4 235 str r3, [r0], #4
|
/kernel/linux/linux-6.6/arch/parisc/boot/compressed/ |
H A D | misc.c | 157 char str[40]; in print_num() local 158 int i = sizeof(str)-1; in print_num() 160 str[i--] = '\0'; in print_num() 162 str[i--] = hex[num % base]; in print_num() 167 str[i--] = 'x'; in print_num() 168 str[i] = '0'; in print_num() 170 puts(&str[i]); in print_num()
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
H A D | phram.c | 189 static inline void kill_final_newline(char *str) in kill_final_newline() argument 191 char *newline = strrchr(str, '\n'); in kill_final_newline() 218 char buf[64 + 20 + 20], *str = buf; in phram_setup() local 228 strcpy(str, val); in phram_setup() 229 kill_final_newline(str); in phram_setup() 232 token[i] = strsep(&str, ","); in phram_setup() 234 if (str) in phram_setup()
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | zcore.c | 177 static char str[18]; in zcore_hsa_read() local 180 snprintf(str, sizeof(str), "%lx\n", sclp.hsa_size); in zcore_hsa_read() 182 snprintf(str, sizeof(str), "0\n"); in zcore_hsa_read() 183 return simple_read_from_buffer(buf, count, ppos, str, strlen(str)); in zcore_hsa_read()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | realpath.c | 15 * @str: String in binary format. 16 * @str_len: Size of @str in byte. 18 * Returns pointer to @str in ascii format on success, NULL otherwise. 23 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument 27 const char *p = str; in tomoyo_encode2() 49 p = str; in tomoyo_encode2() 71 * @str: String in binary format. 73 * Returns pointer to @str in ascii format on success, NULL otherwise. 78 char *tomoyo_encode(const char *str) in tomoyo_encode() argument 80 return str in tomoyo_encode() [all...] |
/kernel/linux/linux-5.10/drivers/xen/ |
H A D | manage.c | 222 char *str; in shutdown_handler() local 235 str = (char *)xenbus_read(xbt, "control", "shutdown", NULL); in shutdown_handler() 237 if (XENBUS_IS_ERR_READ(str)) { in shutdown_handler() 243 if (strcmp(str, shutdown_handlers[idx].command) == 0) in shutdown_handler() 253 kfree(str); in shutdown_handler() 260 pr_info("Ignoring shutdown request: %s\n", str); in shutdown_handler() 264 kfree(str); in shutdown_handler()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | tnum.c | 172 int tnum_strn(char *str, size_t size, struct tnum a) in tnum_strn() argument 174 return snprintf(str, size, "(%#llx; %#llx)", a.value, a.mask); in tnum_strn() 178 int tnum_sbin(char *str, size_t size, struct tnum a) in tnum_sbin() argument 185 str[n - 1] = 'x'; in tnum_sbin() 187 str[n - 1] = '1'; in tnum_sbin() 189 str[n - 1] = '0'; in tnum_sbin() 194 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()
|