aboutsummaryrefslogtreecommitdiff
path: root/src/course.ml
AgeCommit message (Collapse)Author
2020-09-19course: use a match/with instead of a if-chain in `location_and_summary'Alban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-19course: memoized version of `get_unicode'Alban Gruin
To avoid creating buffers to decode an HTML entity, this create a memoized version of `get_unicode' in hope to operate a bit faster and reduce memory allocations. Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-19course: invert the `group_affix' list orderAlban Gruin
Each affix is tested with a `List.fold_left', which means that the list is traversed in order. Hence, the most likely results should be at the beginning of the list, not at the end. Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-19course: return the summary if there is no " - " in the event's full nameAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-13course: remove the part before " - " (module ID) in the course summaryAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-13course: convert html entities to unicode charactersAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-12course: use Astring to split strings and to check for prefixesAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-12Remove unused functions and useless type specificationsAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-12course: avoid crashes for events spanning on a whole dayAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-11course: stop parsing unused fieldsAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-11ics: clean Event module, conversion to stringAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-10course: properly decode location and course nameAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-09course, ics: proper modules, proper datetime storageAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>