Make it so .sm files can contain \-escaped characters. Also, make the

writer for .dwi files replace control characters with dwi-safe characters.
Other file formats are unaffected.
This commit is contained in:
John Bauer
2006-12-01 22:15:26 +00:00
parent 3637f83f69
commit 7ebfd65a9b
11 changed files with 151 additions and 76 deletions
+4 -4
View File
@@ -17,8 +17,8 @@ public:
virtual ~MsdFile() { }
// Returns true if successful, false otherwise.
bool ReadFile( RString sFilePath );
void ReadFromString( const RString &sString );
bool ReadFile( RString sFilePath, bool bUnescape );
void ReadFromString( const RString &sString, bool bUnescape );
RString GetError() const { return error; }
@@ -29,8 +29,8 @@ public:
private:
void ReadBuf( char *buf, int len );
void AddParam( char *buf, int len );
void ReadBuf( const char *buf, int len, bool bUnescape );
void AddParam( const char *buf, int len );
void AddValue();
vector<value_t> values;