zilpin: These two functions were giving me compile errors in VS2008, so I cheated with the C style loop below, just to get it to build. Original code is commented out.
| 480 | //zilpin: These two functions were giving me compile errors in VS2008, so I cheated with the C style loop below, just to get it to build. |
| 481 | //Original code is commented out. |
| 482 | void tolower(std::string &str) |
| 483 | { |
| 484 | //The C++ way... |
| 485 | //std::transform(str.begin(), str.end(), str.begin(), std::bind2nd(std::ptr_fun(&std::tolower<char> ), std::locale(""))); |
| 486 | |
| 487 | //The C way... |
| 488 | for(char *c=(char *)str.c_str(); *c; ++c) |
| 489 | { |
| 490 | *c = tolower(*c); |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | void toupper(std::string &str) |
| 495 | { |
no test coverage detected