jcs
/detritus
/amendments
/util.h
Amendments on December 27, 2024
util: Add strcaseidx
When trying to case-insensitively match a string to a list of char
pointers, having to call into strcasecmp for every list entry and
start the indexing into the string over again every time is quite
expensive.
strcaseidx takes a string and a pointer to an array of char pointers
and walks the list and indexes the string only once, advancing
through the list as each next character matches or not. This
requires the list to be sorted.
Amendments on December 12, 2024
jcs made amendment
53
about 1 year ago
Amendments on October 25, 2024
jcs made amendment
11
about 1 year ago
Amendments on September 30, 2024
jcs made amendment
2
about 1 year ago
1