This commit is contained in:
Igor Pavlov
2005-05-30 00:00:00 +00:00
committed by Kornel Lesiński
parent 8c1b5c7b7e
commit 3c510ba80b
926 changed files with 40559 additions and 23519 deletions
+8 -8
View File
@@ -39,18 +39,18 @@ CStdInStream::~CStdInStream()
AString CStdInStream::ScanStringUntilNewLine()
{
AString string;
AString s;
while(true)
{
int aIntChar = GetChar();
if(aIntChar == EOF)
int intChar = GetChar();
if(intChar == EOF)
throw kEOFMessage;
char aChar = char(aIntChar);
if (aChar == kIllegalChar)
char c = char(intChar);
if (c == kIllegalChar)
throw kIllegalCharMessage;
if(aChar == kNewLineChar)
return string;
string += aChar;
if(c == kNewLineChar)
return s;
s += c;
}
}