Home
last modified time | relevance | path

Searched refs:str (Results 1126 - 1150 of 14453) sorted by relevance

1...<<41424344454647484950>>...579

/kernel/linux/linux-5.10/tools/power/cpupower/utils/
H A Dcpufreq-set.c62 static unsigned long string_to_frequency(const char *str) in string_to_frequency() argument
71 while (*str == '0') in string_to_frequency()
72 str++; in string_to_frequency()
74 for (scan = str; isdigit(*scan) || *scan == '.'; scan++) { in string_to_frequency()
98 for (cp = 0; isdigit(str[cp]); cp++) in string_to_frequency()
101 if (str[cp] == '.') { in string_to_frequency()
102 while (power > -1 && isdigit(str[cp+1])) { in string_to_frequency()
118 for (i = 0; i < cp; i++, str++) { in string_to_frequency()
119 if (*str == '.') in string_to_frequency()
120 str in string_to_frequency()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dkernel.h207 extern int get_option(char **str, int *pint);
208 extern char *get_options(const char *str, int nints, int *ints);
210 extern bool parse_option_str(const char *str, const char *option);
346 * @str: the string to record
366 * (1 when __trace_bputs is used, strlen(str) when __trace_puts is used)
369 #define trace_puts(str) ({ \
372 __builtin_constant_p(str) ? str : NULL; \
374 if (__builtin_constant_p(str)) \
377 __trace_puts(_THIS_IP_, str, strle
[all...]
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_mbox.c16 char *str = "Unknown"; in get_mbox_opcode_str() local
20 str = "UP"; in get_mbox_opcode_str()
24 str = "DOWN"; in get_mbox_opcode_str()
28 str = "READY"; in get_mbox_opcode_str()
32 str = "QLEN"; in get_mbox_opcode_str()
36 str = "QBIND_GRP"; in get_mbox_opcode_str()
40 str = "VQ_PRIORITY"; in get_mbox_opcode_str()
44 str = "PF_TYPE"; in get_mbox_opcode_str()
48 str = "ACK"; in get_mbox_opcode_str()
52 str in get_mbox_opcode_str()
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/
H A Dcpufreq-set.c62 static unsigned long string_to_frequency(const char *str) in string_to_frequency() argument
71 while (*str == '0') in string_to_frequency()
72 str++; in string_to_frequency()
74 for (scan = str; isdigit(*scan) || *scan == '.'; scan++) { in string_to_frequency()
98 for (cp = 0; isdigit(str[cp]); cp++) in string_to_frequency()
101 if (str[cp] == '.') { in string_to_frequency()
102 while (power > -1 && isdigit(str[cp+1])) { in string_to_frequency()
118 for (i = 0; i < cp; i++, str++) { in string_to_frequency()
119 if (*str == '.') in string_to_frequency()
120 str in string_to_frequency()
[all...]
/kernel/linux/linux-6.6/drivers/s390/char/
H A Dhmcdrv_ftp.c54 const char *str; /* command string */ in hmcdrv_ftp_cmd_getid() member
69 {.str = "get", /* [0] get (CRC = 0x68eb) */ in hmcdrv_ftp_cmd_getid()
71 {.str = "dir", /* [1] dir (CRC = 0x6a9e) */ in hmcdrv_ftp_cmd_getid()
73 {.str = "delete", /* [2] delete (CRC = 0x53ae) */ in hmcdrv_ftp_cmd_getid()
75 {.str = "nls", /* [3] nls (CRC = 0xf87c) */ in hmcdrv_ftp_cmd_getid()
77 {.str = "put", /* [4] put (CRC = 0xac56) */ in hmcdrv_ftp_cmd_getid()
79 {.str = "append", /* [5] append (CRC = 0xf56e) */ in hmcdrv_ftp_cmd_getid()
81 {.str = NULL} /* [6] unused */ in hmcdrv_ftp_cmd_getid()
96 if (!pdesc->str || strncmp(pdesc->str, cm in hmcdrv_ftp_cmd_getid()
[all...]
H A Dsclp_early_core.c85 static void sclp_early_print_lm(const char *str, unsigned int len) in sclp_early_print_lm() argument
102 ch = str[offset++]; in sclp_early_print_lm()
139 static void sclp_early_print_vt220(const char *str, unsigned int len) in sclp_early_print_vt220() argument
147 memcpy(&sccb->msg.data, str, len); in sclp_early_print_vt220()
223 void __sclp_early_printk(const char *str, unsigned int len) in __sclp_early_printk() argument
232 sclp_early_print_lm(str, len); in __sclp_early_printk()
234 sclp_early_print_vt220(str, len); in __sclp_early_printk()
238 void sclp_early_printk(const char *str) in sclp_early_printk() argument
240 __sclp_early_printk(str, strlen(str)); in sclp_early_printk()
251 sclp_emergency_printk(const char *str) sclp_emergency_printk() argument
[all...]
/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_util.c304 char *str = LLVMPrintModuleToString(module); in ac_dump_module() local
305 fprintf(stderr, "%s", str); in ac_dump_module()
306 LLVMDisposeMessage(str); in ac_dump_module()
311 char str[16]; in ac_llvm_add_target_dep_function_attr() local
313 snprintf(str, sizeof(str), "0x%x", value); in ac_llvm_add_target_dep_function_attr()
314 LLVMAddTargetDependentFunctionAttr(F, name, str); in ac_llvm_add_target_dep_function_attr()
322 char str[32]; in ac_llvm_set_workgroup_size() local
323 snprintf(str, sizeof(str), " in ac_llvm_set_workgroup_size()
[all...]
/third_party/node/src/tracing/
H A Dnode_trace_writer.cc117 std::string str; in FlushPrivate() local
127 // str() makes a copy of the contents of the stream. in FlushPrivate()
128 str = stream_.str(); in FlushPrivate()
129 stream_.str(""); in FlushPrivate()
136 WriteToFile(std::move(str), highest_request_id); in FlushPrivate()
162 void NodeTraceWriter::WriteToFile(std::string&& str, int highest_request_id) { in WriteToFile() argument
169 std::move(str), highest_request_id in WriteToFile()
173 const_cast<char*>(write_req_queue_.front().str.c_str()), in WriteToFile()
174 write_req_queue_.front().str in WriteToFile()
[all...]
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/
H A Dstring_piece.h50 StringPiece(const char* str) in StringPiece() argument
51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } in StringPiece()
52 StringPiece(const std::string& str) in StringPiece() argument
53 : ptr_(str.data()), length_(str.size()) { } in StringPiece()
74 void set(const char* str) { in set() argument
75 ptr_ = str; in set()
76 length_ = str in set()
[all...]
/third_party/python/Lib/test/
H A Dtest_codeop.py24 def assertValid(self, str, symbol='single'):
25 '''succeed iff str is a valid piece of code'''
27 code = compile_command(str, "<input>", symbol)
35 exec(compile(str,"<input>","single"), r)
41 r = { 'value': eval(str,ctx) }
44 expected = compile(str, "<input>", symbol, PyCF_DONT_IMPLY_DEDENT)
45 self.assertEqual(compile_command(str, "<input>", symbol), expected)
47 def assertIncomplete(self, str, symbol='single'):
48 '''succeed iff str is the start of a valid piece of code'''
49 self.assertEqual(compile_command(str, symbo
[all...]
/third_party/selinux/libsepol/src/
H A Dcontext_record.c199 const char *str, sepol_context_t ** con) in sepol_context_from_string()
205 if (!strcmp(str, "<<none>>")) { in sepol_context_from_string()
214 tmp = strdup(str); in sepol_context_from_string()
261 ERR(handle, "malformed context \"%s\"", str); in sepol_context_from_string()
275 char *str = NULL; in sepol_context_to_string() local
292 str = (char *)malloc(total_sz); in sepol_context_to_string()
293 if (!str) { in sepol_context_to_string()
298 rc = snprintf(str, total_sz, "%s:%s:%s:%s", in sepol_context_to_string()
301 rc = snprintf(str, total_sz, "%s:%s:%s", in sepol_context_to_string()
314 *str_ptr = str; in sepol_context_to_string()
198 sepol_context_from_string(sepol_handle_t * handle, const char *str, sepol_context_t ** con) sepol_context_from_string() argument
[all...]
/third_party/skia/bench/
H A Dcheck_bench_regressions.py55 (str, str, str, str, {str:str})"""
64 str(self.bench),
65 str(self.config),
66 str(self.time_type),
67 str(sel
[all...]
/third_party/vk-gl-cts/framework/randomshaders/
H A DrsgExpression.hpp57 virtual void tokenize (GeneratorState& state, TokenStream& str) const = DE_NULL;
74 void tokenize (GeneratorState& state, TokenStream& str) const { DE_UNREF(state); str << Token(m_variable->getName()); } in tokenize()
114 void tokenize (GeneratorState& state, TokenStream& str) const;
132 void tokenize (GeneratorState& state, TokenStream& str) const;
151 void tokenize (GeneratorState& state, TokenStream& str) const;
169 void tokenize (GeneratorState& state, TokenStream& str) const;
191 void tokenize (GeneratorState& state, TokenStream& str) const;
216 void tokenize (GeneratorState& state, TokenStream& str) const;
236 void tokenize (GeneratorState& state, TokenStream& str) cons
[all...]
/third_party/curl/lib/
H A Dftplistparser.c242 static unsigned int ftp_pl_get_permission(const char *str) in ftp_pl_get_permission() argument
246 if(str[0] == 'r') in ftp_pl_get_permission()
248 else if(str[0] != '-') in ftp_pl_get_permission()
250 if(str[1] == 'w') in ftp_pl_get_permission()
252 else if(str[1] != '-') in ftp_pl_get_permission()
255 if(str[2] == 'x') in ftp_pl_get_permission()
257 else if(str[2] == 's') { in ftp_pl_get_permission()
261 else if(str[2] == 'S') in ftp_pl_get_permission()
263 else if(str[2] != '-') in ftp_pl_get_permission()
266 if(str[ in ftp_pl_get_permission()
319 char *str = Curl_dyn_ptr(&infop->buf); ftp_pl_insert_finfo() local
[all...]
/third_party/python/Objects/
H A Dbytesobject.c37 char *str);
62 For PyBytes_FromString(), the parameter `str' points to a null-terminated
65 For PyBytes_FromStringAndSize(), the parameter `str' is
67 For PyBytes_FromStringAndSize(), the string in the `str' parameter does
70 If `str' is NULL then PyBytes_FromStringAndSize() will allocate `size+1'
72 fill in the data yourself. If `str' is non-NULL then the resulting
80 PyBytes_FromStringAndSize()) or the length of the string in the `str'
119 PyBytes_FromStringAndSize(const char *str, Py_ssize_t size) in PyBytes_FromStringAndSize() argument
127 if (size == 1 && str != NULL) { in PyBytes_FromStringAndSize()
128 op = CHARACTER(*str in PyBytes_FromStringAndSize()
147 PyBytes_FromString(const char *str) PyBytes_FromString() argument
411 formatfloat(PyObject *v, int flags, int prec, int type, PyObject **p_result, _PyBytesWriter *writer, char *str) formatfloat() argument
2384 const Py_UCS1 *str, *end; _PyBytes_FromHex() local
2702 char *str; _PyBytes_FromList() local
2748 char *str; _PyBytes_FromTuple() local
2779 char *str; _PyBytes_FromIterator() local
3342 _PyBytesWriter_CheckConsistency(_PyBytesWriter *writer, char *str) _PyBytesWriter_CheckConsistency() argument
3378 _PyBytesWriter_Resize(_PyBytesWriter *writer, void *str, Py_ssize_t size) _PyBytesWriter_Resize() argument
3448 _PyBytesWriter_Prepare(_PyBytesWriter *writer, void *str, Py_ssize_t size) _PyBytesWriter_Prepare() argument
3508 _PyBytesWriter_Finish(_PyBytesWriter *writer, void *str) _PyBytesWriter_Finish() argument
3555 char *str = (char *)ptr; _PyBytesWriter_WriteBytes() local
[all...]
/foundation/ai/ai_engine/test/function/sync_process/
H A Dsync_process_function_test.cpp74 const char *str = INPUT_CHARACTER_002; in TestGetRightInfo() local
75 char *inputData = const_cast<char*>(str); in TestGetRightInfo()
109 const char *str = INPUT_CHARACTER_001; in HWTEST_F() local
110 char *inputData = const_cast<char*>(str); in HWTEST_F()
111 int len = strlen(str) + 1; in HWTEST_F()
156 const char *str = INPUT_CHARACTER_002; in HWTEST_F() local
157 char *inputData = const_cast<char*>(str); in HWTEST_F()
158 int len = strlen(str) + 1; in HWTEST_F()
228 const char *str = INPUT_CHARACTER_002; in HWTEST_F() local
229 char *inputData = const_cast<char*>(str); in HWTEST_F()
297 const char *str = INPUT_CHARACTER_001; HWTEST_F() local
[all...]
/foundation/ai/intelligent_voice_framework/llt/hdt/depend_libs/src/
H A Dfile_ex.cpp285 string str; in StringExistsInFile() local
286 if (!LoadStringFromFile(fileName, str)) { in StringExistsInFile()
292 return (str.find(subStr) != string::npos); in StringExistsInFile()
295 string strlower(str); in StringExistsInFile()
297 transform(str.begin(), str.end(), strlower.begin(), ::tolower); in StringExistsInFile()
302 int CountStrInStr(const string& str, const string& subStr) in CountStrInStr() argument
312 while ((position = str.find(subStr, position)) != string::npos) { in CountStrInStr()
327 string str; in CountStrInFile() local
328 if (!LoadStringFromFile(fileName, str)) { in CountStrInFile()
[all...]
/foundation/arkui/ace_engine/adapter/preview/sdk/dump/
H A Dresource_index.py92 key_str = "{}mcc{}".format(key_str, str(i))
94 key_str = "{}_mcc{}".format(key_str, str(i))
102 raise Exception("invalid key={}".format(str(int(key_s[0]))))
137 key_str = "{}:{}".format(str(p_key_type), str(p_value))
139 key_str = "{}-{}:{}".format(key_str, str(p_key_type), str(p_value))
185 d_value = "{}<{}>".format(d_value, str(tmp[2 + d_d_pos:2 + d_d_value_len + d_d_pos]))
193 d_name = str(d_buf[12 + d_value_len:12 + d_value_len + d_name_len - 1].decode("utf-8"))
215 os.write(out_file, str
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/
H A Dwifi_config_file_impl.h36 * @param str - String
38 static inline void TrimString(std::string &str) in TrimString() argument
41 int j = static_cast<int>(str.length()) - 1; in TrimString()
42 while (i < static_cast<int>(str.length()) && str[i] == ' ') { in TrimString()
45 while (j >= 0 && str[j] == ' ') { in TrimString()
48 str = ((i > j) ? "" : str.substr(i, j - i + 1)); in TrimString()
54 * @param str - String
56 static inline void DelComment(std::string &str) in DelComment() argument
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Dasset.rs44 pub fn id(&self) -> &str { in id()
49 pub fn name(&self) -> &str { in name()
54 pub fn uri(&self) -> &str { in uri()
59 pub fn local_path(&self) -> &str { in local_path()
64 pub fn create_time(&self) -> &str { in create_time()
69 pub fn modify_time(&self) -> &str { in modify_time()
74 pub fn size(&self) -> &str { in size()
79 pub fn hash(&self) -> &str { in hash()
208 table: &str,
209 gid: &str,
[all...]
/kernel/linux/linux-6.6/rust/kernel/
H A Dstr.rs29 /// # use kernel::str::BStr;
34 ($str:literal) => {{
35 const S: &'static str = $str;
36 const C: &'static $crate::str::BStr = S.as_bytes();
164 /// Yields a [`&str`] slice if the [`CStr`] contains valid UTF-8.
167 /// function will return the corresponding [`&str`] slice. Otherwise,
173 /// # use kernel::str::CStr;
178 pub fn to_str(&self) -> Result<&str, core::str
[all...]
/third_party/libsnd/src/
H A Dnist.c124 char str [64], *cptr ; in nist_read_header() local
158 { sscanf (cptr, "sample_coding -s%d %63s", &count, str) ; in nist_read_header()
160 if (strcmp (str, "pcm") == 0) in nist_read_header()
164 else if (strcmp (str, "alaw") == 0) in nist_read_header()
166 else if ((strcmp (str, "ulaw") == 0) || (strcmp (str, "mu-law") == 0)) in nist_read_header()
169 { psf_log_printf (psf, "*** Unknown encoding : %s\n", str) ; in nist_read_header()
193 && sscanf (cptr, "sample_byte_format -s%u %8s", &bytes, str) == 2) in nist_read_header()
195 if (bytes != strlen (str)) in nist_read_header()
196 psf_log_printf (psf, "Weird sample_byte_format : strlen '%s' != %d\n", str, byte in nist_read_header()
[all...]
/third_party/libsnd/Octave/
H A Dsndfile.cc219 str_split (const std::string & str, const std::string & delim, std::vector <std::string> & output) in str_split() argument
224 delim_index = str.find (delim, offset) ; in str_split()
228 output.push_back (str.substr(offset, delim_index - offset)) ; in str_split()
230 delim_index = str.find (delim, offset) ; in str_split()
233 output.push_back (str.substr (offset)) ; in str_split()
237 hash_of_str (const std::string & str) in hash_of_str() argument
241 for (unsigned k = 0 ; k < str.length () ; k++) in hash_of_str()
242 hash = (hash * 3) + tolower (str [k]) ; in hash_of_str()
248 major_format_of_hash (const std::string & str) in major_format_of_hash() argument
251 hash = hash_of_str (str) ; in major_format_of_hash()
285 minor_format_of_hash(const std::string & str) minor_format_of_hash() argument
[all...]
/third_party/node/lib/
H A Dquerystring.js161 * @param {any} str
164 function qsEscape(str) {
165 if (typeof str !== 'string') {
166 if (typeof str === 'object')
167 str = String(str);
169 str += '';
172 return encodeStr(str, noEscape, hexTable);
273 * @param {string} str
276 function charCodes(str) {
[all...]
/third_party/rust/crates/env_logger/src/
H A Dlib.rs301 pub const DEFAULT_FILTER_ENV: &str = "RUST_LOG";
304 pub const DEFAULT_WRITE_STYLE_ENV: &str = "RUST_LOG_STYLE";
324 name: Cow<'a, str>,
325 default: Option<Cow<'a, str>>,
647 pub fn format_suffix(&mut self, suffix: &'static str) -> &mut Self { in format_suffix()
666 pub fn filter_module(&mut self, module: &str, level: LevelFilter) -> &mut Self { in filter_module()
707 pub fn filter(&mut self, module: Option<&str>, level: LevelFilter) -> &mut Self { in filter()
716 pub fn parse_filters(&mut self, filters: &str) -> &mut Self { in parse_filters()
769 pub fn parse_write_style(&mut self, write_style: &str) -> &mut Self { in parse_write_style()
982 E: Into<Cow<'a, str>>, in filter()
[all...]

Completed in 15 milliseconds

1...<<41424344454647484950>>...579