Home | History | Annotate | Download | only in gn

Lines Matching full:pathbuf

445   char* pathbuf = path->empty() ? NULL : &(*path)[0];
451 if (!path->empty() && pathbuf[0] == '/') {
454 if (path->size() > 1 && pathbuf[1] == '/') {
465 if (pathbuf[src_i] == '.') {
466 if (src_i == 0 || IsSlash(pathbuf[src_i - 1])) {
472 pathbuf[dest_i++] = pathbuf[src_i++];
491 pathbuf[dest_i++] = '.';
492 pathbuf[dest_i++] = '.';
494 pathbuf[dest_i++] = '/';
505 while (dest_i > 0 && !IsSlash(pathbuf[dest_i - 1]))
512 pathbuf[dest_i++] = pathbuf[src_i++];
514 } else if (IsSlash(pathbuf[src_i])) {
515 if (src_i > 0 && IsSlash(pathbuf[src_i - 1])) {
520 pathbuf[dest_i] = '/';
526 pathbuf[dest_i++] = pathbuf[src_i++];