Lines Matching refs:tok
2132 char *tok; in phar_fix_filepath() local
2151 tok = ptr; in phar_fix_filepath()
2155 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath()
2157 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath()
2158 switch (path_length - (tok - path)) { in phar_fix_filepath()
2160 if (*tok == '.') { in phar_fix_filepath()
2168 if (tok[0] == '.' && tok[1] == '.') { in phar_fix_filepath()
2180 ptr_length = ptr - tok; in phar_fix_filepath()
2182 if (IS_DIRECTORY_UP(tok, ptr_length)) { in phar_fix_filepath()
2192 } else if (!IS_DIRECTORY_CURRENT(tok, ptr_length)) { in phar_fix_filepath()
2195 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2197 memcpy(newpath + newpath_len, tok, ptr_length+1); in phar_fix_filepath()
2207 tok = ++ptr; in phar_fix_filepath()
2211 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath()
2213 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath()
2214 ptr_length = path_length - (tok - path); in phar_fix_filepath()