reworked IOstreams
- Istream and Ostream now retain backslashes when reading/writing strings. The previous implementation simply discarded them, except when used to escape a double-quote or a newline. It is now vitally important to retain them, eg for quoting regular expression meta-characters. The backslash continues to be used as an escape character for double-quote and newline, but otherwise get passed through "as-is" without any other special meaning (ie, they are *NOT* C-style strings). This helps avoid 'backslash hell'! For example, string: "match real dots \.+, question mark \? or any char .*" C-style: "match real dots \\.+, question mark \\? or any char .*" - combined subfiles in db/IOstreams, some had more copyright info than code - OPstreamI.H contained only private methods, moved into OPstream.C Are these really correct? IOstreams/Istream.H:# include "HashTable.C" token/token.H:#define NoHashTableC
Showing
- applications/test/string/stringTest.C 7 additions, 2 deletionsapplications/test/string/stringTest.C
- src/OpenFOAM/Make/files 13 additions, 22 deletionssrc/OpenFOAM/Make/files
- src/OpenFOAM/db/IOstreams/Fstreams/IFstream.C 21 additions, 32 deletionssrc/OpenFOAM/db/IOstreams/Fstreams/IFstream.C
- src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C 15 additions, 25 deletionssrc/OpenFOAM/db/IOstreams/Fstreams/OFstream.C
- src/OpenFOAM/db/IOstreams/IOstreams/IOcheck.C 0 additions, 85 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/IOcheck.C
- src/OpenFOAM/db/IOstreams/IOstreams/IOprint.C 0 additions, 119 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/IOprint.C
- src/OpenFOAM/db/IOstreams/IOstreams/IOstream.C 145 additions, 20 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/IOstream.C
- src/OpenFOAM/db/IOstreams/IOstreams/IOstream.H 1 addition, 2 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/IOstream.H
- src/OpenFOAM/db/IOstreams/IOstreams/Istream.C 25 additions, 39 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/Istream.C
- src/OpenFOAM/db/IOstreams/IOstreams/Istream.H 3 additions, 0 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/Istream.H
- src/OpenFOAM/db/IOstreams/IOstreams/Ostream.C 12 additions, 12 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/Ostream.C
- src/OpenFOAM/db/IOstreams/IOstreams/Ostream.H 4 additions, 0 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/Ostream.H
- src/OpenFOAM/db/IOstreams/IOstreams/versionNumber.C 0 additions, 63 deletionssrc/OpenFOAM/db/IOstreams/IOstreams/versionNumber.C
- src/OpenFOAM/db/IOstreams/Pstreams/IPread.C 0 additions, 156 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/IPread.C
- src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C 132 additions, 26 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/IPstream.C
- src/OpenFOAM/db/IOstreams/Pstreams/IPstream.H 0 additions, 1 deletionsrc/OpenFOAM/db/IOstreams/Pstreams/IPstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/OPstream.C 58 additions, 34 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/OPstream.C
- src/OpenFOAM/db/IOstreams/Pstreams/OPstream.H 1 addition, 7 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/OPstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/OPstreamI.H 0 additions, 79 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/OPstreamI.H
- src/OpenFOAM/db/IOstreams/Pstreams/Pstream.C 10 additions, 9 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/Pstream.C
Please register or sign in to comment