Commit Graph

329 Commits

Author SHA1 Message Date
Gary D. Gregory 4cec1b66f2 Add missing ASF header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383554 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:55:58 +00:00
Gary D. Gregory 763c7e0d11 Add missing ASF header and XML PI.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383553 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:55:18 +00:00
Gary D. Gregory 1018dafd5d Add missing ASF header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383545 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:54:17 +00:00
Gary D. Gregory 4173bc1079 Add more reports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383535 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:51:54 +00:00
Gary D. Gregory 2806ec85d0 Define groupId org.apache.commons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383514 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:30:53 +00:00
Gary D. Gregory 50d48c98f2 Use commons-parent 26.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383513 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:29:53 +00:00
Gary D. Gregory b372050f7f Fix compilation issue.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383504 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:18:14 +00:00
Olivier Lamy 539c976728 ignore idea files
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1348843 13f79535-47bb-0310-9956-ffa450edef68
2012-06-11 13:37:42 +00:00
Sebastian Bazley 720b341bf0 CSV-90 CSVFormat isEscaping/isEncapsulating are not public
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1327754 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 00:23:51 +00:00
Sebastian Bazley adf5f834db Covert to new style package Javadoc; tidy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307210 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:51:28 +00:00
Sebastian Bazley 795fe61858 Use public CRLF constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307205 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:33:02 +00:00
Sebastian Bazley d89a0f482f Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307201 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:16:45 +00:00
Sebastian Bazley 5c3e51363f Use public CRLF constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307188 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:00:32 +00:00
Sebastian Bazley 0186a3d335 CRLF might as well be public to make it easier to use to build formats.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307187 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 00:58:36 +00:00
Sebastian Bazley d994897420 Reduce dependency on DISABLED package constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307186 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 00:57:29 +00:00
Sebastian Bazley 7d2ec7a053 CSV-85 Allow comments to be returned in CSVRecord
Added test for comment before header

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307078 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 19:50:26 +00:00
Sebastian Bazley 29c80daa3c Add test for CSV-57
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307068 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 19:26:28 +00:00
Sebastian Bazley 5a925ff1ff Another baseline
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307043 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 18:49:20 +00:00
Sebastian Bazley 3296f59696 Javadoc tweak
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307042 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 18:48:47 +00:00
Sebastian Bazley aae00f39ad CSV-85 Allow comments to be returned in CSVRecord
More test cases

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306948 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 16:03:32 +00:00
Sebastian Bazley 787ab08db9 CSV-85 Allow comments to be returned in CSVRecord
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306947 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 16:03:03 +00:00
Sebastian Bazley e94085595f CSV-35 add test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306896 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 15:10:56 +00:00
Sebastian Bazley a07c9f72fc Improve escape tests
Fix bug in readEscape() - was not handling EOF

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306890 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 15:01:04 +00:00
Sebastian Bazley 5c9697c158 More debug
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306889 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 14:57:55 +00:00
Sebastian Bazley cee5cc3d74 CSV-69 Eliminate CSVPrinterTest.equals(String[][], String[][]) by using Assert.assertArrayEquals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306833 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 13:09:43 +00:00
Sebastian Bazley 9d00beb352 CSV-69 Utility methods for comparing results
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306828 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 13:02:27 +00:00
Sebastian Bazley 8462234502 We don't care if trailing LF has been consumed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306797 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 12:03:53 +00:00
Sebastian Bazley a5b76b6c20 Fix revision
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306789 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 11:35:20 +00:00
Sebastian Bazley 517bf0d583 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306784 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 10:57:55 +00:00
Sebastian Bazley fe10274918 Test comments and blank lines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306668 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 01:25:47 +00:00
Sebastian Bazley 3fd45b5441 Have to check for comment after dealing with empty lines.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306667 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 01:24:24 +00:00
Sebastian Bazley 9ce0716a43 Save current lexer for comparisons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306664 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 01:10:25 +00:00
Sebastian Bazley 19ba389fe8 Checking the token type seems to be quite slow
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306663 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:58:36 +00:00
Sebastian Bazley 810c8d0ae5 Initial tests for CSV-85 - to be updated when issue is implemented
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306662 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:46:54 +00:00
Sebastian Bazley 9dd5ace960 More blank line tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306661 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:45:39 +00:00
Sebastian Bazley 49c9a67b26 Add back trailing comment test (this time with correct expected results)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306660 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:43:34 +00:00
Sebastian Bazley a4dd5eb503 Add a few more blank lines to the test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306659 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:31:16 +00:00
Sebastian Bazley 03dbcf48c0 Test with empty lines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306651 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:05:45 +00:00
Sebastian Bazley 02a36dd41d Test multiple adjacent comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306650 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:03:19 +00:00
Sebastian Bazley 70f00f973a Fix readLine() so can still detect start of line next time round
Also fix broken test: format was set to ignore empty lines, yet it checked for one

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306649 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:02:35 +00:00
Sebastian Bazley 7addc8f688 Misplaced comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306643 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 23:35:09 +00:00
Sebastian Bazley 8cd4024e6d Add experimental state-driven lexer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306519 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 18:12:08 +00:00
Sebastian Bazley 6ca0f78156 Allow for new COMMENT token type
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306516 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 17:56:53 +00:00
Sebastian Bazley 61b66220b5 Add a trailing comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306432 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 15:35:10 +00:00
Sebastian Bazley 22af43218a Don't detect comments except at start of a line
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306422 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 15:31:20 +00:00
Sebastian Bazley a708256b65 Make lines clearer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306414 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 15:27:53 +00:00
Sebastian Bazley 67390ea304 Handle CommentStart option
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306345 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 14:06:01 +00:00
Sebastian Bazley fcfb6dc7c5 CSV-84 Clarify comment handling
Test was wrong; line comment should have been dropped entirely.
Fix record handling accordingly

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306342 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 14:05:25 +00:00
Sebastian Bazley e922bf949a CSV-84 Clarify comment handling
Fix code so comment only detected at start of a line

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306325 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 13:46:27 +00:00
Sebastian Bazley 05b5c8ef48 Revert r1306321 - committed wrong file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306324 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 13:44:38 +00:00