| 725 | } |
| 726 | |
| 727 | bool StringToInt(int * ival, const char * str) |
| 728 | { |
| 729 | if (!str) |
| 730 | { |
| 731 | return false; |
| 732 | } |
| 733 | |
| 734 | std::istringstream inputStringstream(str); |
| 735 | int x; |
| 736 | if (!(inputStringstream >> x)) |
| 737 | { |
| 738 | return false; |
| 739 | } |
| 740 | |
| 741 | if (ival) |
| 742 | { |
| 743 | *ival = x; |
| 744 | } |
| 745 | return true; |
| 746 | } |
no outgoing calls