Lines Matching refs:slash
368 // Find the last slash
369 std::string::size_type slash = path.rfind('/');
370 if (slash == std::string::npos)
371 slash = 0;
373 slash++;
376 if (dot == std::string::npos || dot < slash)
377 return StringRef(path).substr(slash);
379 return StringRef(path).substr(slash, dot - slash);
384 // Find the last slash
385 std::string::size_type slash = path.rfind('/');
386 if (slash == std::string::npos)
387 slash = 0;
389 slash++;
392 if (dot == std::string::npos || dot < slash)
472 // Find the last slash
479 // If the last character is a slash
481 // Find the second to last slash
488 // Return everything after the last slash