Lines Matching refs:slash
377 // Find the last slash
378 std::string::size_type slash = path.rfind('/');
379 if (slash == std::string::npos)
380 slash = 0;
382 slash++;
385 if (dot == std::string::npos || dot < slash)
386 return StringRef(path).substr(slash);
388 return StringRef(path).substr(slash, dot - slash);
393 // Find the last slash
394 std::string::size_type slash = path.rfind('/');
395 if (slash == std::string::npos)
396 slash = 0;
398 slash++;
401 if (dot == std::string::npos || dot < slash)
481 // Find the last slash
488 // If the last character is a slash
490 // Find the second to last slash
497 // Return everything after the last slash