107 Commits

Author SHA1 Message Date
Brent Simmons
3b17e77358 Speed up strippingHTML dramatically by calling reserveCharacters with maxCharacters when possible, which is generally much less than the count of preflight characters. 2024-09-29 10:53:56 -07:00
Brent Simmons
75e525380b Make Article a class, which boosts performance by not having to init/destroy Article all time. 2024-09-29 10:36:34 -07:00
Brent Simmons
a3d63b001b Add additional tests to testplan. 2024-09-28 22:48:11 -07:00
Brent Simmons
f4449e198e Fix error in EntityDecodingTests. 2024-09-28 22:25:35 -07:00
Brent Simmons
01cad9b687 Make decodedString return non-optional. 2024-09-28 22:23:54 -07:00
Brent Simmons
ed160986f5 Rewrite HTMLEntityDecoder so that it’s fast. 2024-09-28 22:14:51 -07:00
Brent Simmons
be7dd28b6f Add performance test for HTMLEntityDecoder. 2024-09-26 19:52:51 -07:00
Brent Simmons
ce73d38037 Add missing dependency. 2024-09-26 19:34:23 -07:00
Brent Simmons
4b5694fe74 Fix build errors. 2024-09-24 22:31:21 -07:00
Brent Simmons
591e451b69 Simplify Parser — use one target instead of multiple. 2024-09-24 14:45:53 -07:00
Brent Simmons
c48e72c3b2 Get Feedly building. 2024-09-23 22:21:19 -07:00
Brent Simmons
c0dd6aac0d Get NewsBlur building. 2024-09-23 22:19:21 -07:00
Brent Simmons
fee2b3af90 Get LocalAccount module building with new Parser module. 2024-09-23 22:15:37 -07:00
Brent Simmons
cdd95843e8 Remove ParserData from FeedParser API, so clients won’t need to import SAX. 2024-09-23 22:13:26 -07:00
Brent Simmons
e752363a60 Remove ParserObjC and references to it. 2024-09-23 21:42:40 -07:00
Brent Simmons
2fa07611bf Mark test classes as final, because they are. 2024-09-23 21:39:00 -07:00
Brent Simmons
986dbd679c Uncomment and revise code in HTMLMetadataTests. 2024-09-23 21:38:44 -07:00
Brent Simmons
3bc02a78a3 Get HTMLMetadataParser working. 2024-09-23 21:38:23 -07:00
Brent Simmons
21848049f6 Use StringDictionary typealias. 2024-09-23 21:38:07 -07:00
Brent Simmons
5eb2c524e6 Use StringDictionary typealias. Delete unused ParserTests.swift. 2024-09-23 21:37:54 -07:00
Brent Simmons
1f8b296a9c Use new StringDictionary name. 2024-09-23 21:13:55 -07:00
Brent Simmons
a39130ff77 Add StringDictionary typealias. It’s such a common type — it should have a consistent name. 2024-09-23 21:11:23 -07:00
Brent Simmons
cbc2790121 Start HTMLMetadataParser. 2024-09-22 22:26:55 -07:00
Brent Simmons
1173486179 Fix errors in HTMLMetadata. 2024-09-22 22:13:06 -07:00
Brent Simmons
3e6e843dc8 Create first draft of HTMLMetadata. 2024-09-22 21:40:52 -07:00
Brent Simmons
a2fc8b5dec Consolidate tests to a single ParserTests target. 2024-09-22 11:41:08 -07:00
Brent Simmons
c348ec41b6 Make HTMLLinkTests pass. 2024-09-22 11:33:37 -07:00
Brent Simmons
a7c4669bd6 Create HTMLParserTests. 2024-09-21 22:10:47 -07:00
Brent Simmons
20b222f455 Create first draft of HTLMLinkParser. 2024-09-21 21:49:57 -07:00
Brent Simmons
3c4a278b42 Create HTMLParser module. 2024-09-21 12:16:09 -07:00
Brent Simmons
6959e1f891 Fix build errors. 2024-09-21 12:01:17 -07:00
Brent Simmons
ce39624a39 Create first draft of SAXHTMLParser. 2024-09-21 11:47:07 -07:00
Brent Simmons
ecfe504d9d Make RSS-in-JSON tests work. 2024-09-21 11:20:23 -07:00
Brent Simmons
887ef8c22e Make JSONFeedParserTests run. 2024-09-21 11:11:45 -07:00
Brent Simmons
a48615b060 Add additional EntityDecodingTests. 2024-09-16 22:07:31 -07:00
Brent Simmons
32a7480e6c Fix bug in HTMLEntityDecoder. Make tests pass. 2024-09-16 22:07:22 -07:00
Brent Simmons
88675adff2 Restore EntityDecodingTests. 2024-09-16 21:57:05 -07:00
Brent Simmons
e315820b47 Continue progress on HTMLEntityDecoder. 2024-09-16 21:56:55 -07:00
Brent Simmons
8e4e859071 Add comment to decodedEntity. 2024-09-15 21:59:07 -07:00
Brent Simmons
6779ef94dd Continue progress on HTMLEntityDecoder. 2024-09-15 21:51:48 -07:00
Brent Simmons
26d0a19c8b Continue progress on HTMLEntityDecoder. 2024-09-15 20:43:45 -07:00
Brent Simmons
f835182bc6 Start HTMLEntityDecoded. 2024-09-15 14:26:01 -07:00
Brent Simmons
d5a7baf53f Uncomment JSONFeedParser. 2024-09-14 15:40:46 -07:00
Brent Simmons
be09d2cda2 Start work on HTMLEntityDecoder port. 2024-09-14 15:40:27 -07:00
Brent Simmons
96cbc51d26 Get AtomParserTests running and passing. 2024-09-14 15:03:34 -07:00
Brent Simmons
e1f3da7b09 Use AtomParser in FeedParser. 2024-09-14 14:49:38 -07:00
Brent Simmons
73ef8f085a Finish first draft of AtomParser. 2024-09-14 14:49:25 -07:00
Brent Simmons
e22c17fd6a Continue progress on AtomParser. 2024-09-14 14:45:51 -07:00
Brent Simmons
613038b0d9 Continue progress on AtomParser. 2024-09-14 14:19:37 -07:00
Brent Simmons
54d2285bff Add addFeedLink function. 2024-09-14 11:31:04 -07:00