comparison src/util.c @ 8735:92cbf9713795

[gaim-migrate @ 9490] Patch by Jonathan Champ to corect the vairous speling mistakes we hav e in the coments and documentaion. Thansk Jonathan! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 21 Apr 2004 01:34:26 +0000
parents ddd2bf87fe8d
children ae3f33870550
comparison
equal deleted inserted replaced
8734:407c122d6191 8735:92cbf9713795
321 found_word = TRUE; 321 found_word = TRUE;
322 break; 322 break;
323 } 323 }
324 } 324 }
325 #if 0 325 #if 0
326 /* I think this is rarely going to happend, if at all */ 326 /* I think this is rarely going to happen, if at all */
327 else if ((num < 2) && (strchr("()<>@,;:/[]", *cur))) 327 else if ((num < 2) && (strchr("()<>@,;:/[]", *cur)))
328 /* There can't be these characters in the first two tokens. */ 328 /* There can't be these characters in the first two tokens. */
329 break; 329 break;
330 else if ((num == 2) && (*cur == ' ')) 330 else if ((num == 2) && (*cur == ' '))
331 /* There can't be spaces in the third token. */ 331 /* There can't be spaces in the third token. */
1968 length_del = strlen(delimiter); 1968 length_del = strlen(delimiter);
1969 length_rep = strlen(replacement); 1969 length_rep = strlen(replacement);
1970 1970
1971 /* Count how many times the delimiter appears */ 1971 /* Count how many times the delimiter appears */
1972 i = 0; /* position in the source string */ 1972 i = 0; /* position in the source string */
1973 j = 0; /* number of occurences of "delimiter" */ 1973 j = 0; /* number of occurrences of "delimiter" */
1974 while (string[i] != '\0') { 1974 while (string[i] != '\0') {
1975 if (!strncasecmp(&string[i], delimiter, length_del)) { 1975 if (!strncasecmp(&string[i], delimiter, length_del)) {
1976 i += length_del; 1976 i += length_del;
1977 j += length_rep; 1977 j += length_rep;
1978 } else { 1978 } else {