Now that index() and rindex() have become unused, simply turn them into wrappers around strchr() and strrchr(), respectively.