/foundation/CastEngine/castengine_wifi_display/services/common/ |
H A D | kv_operator.cpp | 125 bool KvOperator::StringToJson(const std::string &str, nlohmann::json &jsonObj) in StringToJson() argument 127 jsonObj = nlohmann::json::parse(str); in StringToJson() 136 bool KvOperator::JsonToString(const nlohmann::json &jsonObj, std::string &str) in JsonToString() argument 138 str = jsonObj.dump(); in JsonToString()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | motion_path_evaluator.cpp | 28 std::string ReplaceAll(std::string str, const std::string& from, const std::string& to) in ReplaceAll() argument 33 while ((startPos = str.find(from, startPos)) != std::string::npos) { in ReplaceAll() 34 str.replace(startPos, fromLength, to); in ReplaceAll() 37 return str; in ReplaceAll()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/touch_screen/ |
H A D | touch_screen_test.cpp | 36 std::vector<std::string> Split(const std::string& str, const std::string& regex_str); 44 std::vector<std::string> TouchScreenTest::Split(const std::string& str, const std::string& regex_str) in Split() argument 48 std::sregex_token_iterator(str.begin(), str.end(), regexz, -1), in Split()
|
/foundation/multimedia/media_foundation/engine/include/plugin/interface/ |
H A D | plugin_definition.h | 177 #define PLUGIN_STRINGIFY_ARG(str) #str 180 #define PLUGIN_STRINGIFY(str) PLUGIN_STRINGIFY_ARG(str)
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/network_client/ |
H A D | http_curl_client.h | 38 std::string Trim(std::string str); 41 bool IsMatch(const std::string &str, const std::string &patternStr); 42 bool IsExcluded(const std::string &str, const std::string &exclusions, const std::string &split); 73 static std::string ClearHeadTailSpace(std::string& str);
|
/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_utils.h | 80 int32_t GenerateRandomStr(char *str, uint32_t size); 97 int32_t StringToUpperCase(const char *str, char *buf, int32_t size); 99 int32_t StringToLowerCase(const char *str, char *buf, int32_t size); 115 int32_t GenerateStrHashAndConvertToHexString(const unsigned char *str, uint32_t len, unsigned char *hashStr,
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | text_blob.cpp | 41 std::shared_ptr<TextBlob> TextBlob::MakeFromString(const char* str, const Font& font, TextEncoding encoding) in MakeFromString() argument 43 if (!str) { in MakeFromString() 46 return MakeFromText(str, strlen(str), font, encoding); in MakeFromString()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
H A D | uaccess-asm.h | 89 str \tmp2, [\tsk, #TI_ADDR_LIMIT] 91 DACR( str \tmp0, [sp, #SVC_DACR]) 92 str \tmp1, [sp, #SVC_ADDR_LIMIT] 111 str \tmp1, [\tsk, #TI_ADDR_LIMIT]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | inst.h | 127 static inline char *__ppc_inst_as_str(char str[PPC_INST_STR_LEN], struct ppc_inst x) in __ppc_inst_as_str() argument 130 sprintf(str, "%08x %08x", ppc_inst_val(x), ppc_inst_suffix(x)); in __ppc_inst_as_str() 132 sprintf(str, "%08x", ppc_inst_val(x)); in __ppc_inst_as_str() 134 return str; in __ppc_inst_as_str()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | resolve_btfids.c | 69 const char *str; in __resolve_symbol() local 85 str = btf__name_by_offset(btf, type->name_off); in __resolve_symbol() 86 if (!str) { in __resolve_symbol() 91 if (!strcmp(str, test_symbols[i].name)) in __resolve_symbol()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/ |
H A D | odm_debug.h | 136 #define ODM_dbg_trace(str) { DbgPrint("%s:%s\n", __func__, str); } 160 #define ODM_dbg_trace(str) no_printk("%s", str)
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | lathist_user.c | 23 static void stars(char *str, long val, long max, int width) in stars() argument 28 str[i] = '*'; in stars() 30 str[i - 1] = '+'; in stars() 31 str[i] = '\0'; in stars()
|
/kernel/linux/linux-5.10/sound/core/ |
H A D | info_oss.c | 54 char *str; in snd_sndstat_show_strings() local 59 str = snd_sndstat_strings[idx][dev]; in snd_sndstat_show_strings() 60 if (str) { in snd_sndstat_show_strings() 65 snd_iprintf(buf, "%i: %s\n", idx, str); in snd_sndstat_show_strings()
|
/kernel/linux/linux-5.10/tools/lib/ |
H A D | string.c | 119 * skip_spaces - Removes leading whitespace from @str. 120 * @str: The string to be stripped. 122 * Returns a pointer to the first non-whitespace character in @str. 124 char *skip_spaces(const char *str) in skip_spaces() argument 126 while (isspace(*str)) in skip_spaces() 127 ++str; in skip_spaces() 128 return (char *)str; in skip_spaces()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | target.c | 73 const char *str = target->uid_str; in target__parse_uid() local 76 if (str == NULL) in target__parse_uid() 80 getpwnam_r(str, &pwd, buf, sizeof(buf), &result); in target__parse_uid() 87 int uid = strtol(str, &endptr, 10); in target__parse_uid()
|
/kernel/linux/linux-5.10/net/ceph/ |
H A D | ceph_hash.c | 23 unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length) in ceph_str_hash_rjenkins() argument 25 const unsigned char *k = (const unsigned char *)str; in ceph_str_hash_rjenkins() 94 unsigned int ceph_str_hash_linux(const char *str, unsigned int length) in ceph_str_hash_linux() argument 100 c = *str++; in ceph_str_hash_linux()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
H A D | virtgpu_fence.c | 56 static void virtio_fence_value_str(struct dma_fence *f, char *str, int size) in virtio_fence_value_str() argument 58 snprintf(str, size, "%llu", f->seqno); in virtio_fence_value_str() 61 static void virtio_timeline_value_str(struct dma_fence *f, char *str, int size) in virtio_timeline_value_str() argument 65 snprintf(str, size, "%llu", (u64)atomic64_read(&fence->drv->last_seq)); in virtio_timeline_value_str()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | dmi.h | 108 extern int dmi_name_in_vendors(const char *str); 109 extern int dmi_name_in_serial(const char *str); 113 extern bool dmi_match(enum dmi_field f, const char *str); 142 static inline bool dmi_match(enum dmi_field f, const char *str) in dmi_match() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | dmi.h | 108 extern int dmi_name_in_vendors(const char *str); 109 extern int dmi_name_in_serial(const char *str); 113 extern bool dmi_match(enum dmi_field f, const char *str); 142 static inline bool dmi_match(enum dmi_field f, const char *str) in dmi_match() argument
|
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | printk.c | 18 * @str: UCS-2 encoded string 20 void efi_char16_puts(efi_char16_t *str) in efi_char16_puts() argument 23 output_string, str); in efi_char16_puts() local 73 * @str: UTF-8 encoded string 75 void efi_puts(const char *str) in efi_puts() argument 79 const u8 *s8 = (const u8 *)str; in efi_puts()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | thread-map.c | 113 char *str; in test__thread_map_remove() local 116 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove() 118 threads = thread_map__new_str(str, NULL, 0, false); in test__thread_map_remove() 119 free(str); in test__thread_map_remove()
|
/kernel/linux/linux-6.6/tools/lib/ |
H A D | string.c | 119 * skip_spaces - Removes leading whitespace from @str. 120 * @str: The string to be stripped. 122 * Returns a pointer to the first non-whitespace character in @str. 124 char *skip_spaces(const char *str) in skip_spaces() argument 126 while (isspace(*str)) in skip_spaces() 127 ++str; in skip_spaces() 128 return (char *)str; in skip_spaces()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | lathist_user.c | 23 static void stars(char *str, long val, long max, int width) in stars() argument 28 str[i] = '*'; in stars() 30 str[i - 1] = '+'; in stars() 31 str[i] = '\0'; in stars()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | target.c | 101 const char *str = target->uid_str; in target__parse_uid() local 104 if (str == NULL) in target__parse_uid() 108 getpwnam_r(str, &pwd, buf, sizeof(buf), &result); in target__parse_uid() 115 int uid = strtol(str, &endptr, 10); in target__parse_uid()
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | info_oss.c | 53 char *str; in snd_sndstat_show_strings() local 58 str = snd_sndstat_strings[idx][dev]; in snd_sndstat_show_strings() 59 if (str) { in snd_sndstat_show_strings() 64 snd_iprintf(buf, "%i: %s\n", idx, str); in snd_sndstat_show_strings()
|