jbowens / jBBCode

A lightweight but extensible BBCode parser
http://jbbcode.com
MIT License
164 stars 32 forks source link

[RFC] New tokenizer code #48

Closed DaSourcerer closed 9 years ago

DaSourcerer commented 9 years ago

Instead of searching through the input entirely character-wise in PHP userland, we could let strcspn() do the job. Runtimes of the testsuite greatly fail to reflect this, but this is great for longer, more complex input.

jbowens commented 9 years ago

lgtm besides some style nitpicking

DaSourcerer commented 9 years ago

Just addressed the style issues in 0a52d00 and 87e2c8e