Lines Matching refs:pattern
68 static void test_i(char *pattern, int i)
75 s = PR_smprintf(pattern, i);
77 n = PR_snprintf(buf, sizeof(buf), pattern, i);
79 sprintf(sbuf, pattern, i);
85 "pattern='%s' i=%d\nPR_smprintf='%s'\nPR_snprintf='%s'\n sprintf='%s'\n",
86 pattern, i, s, buf, sbuf);
146 static void test_l(char *pattern, char *spattern, PRInt32 l)
153 s = PR_smprintf(pattern, l);
155 n = PR_snprintf(buf, sizeof(buf), pattern, l);
163 "pattern='%s' l=%ld\nPR_smprintf='%s'\nPR_snprintf='%s'\n sprintf='%s'\n",
164 pattern, l, s, buf, sbuf);
240 static void test_ll(char *pattern, char *spattern, PRInt64 l)
247 s = PR_smprintf(pattern, l);
249 n = PR_snprintf(buf, sizeof(buf), pattern, l);
267 "pattern='%s' ll=" FORMAT_SPEC "\nPR_smprintf='%s'\nPR_snprintf='%s'\n sprintf='%s'\n",
268 pattern, l, s, buf, sbuf);
278 "pattern='%s'\nPR_smprintf='%s'\nPR_snprintf='%s'\n sprintf='%s'\n",
279 pattern, s, buf, sbuf);
363 static void test_s(char *pattern, char *ss)
375 s = PR_smprintf(pattern, ss);
377 n = PR_snprintf(buf, sizeof(buf), pattern, ss);
379 sprintf(sbuf, pattern, ss);
390 "pattern='%s' ss=%.20s\nPR_smprintf='%s'\nPR_snprintf='%s'\n sprintf='%s'\n",
391 pattern, ss, s, buf, sbuf);