mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 22:24:08 -06:00
4.20
This commit is contained in:
committed by
Kornel Lesiński
parent
8c1b5c7b7e
commit
3c510ba80b
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user