VCardParser: rewrite parser to use a state machine instead of split()

Authored by dfaure on Apr 17 2017, 6:41 PM.

Description

VCardParser: rewrite parser to use a state machine instead of split()

This is both faster and more correct: the parser now handles correctly
double-quoted values (not splitting at ':' inside the double quotes
or comma -- well except for type, where it's apparently needed).

The speed gain is 10% according to vcardtool_benchmark with -O2.

Details

Committed
dfaureApr 17 2017, 6:44 PM
Parents
R174:24a0f2129594: VCardParser: extract class for parsing the current line
Branches
Unknown
Tags
Unknown