[libc] Make kFindFirstCharImpls common to all tests
All of the tests were repeating the definition of kFindFirstCharImpls,
so we should refactor it out into a common utility to avoid the
duplication, especially given there is no benefit to repeating here, and
the copies already sometimes included/excluded comments.
Assisted-By: LLM
Reviewers: lntue
Pull Request: https://github.com/llvm/llvm-project/pull/246239