/third_party/mesa3d/src/mesa/main/tests/ |
H A D | program_state_string.cpp | 37 char *str = _mesa_program_state_string(state); in TEST() local 39 ASSERT_NE((void *) 0, str); in TEST() 40 EXPECT_STREQ("state.depth.range", str); in TEST() 42 free(str); in TEST()
|
/third_party/mbedtls/tests/scripts/ |
H A D | generate_psa_tests.py | 28 verb: str, key_type: str, bits: int, 29 dependencies: List[str], 30 *args: str, 31 param_descr: str = '' 66 param_descr: str = '', 109 str(bits), 144 key_type: str, bits: int, 145 dependencies: List[str], 146 *args: str, [all...] |
/foundation/distributeddatamgr/kv_store/test/fuzztest/blob_fuzzer/ |
H A D | blob_fuzzer.cpp | 66 char str[count + 1]; in LLVMFuzzerTestOneInput() local 67 auto ret = memcpy_s(str, count + 1, data, std::min(static_cast<size_t>(count + 1), size)); in LLVMFuzzerTestOneInput() 71 str[count] = '\0'; in LLVMFuzzerTestOneInput() 72 Blob blob1(str); in LLVMFuzzerTestOneInput() 73 blob1 = str; in LLVMFuzzerTestOneInput() 77 Blob blob4(str, count + 1); in LLVMFuzzerTestOneInput()
|
/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | udmf_utils.cpp | 29 std::vector<std::string> StrSplit(const std::string &str, const std::string &delimiter) in StrSplit() argument 33 size_t end = str.find(delimiter); in StrSplit() 35 result.push_back(str.substr(start, end - start)); in StrSplit() 37 end = str.find(delimiter, start); in StrSplit() 39 result.push_back(str.substr(start)); in StrSplit() 63 return idStr.str(); in GenerateId()
|
/foundation/distributeddatamgr/udmf/adapter/framework/common/ |
H A D | udmf_utils.cpp | 27 std::vector<std::string> StrSplit(const std::string &str, const std::string &delimiter) in StrSplit() argument 31 size_t end = str.find(delimiter); in StrSplit() 33 result.push_back(str.substr(start, end - start)); in StrSplit() 35 end = str.find(delimiter, start); in StrSplit() 37 result.push_back(str.substr(start)); in StrSplit() 61 return idStr.str(); in GenerateId()
|
/foundation/filemanagement/file_api/interfaces/kits/rust/src/ |
H A D | ffi.rs | 76 Ok(str) => str, in GetParent() 87 pub unsafe extern "C" fn StrFree(str: *mut Str) { 88 if !str.is_null() { 89 let string = Box::from_raw(str); 90 let _ = CString::from_raw(string.str);
|
/third_party/elfio/examples/anonymizer/ |
H A D | anonymizer.cpp | 54 const std::string& str ) in overwrite_data() 60 std::string data( str.length(), '-' ); in overwrite_data() 70 auto str = std::string( s->get_data() + index ); in process_string_table() local 72 if ( str == "main" ) in process_string_table() 73 overwrite_data( filename, s->get_offset() + index, str ); in process_string_table() 74 index += str.length() + 1; in process_string_table()
|
/third_party/ffmpeg/libavformat/ |
H A D | id3v1.c | 225 char *q, str[512], *first_free_space = NULL; in get_string() local 227 q = str; in get_string() 232 if ((q - str) >= sizeof(str) - 1) in get_string() 247 if (*str) in get_string() 248 av_dict_set(&s->metadata, key, str, 0); in get_string()
|
H A D | sauce.c | 89 char *str = av_malloc(65*nb_comments + 1); in ff_sauce_read() local 91 if (!str) in ff_sauce_read() 94 if (avio_read(pb, str + 65*i, 64) != 64) in ff_sauce_read() 96 str[65*i + 64] = '\n'; in ff_sauce_read() 98 str[65*i] = 0; in ff_sauce_read() 99 av_dict_set(&avctx->metadata, "comment", str, AV_DICT_DONT_STRDUP_VAL); in ff_sauce_read()
|
/third_party/cups-filters/filter/ |
H A D | test_pdf2.c | 9 static inline void write_string(pdfOut *pdf,EMB_PARAMS *emb,const char *str) // {{{ in write_string() argument 17 for (iA=0;str[iA];iA++) { in write_string() 18 const unsigned short gid=emb_get(emb,(unsigned char)str[iA]); in write_string() 24 for (iA=0;str[iA];iA++) { in write_string() 25 emb_get(emb,(unsigned char)str[iA]); in write_string() 28 pdfOut_putString(pdf,str,-1); in write_string()
|
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | UnicodeNameTransliterator.java | 51 StringBuilder str = new StringBuilder(); in handleTransliterate() 52 str.append(OPEN_DELIM); in handleTransliterate() 60 str.setLength(OPEN_DELIM_LEN); in handleTransliterate() 61 str.append(name).append(CLOSE_DELIM); in handleTransliterate() 64 text.replace(cursor, cursor+clen, str.toString()); in handleTransliterate() 65 len = str.length(); in handleTransliterate()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | UnicodeNameTransliterator.java | 52 StringBuilder str = new StringBuilder(); in handleTransliterate() 53 str.append(OPEN_DELIM); in handleTransliterate() 61 str.setLength(OPEN_DELIM_LEN); in handleTransliterate() 62 str.append(name).append(CLOSE_DELIM); in handleTransliterate() 65 text.replace(cursor, cursor+clen, str.toString()); in handleTransliterate() 66 len = str.length(); in handleTransliterate()
|
/third_party/mesa3d/.gitlab-ci/lava/utils/ |
H A D | log_section.py | 41 regex: Union[Pattern, str] 42 levels: tuple[str] 43 section_id: str 44 section_header: str 49 self, lava_log_line: dict[str, str]
|
/third_party/mesa3d/bin/ |
H A D | meson-options.py | 10 def describe_option(option_name: str, option_default_value: str, 11 option_type: str, option_message: str) -> None: 35 str(value.value), 40 str(value.value),
|
/third_party/ltp/testcases/kernel/device-drivers/uaccess/ |
H A D | ltp_uaccess.c | 65 char *str, ch, buffer[str_size]; in sys_tcase() local 68 str = (char *) ptr; in sys_tcase() 73 if (copy_from_user(buffer, str, str_size)) in sys_tcase() 76 if (get_user(ch, str)) in sys_tcase() 81 if (copy_to_user(str + 1, test_str + 1, str_size - 1)) { in sys_tcase() 86 if (put_user(test_str[0], str)) { in sys_tcase()
|
/third_party/node/test/parallel/ |
H A D | test-repl-use-global.js | 21 let str = ''; 22 output.on('data', (data) => (str += data)); 27 cb(null, str.trim()); 49 let str = ''; 50 output.on('data', (data) => (str += data)); 56 cb(null, str.trim());
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
H A D | lstat.c | 37 const char str[] = "this is a sample!"; in lstat_0100() local 40 fwrite(str, sizeof(char), strlen(str), fptr); in lstat_0100() 59 const char str[] = "this is a sample!"; in lstat_time64_0100() local 62 fwrite(str, sizeof(char), strlen(str), fptr); in lstat_time64_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | gmtime_sup.c | 482 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime_0100() local 483 if (str) { in gmtime_0100() 484 handlerChar = ++str; in gmtime_0100() 525 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime64_0100() local 526 if (str) { in gmtime64_0100() 527 handlerChar = ++str; in gmtime64_0100()
|
/third_party/rust/crates/clap/tests/builder/ |
H A D | template_help.rs | 6 static EXAMPLE1_TMPL_S: &str = "{bin} {version} 15 static EXAMPLE1_TMPL_S: &str = "{name} {version} 24 static EXAMPLE1_TMPS_F: &str = "{bin} {version} 38 static EXAMPLE1_TMPS_F: &str = "{name} {version} 51 static CUSTOM_TEMPL_HELP: &str = "MyApp 1.0 69 static SIMPLE_TEMPLATE: &str = "MyApp 1.0
|
/third_party/skia/tests/ |
H A D | PathOpsThreadedCommon.h | 66 PathOpsThreadedRunnable(void (*testFun)(PathOpsThreadState*), const char* str, in PathOpsThreadedRunnable() argument 68 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1); in PathOpsThreadedRunnable() 69 strcpy(fState.fSerialNo, str); in PathOpsThreadedRunnable() 74 PathOpsThreadedRunnable(void (*testFun)(PathOpsThreadState*), int dirNo, const char* str, in PathOpsThreadedRunnable() argument 76 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1); in PathOpsThreadedRunnable() 78 strcpy(fState.fSerialNo, str); in PathOpsThreadedRunnable()
|
/third_party/skia/tools/sk_app/win/ |
H A D | main_win.cpp | 18 static char* tchar_to_utf8(const TCHAR* str) { in tchar_to_utf8() argument 20 int size = WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), NULL, 0, NULL, NULL); in tchar_to_utf8() 22 WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), str8, size, NULL, NULL); in tchar_to_utf8() 26 return _strdup(str); in tchar_to_utf8()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | typeGuardOfFormTypeOfBoolean.js | 4 var str: string; variable 24 str = strOrBool; // string 57 str = strOrBool; // string 96 var str;
variable 115 str = strOrBool; // string
145 str = strOrBool; // string
|
H A D | typeGuardOfFormTypeOfNumber.js | 4 var str: string; variable 24 str === strOrNum; // string 56 str === strOrNum; // string 95 var str;
variable 114 str === strOrNum; // string
144 str === strOrNum; // string
|
/third_party/skia/infra/bots/recipes/ |
H A D | upload_buildstats_results.py | 40 'buildstats-json-v1', str(now.year).zfill(4), 41 str(now.month).zfill(2), str(now.day).zfill(2), str(now.hour).zfill(2), 46 str(api.vars.issue), str(api.vars.patchset)))
|
/third_party/vk-gl-cts/framework/egl/ |
H A D | egluStrUtil.hpp | 72 std::ostream& operator<< (std::ostream& str, const ConfigAttribValueFmt& attribFmt); 75 std::ostream& operator<< (std::ostream& str, const SurfaceAttribValueFmt& attribFmt); 78 std::ostream& operator<< (std::ostream& str, const ContextAttribValueFmt& attribFmt); 81 std::ostream& operator<< (std::ostream& str, const ConfigAttribListFmt& fmt); 84 std::ostream& operator<< (std::ostream& str, const SurfaceAttribListFmt& fmt); 87 std::ostream& operator<< (std::ostream& str, const ContextAttribListFmt& fmt);
|