MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ltcschr

Function ltcschr

source/util.cpp:785–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783
784
785LPTSTR ltcschr(LPCTSTR haystack, TCHAR ch)
786{
787 LPCTSTR cp;
788 UINT lch = ltolower(ch);
789 for (cp = haystack;; ++cp)
790 {
791 if (ltolower(*cp) == lch)
792 return (LPTSTR)cp;
793 if (!*cp) // Implies lch != 0.
794 return NULL;
795 }
796}
797
798
799

Callers 1

CollectCharMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected