Lines Matching full: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) in strcount() argument
45 const char *p = source; in strcount()
50 if (source == NULL || find == NULL) in strcount()
55 if (strlen(source) == 0 || flen == 0) in strcount()
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) in replaceall() argument
101 if (source == NULL) in replaceall()
104 return (strlen(source)); in replaceall()
107 slen = strlen(source); in replaceall()
120 memcpy(temp, source, slen + 1); in replaceall()
122 temp = source; in replaceall()
125 p = source; t = temp; /* position elements */ in replaceall()
141 if (temp != source) in replaceall()
145 return (strlen(source)); in replaceall()
149 * Expands escape sequences in a buffer pointed to by `source'. This function
175 void strexpand(char *source) in strexpand() argument
183 pos = chr = source; in strexpand()
252 * Expand only the escaped newlines in a buffer pointed to by `source'. This
263 void strexpandnl(char *source) in strexpandnl() argument
270 cp1 = cp2 = source; in strexpandnl()
293 strtolower(char *source) in strtolower() argument
295 char *p = source; in strtolower()
297 if (source == NULL) in strtolower()