Subversion Repositories spk

Rev

Rev 14 | Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 34
Line 574... Line 574...
574
{
574
{
575
	std::string::size_type pos = this->find_first_not_of(" ", 0);
575
	std::string::size_type pos = this->find_first_not_of(" ", 0);
576
	if ( pos != std::string::npos ) {
576
	if ( pos != std::string::npos ) {
577
		this->erase(0, pos);
577
		this->erase(0, pos);
578
	}
578
	}
-
 
579
	return (*this);
-
 
580
}
-
 
581
 
-
 
582
const String &String::truncate(int iNum)
-
 
583
{
-
 
584
	size_t pos = iNum;
-
 
585
	if ( iNum < 0 ) pos = this->length() + iNum;
-
 
586
	this->erase(pos, this->length() - pos);
579
	return (*this);
587
	return (*this);
580
}
588
}
581
 
589
 
582
}//NAMESPACE
590
}//NAMESPACE