Lines Matching refs:string
152 char *_pn_append_to_path(PathName *path, const char *string, int slen, in _pn_append_to_path() argument
160 if(!path || !string) { in _pn_append_to_path()
171 if(slen < 0 || slen > strlen(string)) in _pn_append_to_path()
172 slen = strlen(string); in _pn_append_to_path()
185 is_escape = !is_escape && string[i] == '\\'; in _pn_append_to_path()
187 path->name[pathlen++] = string[i]; in _pn_append_to_path()
197 memcpy(path->name + pathlen, string, slen); in _pn_append_to_path()
222 char *_pn_prepend_to_path(PathName *path, const char *string, int slen, in _pn_prepend_to_path() argument
231 if(!path || !string) { in _pn_prepend_to_path()
242 if(slen < 0 || slen > strlen(string)) in _pn_prepend_to_path()
243 slen = strlen(string); in _pn_prepend_to_path()
253 is_escape = !is_escape && string[i] == '\\'; in _pn_prepend_to_path()
276 is_escape = !is_escape && string[i] == '\\'; in _pn_prepend_to_path()
278 path->name[j++] = string[i]; in _pn_prepend_to_path()
281 memcpy(path->name, string, slen); in _pn_prepend_to_path()
446 char *_pu_start_of_path(const char *string, int back_from) in _pu_start_of_path() argument
452 if(!string || back_from < 0) { in _pu_start_of_path()
460 int c = string[i]; in _pu_start_of_path()
473 for(j=i-1; j>=0 && string[j]=='\\'; j--) in _pu_start_of_path()
483 return (char *)string + i + 1; in _pu_start_of_path()
499 char *_pu_end_of_path(const char *string, int start_from) in _pu_end_of_path() argument
507 if(!string || start_from < 0) { in _pu_end_of_path()
514 for(i=start_from; (c=string[i]) != '\0'; i++) { in _pu_end_of_path()
523 return (char *)string + i; in _pu_end_of_path()