number test from http://stackoverflow.com/questions/4654636/how-to-determine-if-a-string-is-a-number-with-c
| 85 | |
| 86 | //number test from http://stackoverflow.com/questions/4654636/how-to-determine-if-a-string-is-a-number-with-c |
| 87 | bool isNumber(const string& s){ |
| 88 | locale loc; |
| 89 | std::string::const_iterator it = s.begin(); |
| 90 | while (it != s.end() && (std::isdigit(*it, loc) || *it == '.' || *it == '-')) ++it; |
| 91 | bool isnumber = !s.empty() && it == s.end(); |
| 92 | return isnumber; |
| 93 | } |
| 94 | |
| 95 | //-------------------------------------------------------------- |
| 96 | void testApp::guiEvent(ofxUIEventArgs &e){ |
no outgoing calls
no test coverage detected