Lines Matching defs:source
5 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
41 * Counts the number of occurrences of one string that appear in the source
48 strcount(const char *source, const char *find)
50 const char *p = source;
55 if (source == NULL || find == NULL)
60 if (strlen(source) == 0 || flen == 0)
76 * Replaces all occurrences of `find' in `source' with `replace'.
79 * a pointer to an allocated block of memory. The block of memory that source
82 * will be larger than the original source string. To allocate enough space for
86 * If source is not large enough, the application will crash. The return value
93 replaceall(char *source, const char *find, const char *replace)
106 if (source == NULL)
109 return (strlen(source));
112 slen = strlen(source);
125 strcpy(temp, source);
127 temp = source;
130 p = source; t = temp; /* position elements */
146 if (temp != source)
150 return (strlen(source));
154 * Expands escape sequences in a buffer pointed to by `source'. This function
180 void strexpand(char *source)
188 pos = chr = source;
257 * Expand only the escaped newlines in a buffer pointed to by `source'. This
268 void strexpandnl(char *source)
275 cp1 = cp2 = source;
298 strtolower(char *source)
300 char *p = source;
302 if (source == NULL)