File tree 9 files changed +40
-36
lines changed
9 files changed +40
-36
lines changed Original file line number Diff line number Diff line change 1
- Copyright (c) 2011-2018 Paul Vollmer, https://paulvollmer.net
1
+ Copyright (c) 2011-2019 Paul Vollmer, https://paulvollmer.net
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Check out for new release at <https://github.com/paulvollmer/ofxCsv>
12
12
Current Version
13
13
---------------
14
14
15
- 0.2.0 (stable and versioned using [ semantic versioning] ( http://semver.org ) )
15
+ 0.2.1 (stable and versioned using [ semantic versioning] ( http://semver.org ) )
16
16
17
17
Basic API Overview
18
18
------------------
@@ -93,6 +93,9 @@ Changelog
93
93
94
94
A detailed changelog, intended for programmers.
95
95
96
+ 0.2.1
97
+ bugfix for OF 0.10
98
+
96
99
0.2.0
97
100
partial rewrite & update to OF 0.9+, added ofxCsvRow
98
101
@@ -123,4 +126,4 @@ License
123
126
124
127
ofxCsv is Licensed under MIT Public License: http://www.opensource.org/licenses/MIT
125
128
126
- See also, LICENSE.txt in this distribution.
129
+ See also, [ LICENSE] ( LICENSE ) in this distribution.
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.21
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#include " ofMain.h"
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.23
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#include " ofApp.h"
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.21
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#pragma once
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.23
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#include " ofxCsv.h"
@@ -205,11 +205,11 @@ void ofxCsv::load(const vector<vector<string>> &rows) {
205
205
206
206
// --------------------------------------------------
207
207
void ofxCsv::expand (int rows, int cols) {
208
- rows = MAX (rows, 0 );
208
+ rows = max (rows, 0 );
209
209
if (data.empty ()) {
210
- rows = MAX (rows, 1 );
210
+ rows = max (rows, 1 );
211
211
}
212
- cols = MAX (cols, 1 );
212
+ cols = max (cols, 1 );
213
213
while (data.size () < rows) {
214
214
data.push_back (ofxCsvRow ());
215
215
}
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.23
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#pragma once
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.23
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#include " ofxCsvRow.h"
@@ -79,9 +79,9 @@ void ofxCsvRow::load(const vector<string> &cols) {
79
79
80
80
// --------------------------------------------------
81
81
void ofxCsvRow::expand (int cols) {
82
- cols = MAX (cols, 0 );
82
+ cols = max (cols, 0 );
83
83
if (data.empty ()) {
84
- cols = MAX (cols, 1 );
84
+ cols = max (cols, 1 );
85
85
}
86
86
while (data.size () <= cols) {
87
87
data.push_back (" " );
Original file line number Diff line number Diff line change 4
4
*
5
5
* The MIT License
6
6
*
7
- * Copyright (c) 2011-2014 Paul Vollmer, http ://www.wng.cc
8
- *
7
+ * Copyright (c) 2011-2019 Paul Vollmer, https ://paulvollmer.net
8
+ *
9
9
* Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
* of this software and associated documentation files (the "Software"), to deal
11
11
* in the Software without restriction, including without limitation the rights
24
24
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
* THE SOFTWARE.
26
26
*
27
- * @modified 2016.04.23
28
- * @version 0.2.0
27
+ * @modified 2019.05.15
28
+ * @version 0.2.1
29
29
*/
30
30
31
31
#pragma once
32
+ using namespace std ;
32
33
33
34
#include " ofConstants.h"
34
35
You can’t perform that action at this time.
0 commit comments