Back to Basics: From C char to string_view (Notes from building Coogle)

Background When I was implementing Coogle , I discovered something bizarre about C++ strings. That is why I wrote this note to summarize what I learned about C++ strings. Coogle is a search engine that I implemented in C++. It is designed to quickly and efficiently find function signatures in large codebases—especially useful for 30-year-old C++ codebases that were migrated from C and mixed with…