Optimize g_str_has_*() functions to detect static arguments
Compilers can emit optimized code for str|strn|mem)cmp(str, "literal")
at compile-time. This commit use the pre-processor to introduce this kind of optimization for the functions g_str_has_prefix()
and g_str_has_suffix()
.
Original work by Ben @bdejean
Closes issue #24 (closed)
Edited by Emmanuel Fleury