Revision: 818
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=818&view=rev
Author: pstieber
Date: 2010-07-18 20:03:57 +0000 (Sun, 18 Jul 2010)
Log Message:
-----------
Fixed ReadString.
Modified Paths:
--------------
trunk/jazz/src/StringReadWrite.cpp
Modified: trunk/jazz/src/StringReadWrite.cpp
===================================================================
--- trunk/jazz/src/StringReadWrite.cpp 2010-07-18 03:17:54 UTC (rev 817)
+++ trunk/jazz/src/StringReadWrite.cpp 2010-07-18 20:03:57 UTC (rev 818)
@@ -29,17 +29,17 @@
//*****************************************************************************
istream& ReadString(istream& Is, string& String)
{
- int Character;
+ char Character;
do
{
- // Ignore through the first ".
- Character = Is.get();
+ // Ignore through the first quote (") character.
+ Is >> Character;
} while (Character != '"' && Is.eof());
- // This is an intention infinite for loop.
+ // This is an intentional infinite loop.
for (;;)
{
- Character = Is.get();
+ Is >> Character;
if (Character == '"' || Is.eof())
{
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|