Commit 4e5234ea authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

explicitely reference std::string

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/branches/libdatrwxx.su
SVN Revision: 3466
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 6c641343
......@@ -55,15 +55,15 @@ namespace tfxx {
{
if (s.length()>0)
{
string::size_type ib=s.find_first_not_of(" ", 0);
if (ib==string::npos)
std::string::size_type ib=s.find_first_not_of(" ", 0);
if (ib==std::string::npos)
{
s="";
}
else
{
string::size_type il=s.find_last_not_of(" \r", s.length());
string::size_type n=il>=ib ? il-ib+1 : 0;
std::string::size_type il=s.find_last_not_of(" \r", s.length());
std::string::size_type n=il>=ib ? il-ib+1 : 0;
if (n==0) { ib = 0; }
if ((ib!=0) || (n!=s.length())) { s=s.substr(ib,n); }
}
......@@ -78,14 +78,14 @@ namespace tfxx {
{
if (s.length()>0)
{
string::size_type ib=s.find_first_not_of(" ", 0);
if (ib==string::npos)
std::string::size_type ib=s.find_first_not_of(" ", 0);
if (ib==std::string::npos)
{
s="";
}
else if (ib!=0)
{
string::size_type n=s.length()-ib;
std::string::size_type n=s.length()-ib;
s=s.substr(ib,n);
}
}
......@@ -105,8 +105,8 @@ namespace tfxx {
{
if (s.length()>0)
{
string::size_type il=s.find_last_not_of(" \r", s.length());
string::size_type n=il>=0 ? il+1 : 0;
std::string::size_type il=s.find_last_not_of(" \r", s.length());
std::string::size_type n=il>=0 ? il+1 : 0;
if (n!=s.length()) { s=s.substr(0,n); }
}
return(s);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment