version 1.13, 2009/10/27 23:59:40 |
version 1.14, 2013/11/26 13:19:07 |
|
|
/* Reformat string to avoid doing it multiple times later. */ |
/* Reformat string to avoid doing it multiple times later. */ |
for (readp = writep = string; ch = *readp++;) { |
for (readp = writep = string; ch = *readp++;) { |
if (fflag) |
if (fflag) |
ch = FOLD(ch); |
ch = FOLD((unsigned char)ch); |
if (dflag) |
if (dflag) |
ch = DICT(ch); |
ch = DICT((unsigned char)ch); |
if (ch != NO_COMPARE) |
if (ch != NO_COMPARE) |
*(writep++) = ch; |
*(writep++) = ch; |
} |
} |
|
|
for (; *s1 && s2 < back && *s2 != '\n'; ++s1, ++s2) { |
for (; *s1 && s2 < back && *s2 != '\n'; ++s1, ++s2) { |
ch = *s2; |
ch = *s2; |
if (fflag) |
if (fflag) |
ch = FOLD(ch); |
ch = FOLD((unsigned char)ch); |
if (dflag) |
if (dflag) |
ch = DICT(ch); |
ch = DICT((unsigned char)ch); |
|
|
if (ch == NO_COMPARE) { |
if (ch == NO_COMPARE) { |
++s2; /* Ignore character in comparison. */ |
++s2; /* Ignore character in comparison. */ |