| 896 | |
| 897 | |
| 898 | template<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 | |
| 915 | template<typename T> T xdigitsTo(LPCTSTR p, LPCTSTR &end) |
nothing calls this directly
no outgoing calls
no test coverage detected