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 577... Line 577...
577
		this->erase(0, pos);
577
		this->erase(0, pos);
578
	}
578
	}
579
	return (*this);
579
	return (*this);
580
}
580
}
581
 
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);
-
 
587
	return (*this);
-
 
588
}
-
 
589
 
582
}//NAMESPACE
590
}//NAMESPACE