Home
last modified time | relevance | path

Searched refs:streqn (Results 1 – 13 of 13) sorted by relevance

/dports/textproc/miller/miller-5.10.2/c/unit_test/
H A Dtest_mlrutil.c87 x = ""; y = ""; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
88 x = ""; y = "1"; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
89 x = ""; y = "12"; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
90 x = ""; y = "123"; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
92 x = ""; y = ""; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
93 x = "a"; y = ""; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
94 x = "ab"; y = ""; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
95 x = "abc"; y = ""; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
97 x = "a"; y = "a"; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
98 x = "a"; y = "aa"; mu_assert_lf(streqn(x, y, 2) == !strncmp(x, y, 2)); in test_streqn()
[all …]
/dports/textproc/miller/miller-5.10.2/c/lib/
H A Dmlrutil.c438 if (streqn(pi, "\\a", 2)) { in mlr_alloc_unbackslash()
441 } else if (streqn(pi, "\\b", 2)) { in mlr_alloc_unbackslash()
444 } else if (streqn(pi, "\\f", 2)) { in mlr_alloc_unbackslash()
447 } else if (streqn(pi, "\\n", 2)) { in mlr_alloc_unbackslash()
450 } else if (streqn(pi, "\\r", 2)) { in mlr_alloc_unbackslash()
453 } else if (streqn(pi, "\\t", 2)) { in mlr_alloc_unbackslash()
456 } else if (streqn(pi, "\\v", 2)) { in mlr_alloc_unbackslash()
459 } else if (streqn(pi, "\\\\", 2)) { in mlr_alloc_unbackslash()
462 } else if (streqn(pi, "\\'", 2)) { in mlr_alloc_unbackslash()
465 } else if (streqn(pi, "\\\"", 2)) { in mlr_alloc_unbackslash()
[all …]
H A Dmlrutil.h53 static inline int streqn(char* a, char* b, int n) { in streqn() function
/dports/textproc/miller/miller-5.10.2/c/input/
H A Dlrec_reader_stdio_csvlite.c303 while (streqn(p, ifs, ifslen)) in split_csvlite_header_line_multi_ifs()
308 if (streqn(p, ifs, ifslen)) { in split_csvlite_header_line_multi_ifs()
312 while (streqn(p, ifs, ifslen)) in split_csvlite_header_line_multi_ifs()
418 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_csvlite_data_line_multi_ifs()
427 if (streqn(p, ifs, ifslen)) { in lrec_parse_stdio_csvlite_data_line_multi_ifs()
448 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_csvlite_data_line_multi_ifs()
541 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_csvlite_data_line_multi_ifs_implicit_header()
550 if (streqn(p, ifs, ifslen)) { in lrec_parse_stdio_csvlite_data_line_multi_ifs_implicit_header()
557 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_csvlite_data_line_multi_ifs_implicit_header()
H A Dlrec_reader_stdio_dkvp.c289 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_dkvp_multi_sep()
298 if (streqn(p, ifs, ifslen)) { in lrec_parse_stdio_dkvp_multi_sep()
316 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_dkvp_multi_sep()
321 } else if (streqn(p, ips, ipslen) && !saw_ps) { in lrec_parse_stdio_dkvp_multi_sep()
H A Dlrec_reader_stdio_nidx.c241 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_nidx_multi_sep()
247 if (streqn(p, ifs, ifslen)) { in lrec_parse_stdio_nidx_multi_sep()
256 while (streqn(p, ifs, ifslen)) in lrec_parse_stdio_nidx_multi_sep()
H A Dmlr_json_adapter.c285 if (streqn(p, line_term, line_term_len)) { in mlr_json_strip_comments()
288 } else if (at_line_start && streqn(p, comment_string, comment_string_len)) { in mlr_json_strip_comments()
290 while (p < peof && !streqn(p, line_term, line_term_len)) { in mlr_json_strip_comments()
H A Dlrec_reader_stdio_xtab.c172 while (*p != 0 && !streqn(p, ips, ipslen)) in lrec_parse_stdio_xtab_multi_ips()
177 while (*p != 0 && streqn(p, ips, ipslen)) { in lrec_parse_stdio_xtab_multi_ips()
H A DREADME.md31 and `streqn(p, ifs, ifslen)`: even with function inlining, the latter is more
H A Dlrec_reader_stdio_csv.c240 …if (streqn(pstate->pfields->phead->value, pstate->comment_string, pstate->comment_string_length)) { in lrec_reader_stdio_csv_process()
302 …if (streqn(pstate->pfields->phead->value, pstate->comment_string, pstate->comment_string_length)) { in lrec_reader_stdio_csv_process()
/dports/textproc/miller/miller-5.10.2/c/output/
H A Dlrec_writer_csv.c156 if (streqn(p, ors, orslen) || streqn(p, ofs, ofslen)) { in quote_minimal_output_func()
177 if (streqn(p, "\n", 1) || streqn(p, "\r\n", 2) || streqn(p, ofs, ofslen)) { in quote_minimal_auto_output_func()
/dports/devel/valgrind-lts/valgrind-dragonfly-dragonfly/cachegrind/
H A Dcg_merge.c194 static Bool streqn ( const char* s1, const char* s2, size_t n ) in streqn() function
634 if (!streqn(line, "desc: ", 6)) in parse_CacheProfFile()
658 if (!streqn(line, "cmd: ", 5)) in parse_CacheProfFile()
669 if (!streqn(line, "events: ", 8)) in parse_CacheProfFile()
706 if (streqn(line, "fn=", 3)) { in parse_CacheProfFile()
712 if (streqn(line, "fl=", 3)) { in parse_CacheProfFile()
718 if (streqn(line, "summary: ", 9)) { in parse_CacheProfFile()
726 if (!streqn(line, "summary: ", 9)) in parse_CacheProfFile()
/dports/devel/valgrind/valgrind-dragonfly-dragonfly/cachegrind/
H A Dcg_merge.c194 static Bool streqn ( const char* s1, const char* s2, size_t n ) in streqn() function
634 if (!streqn(line, "desc: ", 6)) in parse_CacheProfFile()
658 if (!streqn(line, "cmd: ", 5)) in parse_CacheProfFile()
669 if (!streqn(line, "events: ", 8)) in parse_CacheProfFile()
706 if (streqn(line, "fn=", 3)) { in parse_CacheProfFile()
712 if (streqn(line, "fl=", 3)) { in parse_CacheProfFile()
718 if (streqn(line, "summary: ", 9)) { in parse_CacheProfFile()
726 if (!streqn(line, "summary: ", 9)) in parse_CacheProfFile()