Subversion Repositories spk

Rev

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

Rev 58 Rev 69
Line 525... Line 525...
525
	return this->substr(-num);
525
	return this->substr(-num);
526
}
526
}
527

527

528
const String &String::readToEndOfLine(FILE *id, int *line, bool upper)
528
const String &String::readToEndOfLine(FILE *id, int *line, bool upper)
529
{
529
{
530
	(*this) == "";
530
	(*this) = "";
531
	char c = fgetc ( id );
531
	char c = fgetc ( id );
532
	if ( c == -1 )
532
	if ( c == -1 )
533
		return (*this);
533
		return (*this);
534

534

535
	while ( (c != 13) && (!feof(id)) && (c != '\n') )
535
	while ( (c != 13) && (!feof(id)) && (c != '\n') )
Line 674... Line 674...
674
		// get the next token
674
		// get the next token
675
		pos = _token_nextPos(token, lastPos);
675
		pos = _token_nextPos(token, lastPos);
676
	}
676
	}
677

677

678
	return newstr;
678
	return newstr;
-
 
679
}
-
 
680

-
 
681
const String &String::removeChar(const char *cs)
-
 
682
{
-
 
683
	char *current = cs;
-
 
684
	while ( current[0] != '\0' ) {
-
 
685
		removeChar(current[0]);
-
 
686
		++current;
-
 
687
	}
679
}
688
}
680

689

681
const String &String::removeChar(char c)
690
const String &String::removeChar(char c)
682
{
691
{
683
	std::string::size_type pos = this->find_first_of(c, 0);
692
	std::string::size_type pos = this->find_first_of(c, 0);