Home | History | Annotate | Download | only in tr

Lines Matching refs:string2

55 static int string1[NCHARS], string2[NCHARS];
100 * tr -ds [-c] string1 string2
102 * Squeeze all characters in string2.
109 setup(string2, argv[1], 2, 0);
112 if (!string1[ch] && (!string2[ch] || lastch != ch)) {
151 * tr [-cs] string1 string2
153 * the character in the same position in string2. If the -s option is
154 * specified, squeeze all the characters in string2.
188 errx(1, "empty string2");
222 /* Note the characters to squeeze in string2[]. */
224 string2[ch2] = 1;
242 if (!string2[ch] || lastch != ch) {
278 (void)fprintf(stderr, "usage: tr [-cs] string1 string2\n");
281 (void)fprintf(stderr, " tr [-c] -ds string1 string2\n");