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

Function digitsTo

source/util.cpp:898–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896
897
898template<typename T> T digitsTo(LPCTSTR p, LPCTSTR &end)
899{
900 T i = 0;
901 for (;; ++p)
902 {
903 int c = *p;
904 if (c <= '9' && c >= '0')
905 c -= '0';
906 else
907 break;
908 i = i * 10 + c;
909 }
910 end = p;
911 return i;
912}
913
914
915template<typename T> T xdigitsTo(LPCTSTR p, LPCTSTR &end)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected