Page MenuHomePhabricator

Add a very basic ICS syntax parser
ClosedPublic

Authored by epriestley on Sep 8 2016, 8:49 PM.
Tags
None
Referenced Files
F14316002: D16520.diff
Wed, Dec 18, 6:45 AM
Unknown Object (File)
Wed, Dec 11, 5:59 AM
Unknown Object (File)
Wed, Dec 11, 5:59 AM
Unknown Object (File)
Wed, Dec 11, 5:59 AM
Unknown Object (File)
Wed, Dec 11, 5:46 AM
Unknown Object (File)
Sun, Dec 8, 11:33 AM
Unknown Object (File)
Fri, Dec 6, 5:24 PM
Unknown Object (File)
Fri, Dec 6, 12:53 AM
Subscribers
None

Details

Summary

Ref T10747. Extremely rough parser for ICS syntax, based on RFC5545 + RFC6868.

This doesn't understand any of the content in an ICS file or know anything about calendaring or events yet, it just applies all the weird linewrapping, escaping, typing and parsing rules.

I'll refine this to be less bad and eventually do useful things, but I got a basic test case running at least.

Test Plan
  • Added unit test.
  • Ran unit test.

Diff Detail

Repository
rPHU libphutil
Branch
ics1
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/parser/calendar/ics/PhutilICSParser.php:353XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 13641
Build 17582: Run Core Tests
Build 17581: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Add a very basic ICS syntax parser.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 8 2016, 9:04 PM
This revision was automatically updated to reflect the committed changes.