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
36 * Counts the number of occurrences of one string that appear in the source
43 strcount(const char *source, const char *find)
45 const char *p = source;
50 if (source == NULL || find == NULL)
55 if (strlen(source) == 0 || flen == 0)
71 * Replaces all occurrences of `find' in `source' with `replace'.
74 * a pointer to an allocated block of memory. The block of memory that source
77 * will be larger than the original source string. To allocate enough space for
81 * If source is not large enough, the application will crash. The return value
88 replaceall(char *source, const char *find, const char *replace)
101 if (source == NULL)
104 return (strlen(source));
107 slen = strlen(source);
120 memcpy(temp, source, slen + 1);
122 temp = source;
125 p = source; t = temp; /* position elements */
141 if (temp != source)
145 return (strlen(source));
149 * Expands escape sequences in a buffer pointed to by `source'. This function
175 void strexpand(char *source)
183 pos = chr = source;
252 * Expand only the escaped newlines in a buffer pointed to by `source'. This
263 void strexpandnl(char *source)
270 cp1 = cp2 = source;
293 strtolower(char *source)
295 char *p = source;
297 if (source == NULL)