/third_party/rust/crates/clap/src/output/textwrap/ |
H A D | word_separators.rs | 1 pub(crate) fn find_words_ascii_space(line: &str) -> impl Iterator<Item = &'_ str> + '_ { 4 let mut char_indices = line.char_indices(); 9 let word = &line[start..idx]; 18 if start < line.len() { 19 let word = &line[start..]; 20 start = line.len(); 34 $([ $line:expr, $ascii_words:expr ]),+) => { 39 let actual_words = find_words_ascii_space($line) 41 assert_eq!(actual_words, expected_words, "Line: {:?}", $line);
|
/third_party/python/Tools/peg_generator/scripts/ |
H A D | joinstats.py | 5 Reads a list of statistics from stdin. Each line must be two numbers, 28 for line in f: 29 match = re.match(r"#define (\w+)_type (\d+)", line) 32 if "left" in line.lower(): 45 for lineno, line in enumerate(f, 1): 46 line = line.strip() 47 if not line or line.startswith("#"): 49 parts = line [all...] |
/third_party/protobuf/conformance/ |
H A D | update_failure_list.py | 52 for line in f: 53 add_set.add(line) 57 for line in f: 58 if line in add_set: 59 raise Exception("Asked to both add and remove test: " + line) 60 remove_set.add(line.strip()) 68 for line in existing_list.splitlines(True): 69 test = line.split("#")[0].strip() 73 f.write(line)
|
/third_party/toybox/toys/pending/ |
H A D | chsh.c | 32 char *user, *line, *shell, *encrypted; in chsh_main() local 68 while ((line = xgetline(file)) && strcmp(shell, line)) free(line); in chsh_main() 69 else do line = xgetline(file); while (line && *line != '/'); in chsh_main() 70 if (!line) error_exit("Shell not found in '/etc/shells'"); in chsh_main() 73 passwd_info->pw_shell = line; in chsh_main()
|
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluDefs.cpp | 35 Error::Error (int error, const char* message, const char* expr, const char* file, int line) in Error() argument 36 : tcu::TestError (message, expr, file, line) in Error() 51 OutOfMemoryError::OutOfMemoryError (const char* message, const char* expr, const char* file, int line) in OutOfMemoryError() argument 52 : tcu::ResourceError(message, expr, file, line) in OutOfMemoryError() 65 void checkError (const RenderContext& context, const char* msg, const char* file, int line) in checkError() argument 67 checkError(context.getFunctions().getError(), msg, file, line); in checkError() 70 void checkError (deUint32 err, const char* msg, const char* file, int line) in checkError() argument 81 throw OutOfMemoryError(msgStr.str().c_str(), DE_NULL, file, line); in checkError() 83 throw Error(err, msgStr.str().c_str(), DE_NULL, file, line); in checkError()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/ |
H A D | ap_config_file.c | 33 int line = 0, vlan_id; in hostapd_config_read_vlan_file() local 43 line++; in hostapd_config_read_vlan_file() 66 "line %d in '%s'", line, fname); in hostapd_config_read_vlan_file() 82 wpa_printf(MSG_ERROR, "Invalid VLAN ifname at line %d " in hostapd_config_read_vlan_file() 83 "in '%s'", line, fname); in hostapd_config_read_vlan_file() 170 int line = 0; in hostapd_config_read_maclist() local 183 line++; in hostapd_config_read_maclist() 205 "line %d in '%s'", pos, line, fnam in hostapd_config_read_maclist() 240 hostapd_config_eap_user_salted(struct hostapd_eap_user *user, const char *hash, size_t len, char **pos, int line, const char *fname) hostapd_config_eap_user_salted() argument 300 int line = 0, ret = 0, num_methods; hostapd_config_read_eap_user() local 680 hostapd_config_parse_key_mgmt(int line, const char *value) hostapd_config_parse_key_mgmt() argument 781 hostapd_config_parse_cipher(int line, const char *value) hostapd_config_parse_cipher() argument 1330 parse_roaming_consortium(struct hostapd_bss_config *bss, char *pos, int line) parse_roaming_consortium() argument 1410 parse_venue_name(struct hostapd_bss_config *bss, char *pos, int line) parse_venue_name() argument 1422 parse_venue_url(struct hostapd_bss_config *bss, char *pos, int line) parse_venue_url() argument 1460 parse_3gpp_cell_net(struct hostapd_bss_config *bss, char *buf, int line) parse_3gpp_cell_net() argument 1535 parse_nai_realm(struct hostapd_bss_config *bss, char *buf, int line) parse_nai_realm() argument 1676 parse_anqp_elem(struct hostapd_bss_config *bss, char *buf, int line) parse_anqp_elem() argument 1724 parse_qos_map_set(struct hostapd_bss_config *bss, char *buf, int line) parse_qos_map_set() argument 1768 hs20_parse_conn_capab(struct hostapd_bss_config *bss, char *buf, int line) hs20_parse_conn_capab() argument 1802 hs20_parse_wan_metrics(struct hostapd_bss_config *bss, char *buf, int line) hs20_parse_wan_metrics() argument 1867 hs20_parse_oper_friendly_name(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_oper_friendly_name() argument 1933 hs20_parse_osu_ssid(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_ssid() argument 1954 hs20_parse_osu_server_uri(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_server_uri() argument 1974 hs20_parse_osu_friendly_name(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_friendly_name() argument 1993 hs20_parse_osu_nai(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_nai() argument 2010 hs20_parse_osu_nai2(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_nai2() argument 2028 hs20_parse_osu_method_list(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_method_list() argument 2045 hs20_parse_osu_icon(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_icon() argument 2069 hs20_parse_osu_service_desc(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_osu_service_desc() argument 2088 hs20_parse_operator_icon(struct hostapd_bss_config *bss, char *pos, int line) hs20_parse_operator_icon() argument 2151 parse_wpabuf_hex(int line, const char *name, struct wpabuf **buf, const char *val) parse_wpabuf_hex() argument 2368 hostapd_config_fill(struct hostapd_config *conf, struct hostapd_bss_config *bss, const char *buf, char *pos, int line) global() argument 4530 int line = 0; global() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | vplayerdec.c | 45 static int64_t read_ts(char **line) in read_ts() argument 50 if (((n = sscanf(*line, "%d:%d:%d.%d%c%n", &hh, &mm, &ss, &ms, &c, &len)) >= 5 || in read_ts() 51 (n = sscanf(*line, "%d:%d:%d%c%n", &hh, &mm, &ss, &c, &len)) >= 4) && strchr(": =", c)) { in read_ts() 52 *line += len; in read_ts() 70 char line[4096]; in vplayer_read_header() local 71 char *p = line; in vplayer_read_header() 73 int len = ff_get_line(s->pb, line, sizeof(line)); in vplayer_read_header() 79 line[strcspn(line, "\ in vplayer_read_header() [all...] |
H A D | pjsdec.c | 51 static int64_t read_ts(char **line, int *duration) in read_ts() argument 55 if (sscanf(*line, "%"SCNd64",%"SCNd64, &start, &end) == 2) { in read_ts() 56 *line += strcspn(*line, "\""); in read_ts() 57 *line += !!**line; in read_ts() 78 char line[4096]; in pjs_read_header() local 79 char *p = line; in pjs_read_header() 81 int len = ff_get_line(s->pb, line, sizeof(line)); in pjs_read_header() [all...] |
/third_party/mesa3d/bin/ |
H A D | post_version.py | 39 for line in relnotes: 40 if first_list and line.startswith('-'): 43 if not first_list and second_list and line.startswith(' relnotes/'): 46 new_relnotes.append(line) 49 for line in new_relnotes: 50 f.write(line) 62 for i, line in enumerate(calendar): 63 if line[2] == version: 64 if line[0]: 65 branch = line[ [all...] |
H A D | symbols-check.py | 38 for line in output.splitlines(): 39 fields = line.split() 61 for line in output.splitlines(): 62 fields = line.split() 120 for line in symbols_file.readlines(): 123 line = line.split('#')[0] 124 line = line.strip() 125 if not line [all...] |
/third_party/libdrm/ |
H A D | symbols-check.py | 30 for line in output.splitlines(): 31 fields = line.split() 72 for line in symbols_file.readlines(): 75 line = line.split('#')[0] 76 line = line.strip() 77 if not line: 85 fields = line.split() 92 print(args.symbols_file + ': invalid format: ' + line) [all...] |
/third_party/python/Tools/c-analyzer/cpython/ |
H A D | _parser.py | 23 lines = (line.strip() for line in text.splitlines()) 24 lines = (line.partition('#')[0].rstrip() 25 for line in lines 26 if line and not line.startswith('#')) 28 lines = (re.sub(r'^[*] ', glob_all, line) for line in lines) 29 lines = (_abs(line) for line i [all...] |
/third_party/typescript/tests/ts_extra_tests/tool/ |
H A D | test_helper.py | 29 line = f.readline() 30 if not line: 32 if start_pattern.match(line): 35 if end_pattern.match(line): 39 context += line 97 line = f.readline() 98 if not line: 101 line = line.replace('/', '\\') 102 disable_list.append(line [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | ParseHelper.h | 116 bool parseVectorFields(const TString&, int vecSize, TVectorFields&, const TSourceLoc &line); 118 bool reservedErrorCheck(const TSourceLoc &line, const TString& identifier); 119 void assignError(const TSourceLoc &line, const char* op, TString left, TString right); 120 void unaryOpError(const TSourceLoc &line, const char* op, TString operand); 121 void binaryOpError(const TSourceLoc &line, const char* op, TString left, TString right); 122 bool precisionErrorCheck(const TSourceLoc &line, TPrecision precision, TBasicType type); 123 bool lValueErrorCheck(const TSourceLoc &line, const char* op, TIntermTyped*); 126 bool globalErrorCheck(const TSourceLoc &line, bool global, const char* token); 127 bool constructorErrorCheck(const TSourceLoc &line, TIntermNode*, TFunction&, TOperator, TType*); 128 bool arraySizeErrorCheck(const TSourceLoc &line, TIntermType [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qedi/ |
H A D | qedi_dbg.c | 11 qedi_dbg_err(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_err() argument 24 func, line, qedi->host_no, &vaf); in qedi_dbg_err() 26 pr_err("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_err() 32 qedi_dbg_warn(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_warn() argument 48 func, line, qedi->host_no, &vaf); in qedi_dbg_warn() 50 pr_warn("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_warn() 57 qedi_dbg_notice(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_notice() argument 73 dev_name(&qedi->pdev->dev), func, line, in qedi_dbg_notice() 76 pr_notice("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_notice() 83 qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_info() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/arch/s390/util/ |
H A D | header.c | 32 char *cp, *line = NULL, *line2; in get_cpuid() local 41 * Scan /proc/sysinfo line by line and read out values for in get_cpuid() 60 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid() 61 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid() 62 line2 = line + strlen(SYSINFO_MANU); in get_cpuid() 70 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid() 71 line2 = line + strlen(SYSINFO_TYPE); in get_cpuid() 79 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid() 80 line2 = line in get_cpuid() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | nv50.c | 38 u8 line = (data & 0x0000001f); in nv50_gpio_reset() local 44 u32 reg = regs[line >> 4]; in nv50_gpio_reset() 45 u32 lsh = line & 0x0f; in nv50_gpio_reset() 51 nvkm_gpio_set(gpio, 0, func, line, defs); in nv50_gpio_reset() 58 nv50_gpio_location(int line, u32 *reg, u32 *shift) in nv50_gpio_location() argument 62 if (line >= 32) in nv50_gpio_location() 65 *reg = nv50_gpio_reg[line >> 3]; in nv50_gpio_location() 66 *shift = (line & 7) << 2; in nv50_gpio_location() 71 nv50_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in nv50_gpio_drive() argument 76 if (nv50_gpio_location(line, in nv50_gpio_drive() 84 nv50_gpio_sense(struct nvkm_gpio *gpio, int line) nv50_gpio_sense() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | nv50.c | 38 u8 line = (data & 0x0000001f); in nv50_gpio_reset() local 44 u32 reg = regs[line >> 4]; in nv50_gpio_reset() 45 u32 lsh = line & 0x0f; in nv50_gpio_reset() 51 nvkm_gpio_set(gpio, 0, func, line, defs); in nv50_gpio_reset() 58 nv50_gpio_location(int line, u32 *reg, u32 *shift) in nv50_gpio_location() argument 62 if (line >= 32) in nv50_gpio_location() 65 *reg = nv50_gpio_reg[line >> 3]; in nv50_gpio_location() 66 *shift = (line & 7) << 2; in nv50_gpio_location() 71 nv50_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in nv50_gpio_drive() argument 76 if (nv50_gpio_location(line, in nv50_gpio_drive() 84 nv50_gpio_sense(struct nvkm_gpio *gpio, int line) nv50_gpio_sense() argument [all...] |
/kernel/linux/linux-6.6/tools/perf/arch/s390/util/ |
H A D | header.c | 32 char *cp, *line = NULL, *line2; in get_cpuid() local 41 * Scan /proc/sysinfo line by line and read out values for in get_cpuid() 60 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid() 61 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid() 62 line2 = line + strlen(SYSINFO_MANU); in get_cpuid() 70 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid() 71 line2 = line + strlen(SYSINFO_TYPE); in get_cpuid() 79 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid() 80 line2 = line in get_cpuid() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/qedi/ |
H A D | qedi_dbg.c | 11 qedi_dbg_err(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_err() argument 24 func, line, qedi->host_no, &vaf); in qedi_dbg_err() 26 pr_err("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_err() 32 qedi_dbg_warn(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_warn() argument 48 func, line, qedi->host_no, &vaf); in qedi_dbg_warn() 50 pr_warn("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_warn() 57 qedi_dbg_notice(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_notice() argument 73 dev_name(&qedi->pdev->dev), func, line, in qedi_dbg_notice() 76 pr_notice("[0000:00:00.0]:[%s:%d]: %pV", func, line, &vaf); in qedi_dbg_notice() 83 qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line, in qedi_dbg_info() argument [all...] |
/third_party/elfutils/tests/ |
H A D | line2addr.c | 64 int line; member 79 if (dwfl_module_getsrc_file (mod, a->file, a->line, 0, &lines, &nlines) == 0) in handle_module() 84 int line = a->line, col = 0; in handle_module() local 85 const char *file = dwfl_lineinfo (lines[inner], &addr, &line, &col, in handle_module() 93 if (strcmp (file, a->file) || line != a->line || col != 0) in handle_module() 95 file, line); in handle_module() 99 || strcmp (file, a->file) || line != a->line || co in handle_module() [all...] |
/third_party/node/deps/v8/tools/ |
H A D | compare-table-gen.js | 57 var line = " ["; 59 if (j > 0) line += ","; 60 line += SpecialToString(func(values[i], values[j])); 62 line += "]"; 63 if (i < (values.length - 1)) line += ","; 64 print(line); 91 var line = " ["; 93 if (j > 0) line += ","; 94 line += expr(infix, strings[i], cmp, strings[j]); 96 line [all...] |
/third_party/python/Tools/scripts/ |
H A D | ifdef.py | 56 line = fpi.readline() 57 if not line: break 58 while line[-2:] == '\\\n': 61 line = line + nextline 62 tmp = line.strip() 64 if ok: fpo.write(line) 70 if ok: fpo.write(line) 86 if ok: fpo.write(line) 89 if ok: fpo.write(line) [all...] |
/third_party/rust/crates/cxx/book/ |
H A D | build.js | 63 const boring = lines.map((line) => 64 line.includes('<span class="boring">') 66 const ellipsis = lines.map((line) => line.includes('// ...')); 71 .map(function (line, i) { 73 line = '<span class="boring">' + line; 75 line = '<span class="ellipsis">' + line; 78 line [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-number-parser.hh | 2 #line 1 "hb-number-parser.rl" 34 #line 35 "hb-number-parser.hh" 94 #line 68 "hb-number-parser.rl" 138 #line 139 "hb-number-parser.hh" in strtod_rl() 143 #line 144 "hb-number-parser.hh" in strtod_rl() 169 #line 37 "hb-number-parser.rl" in strtod_rl() 173 #line 38 "hb-number-parser.rl" in strtod_rl() 177 #line 40 "hb-number-parser.rl" in strtod_rl() 183 #line 43 "hb-number-parser.rl" in strtod_rl() 193 #line 5 in strtod_rl() [all...] |