Home
last modified time | relevance | path

Searched refs:slashpos (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/src/google/protobuf/testing/
Dfile.cc106 string::size_type slashpos = path.find_last_of('/'); in RecursivelyCreateDir() local
107 if (slashpos == string::npos) { in RecursivelyCreateDir()
112 return RecursivelyCreateDir(path.substr(0, slashpos), mode) && in RecursivelyCreateDir()
/external/llvm/lib/Archive/
DArchiveWriter.cpp120 size_t slashpos = mbrPath.rfind('/'); in fillHeader() local
121 if (slashpos != std::string::npos) { in fillHeader()
122 nm += slashpos + 1; in fillHeader()
123 len -= slashpos +1; in fillHeader()
/external/llvm/lib/Support/Unix/
DPath.inc600 size_t slashpos = path.rfind('/',path.size());
601 if (slashpos == 0 || slashpos == std::string::npos) {
605 if (slashpos == path.size() - 1)
606 slashpos = path.rfind('/',slashpos-1);
607 if (slashpos == std::string::npos) {
611 path.erase(slashpos);
618 size_t slashpos = path.rfind('/',path.size());
620 if (slashpos == std::string::npos || dotpos > slashpos+1) {
/external/llvm/tools/llvm-ar/
Dllvm-ar.cpp624 size_t slashpos = compare.rfind('/'); in doReplaceOrInsert() local
625 if (slashpos != std::string::npos) { in doReplaceOrInsert()
626 nm += slashpos + 1; in doReplaceOrInsert()
627 len -= slashpos +1; in doReplaceOrInsert()
/external/llvm/lib/Support/Windows/
DPath.inc563 size_t slashpos = path.rfind('/',path.size());
564 if (slashpos == path.size() - 1 || slashpos == std::string::npos)
567 path.erase(slashpos);
578 size_t slashpos = path.rfind('/',path.size());
580 if (slashpos == std::string::npos || dotpos > slashpos+1) {