Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
Commit464947e12f06fa040080917c0d18b2d868cfd10e (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-30 19:53:11 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-30 19:53:11 +0300
Files9e43447610774b1d70511f57027e3b9823e1eb5e /src/Models/Table.cpp
FMI-OOP-P2_Tables-464947e12f06fa040080917c0d18b2d868cfd10e.tar
FMI-OOP-P2_Tables-464947e12f06fa040080917c0d18b2d868cfd10e.tar.gz
FMI-OOP-P2_Tables-464947e12f06fa040080917c0d18b2d868cfd10e.zip
Parentfff7dbb2b1cb19f47d6a642b13a4980e58c2deb1 (diff)
Autocommit at 30.05.2022 @ 19:53
1 files changed, 10 insertions, 0 deletions
-rw-r--r--src/Models/Table.cpp10
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 5f5862f..8c1f54d 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -75,6 +75,16 @@ void Table::readFromFile(std::ifstream& inFile) {
else
cells[cells.get_count() - 1].add(new CellDouble((double)whole / exponent));
}
+ else if (inFile.peek() == '"') {
+ String res;
+ inFile.get();
+ while (inFile.peek() != '"') {
+ if (inFile.peek() == '\\') {
+ inFile.get();
+ }
+ res += inFile.get();
+ }
+ }
}
}