Lines Matching refs:pathbuf
413 char* pathbuf = path->empty() ? NULL : &(*path)[0];
419 if (!path->empty() && pathbuf[0] == '/') {
422 if (path->size() > 1 && pathbuf[1] == '/') {
433 if (pathbuf[src_i] == '.') {
434 if (src_i == 0 || pathbuf[src_i - 1] == '/') {
440 pathbuf[dest_i++] = pathbuf[src_i++];
459 pathbuf[dest_i++] = '.';
460 pathbuf[dest_i++] = '.';
462 pathbuf[dest_i++] = '/';
473 while (dest_i > 0 && pathbuf[dest_i - 1] != '/')
480 pathbuf[dest_i++] = pathbuf[src_i++];
482 } else if (pathbuf[src_i] == '/') {
483 if (src_i > 0 && pathbuf[src_i - 1] == '/') {
488 pathbuf[dest_i++] = pathbuf[src_i++];
492 pathbuf[dest_i++] = pathbuf[src_i++];