parent
098160d5f2
commit
421eadb45b
|
@ -26,7 +26,7 @@
|
|||
int main(int argc, char* argv[])
|
||||
{
|
||||
//if ( cmsys::SystemTools::FileExists(
|
||||
cmsys_stl::string cwd = cmsys::SystemTools::GetCurrentWorkingDirectory();
|
||||
std::string cwd = cmsys::SystemTools::GetCurrentWorkingDirectory();
|
||||
cmsys::ofstream ofs("/tmp/output.txt");
|
||||
|
||||
CFStringRef fileName;
|
||||
|
@ -66,7 +66,7 @@ int main(int argc, char* argv[])
|
|||
//dispose of the CF variable
|
||||
CFRelease(scriptFileURL);
|
||||
|
||||
cmsys_stl::string fullScriptPath = reinterpret_cast<char*>(path);
|
||||
std::string fullScriptPath = reinterpret_cast<char*>(path);
|
||||
delete [] path;
|
||||
|
||||
|
||||
|
@ -75,10 +75,10 @@ int main(int argc, char* argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
cmsys_stl::string scriptDirectory = cmsys::SystemTools::GetFilenamePath(
|
||||
std::string scriptDirectory = cmsys::SystemTools::GetFilenamePath(
|
||||
fullScriptPath);
|
||||
ofs << fullScriptPath.c_str() << cmsys_ios::endl;
|
||||
cmsys_stl::vector<const char*> args;
|
||||
std::vector<const char*> args;
|
||||
args.push_back(fullScriptPath.c_str());
|
||||
int cc;
|
||||
for ( cc = 1; cc < argc; ++ cc )
|
||||
|
|
|
@ -654,7 +654,7 @@ bool cmCPackNSISGenerator::GetListOfSubdirectories(const char* topdir,
|
|||
if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") &&
|
||||
strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".."))
|
||||
{
|
||||
cmsys_stl::string fullPath = topdir;
|
||||
std::string fullPath = topdir;
|
||||
fullPath += "/";
|
||||
fullPath += dir.GetFile(static_cast<unsigned long>(fileNum));
|
||||
if(cmsys::SystemTools::FileIsDirectory(fullPath) &&
|
||||
|
|
|
@ -2542,10 +2542,10 @@ bool cmCTestCoverageHandler::IntersectsFilter(LabelSet const& labels)
|
|||
}
|
||||
|
||||
std::vector<int> ids;
|
||||
cmsys_stl::set_intersection
|
||||
std::set_intersection
|
||||
(labels.begin(), labels.end(),
|
||||
this->LabelFilter.begin(), this->LabelFilter.end(),
|
||||
cmsys_stl::back_inserter(ids));
|
||||
std::back_inserter(ids));
|
||||
return !ids.empty();
|
||||
}
|
||||
|
||||
|
|
|
@ -149,10 +149,10 @@ int main(int argc, char** argv)
|
|||
QStringList args = app.arguments();
|
||||
if(args.count() == 2)
|
||||
{
|
||||
cmsys_stl::string filePath = cmSystemTools::CollapseFullPath(args[1].toLocal8Bit().data());
|
||||
std::string filePath = cmSystemTools::CollapseFullPath(args[1].toLocal8Bit().data());
|
||||
|
||||
// check if argument is a directory containing CMakeCache.txt
|
||||
cmsys_stl::string buildFilePath =
|
||||
std::string buildFilePath =
|
||||
cmSystemTools::CollapseFullPath("CMakeCache.txt", filePath.c_str());
|
||||
|
||||
// check if argument is a CMakeCache.txt file
|
||||
|
@ -163,7 +163,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
// check if argument is a directory containing CMakeLists.txt
|
||||
cmsys_stl::string srcFilePath =
|
||||
std::string srcFilePath =
|
||||
cmSystemTools::CollapseFullPath("CMakeLists.txt", filePath.c_str());
|
||||
|
||||
if(cmSystemTools::FileExists(buildFilePath.c_str()))
|
||||
|
|
|
@ -669,7 +669,7 @@ void cmComputeLinkDepends::InferDependencies()
|
|||
for(++i; i != sets->end(); ++i)
|
||||
{
|
||||
DependSet intersection;
|
||||
cmsys_stl::set_intersection
|
||||
std::set_intersection
|
||||
(common.begin(), common.end(), i->begin(), i->end(),
|
||||
std::inserter(intersection, intersection.begin()));
|
||||
common = intersection;
|
||||
|
@ -689,10 +689,10 @@ void cmComputeLinkDepends::CleanConstraintGraph()
|
|||
{
|
||||
// Sort the outgoing edges for each graph node so that the
|
||||
// original order will be preserved as much as possible.
|
||||
cmsys_stl::sort(i->begin(), i->end());
|
||||
std::sort(i->begin(), i->end());
|
||||
|
||||
// Make the edge list unique.
|
||||
EdgeList::iterator last = cmsys_stl::unique(i->begin(), i->end());
|
||||
EdgeList::iterator last = std::unique(i->begin(), i->end());
|
||||
i->erase(last, i->end());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ static std::string fix_file_url_windows(const std::string& url)
|
|||
std::string ret = url;
|
||||
if(strncmp(url.c_str(), "file://", 7) == 0)
|
||||
{
|
||||
cmsys_stl::wstring wurl = cmsys::Encoding::ToWide(url);
|
||||
std::wstring wurl = cmsys::Encoding::ToWide(url);
|
||||
if(!wurl.empty())
|
||||
{
|
||||
int mblen = WideCharToMultiByte(CP_ACP, 0, wurl.c_str(), -1,
|
||||
|
@ -1843,7 +1843,7 @@ bool cmFileCopier::InstallDirectory(const char* source,
|
|||
if(!(strcmp(dir.GetFile(fileNum), ".") == 0 ||
|
||||
strcmp(dir.GetFile(fileNum), "..") == 0))
|
||||
{
|
||||
cmsys_stl::string fromPath = source;
|
||||
std::string fromPath = source;
|
||||
fromPath += "/";
|
||||
fromPath += dir.GetFile(fileNum);
|
||||
std::string toPath = destination;
|
||||
|
|
|
@ -195,12 +195,12 @@ struct cmFindLibraryHelper
|
|||
void RegexFromList(std::string& out, std::vector<std::string> const& in);
|
||||
size_type GetPrefixIndex(std::string const& prefix)
|
||||
{
|
||||
return cmsys_stl::find(this->Prefixes.begin(), this->Prefixes.end(),
|
||||
return std::find(this->Prefixes.begin(), this->Prefixes.end(),
|
||||
prefix) - this->Prefixes.begin();
|
||||
}
|
||||
size_type GetSuffixIndex(std::string const& suffix)
|
||||
{
|
||||
return cmsys_stl::find(this->Suffixes.begin(), this->Suffixes.end(),
|
||||
return std::find(this->Suffixes.begin(), this->Suffixes.end(),
|
||||
suffix) - this->Suffixes.begin();
|
||||
}
|
||||
bool HasValidSuffix(std::string const& name);
|
||||
|
|
|
@ -2695,7 +2695,7 @@ bool cmSystemTools::RemoveRPath(std::string const& file, std::string* emsg,
|
|||
}
|
||||
if(se_count == 2 && se[1]->IndexInSection < se[0]->IndexInSection)
|
||||
{
|
||||
cmsys_stl::swap(se[0], se[1]);
|
||||
std::swap(se[0], se[1]);
|
||||
}
|
||||
|
||||
// Get the size of the dynamic section header.
|
||||
|
|
|
@ -28,7 +28,7 @@ cmXMLSafe::cmXMLSafe(const char* s):
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
cmXMLSafe::cmXMLSafe(cmsys_stl::string const& s):
|
||||
cmXMLSafe::cmXMLSafe(std::string const& s):
|
||||
Data(s.c_str()),
|
||||
Size(static_cast<unsigned long>(s.length())),
|
||||
DoQuotes(true)
|
||||
|
@ -43,7 +43,7 @@ cmXMLSafe& cmXMLSafe::Quotes(bool b)
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
cmsys_stl::string cmXMLSafe::str()
|
||||
std::string cmXMLSafe::str()
|
||||
{
|
||||
cmsys_ios::ostringstream ss;
|
||||
ss << *this;
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
/** Construct with the data to be written. This assumes the data
|
||||
will exist for the duration of this object's life. */
|
||||
cmXMLSafe(const char* s);
|
||||
cmXMLSafe(cmsys_stl::string const& s);
|
||||
cmXMLSafe(std::string const& s);
|
||||
|
||||
/** Specify whether to escape quotes too. This is needed when
|
||||
writing the content of an attribute value. By default quotes
|
||||
|
@ -32,7 +32,7 @@ public:
|
|||
cmXMLSafe& Quotes(bool b = true);
|
||||
|
||||
/** Get the escaped data as a string. */
|
||||
cmsys_stl::string str();
|
||||
std::string str();
|
||||
private:
|
||||
char const* Data;
|
||||
unsigned long Size;
|
||||
|
|
Loading…
Reference in New Issue