No not literally! I have started cleaning out a number of old hard drives so that they can be truly retired, if they haven't
retired themselves already. In the process I have stumbled on some code and document archives that actually contains some
still useful and relevant stuff.
I have created a new
GitHub Repository which will hold a cleaned up version
of anything that I find that I think others might find useful.
The first tranche of stuff are C++ functions for case-insensitive versions of some standard functions. stristr() is a cases-insensitive
version of strstr(), there are plenty of versions available on the internet, some better than others.
I remember coming across one implementation that made me chuckle, it coerced the input search string (needle) to lower case and used
strstr() to search for that, if the lower case string was not found then it coerced the string to upper case and searched for that.
A very wierd implementation with very limited application, perhaps searching for Donald Trump's tweets?
I have included this one because it is complete, elegant and efficient also it is strict in following the contract for strstr().
There is also strichr() the case-insensitive version of strchr() and memichr the case insensitive version of memchr().
I hope that someone finds this stuff useful, there will be more to follow.