chadaustin / sajson

Lightweight, extremely high-performance JSON parser for C++11
MIT License
562 stars 42 forks source link

Break the dependency on strlen #47

Closed ihameed closed 5 years ago

ihameed commented 5 years ago

String literals in C++ have type const char [size], where size is a type-level integer denoting the length of the literal (including the zero terminator), so the length of the literal can be determined statically.