| 1075 | } |
| 1076 | |
| 1077 | std::string CParser::error(std::string message) |
| 1078 | { |
| 1079 | size_t d = mOffset; |
| 1080 | std::string ds; |
| 1081 | if (d == 0) |
| 1082 | { |
| 1083 | ds = '0'; |
| 1084 | } |
| 1085 | |
| 1086 | while (d) |
| 1087 | { |
| 1088 | ds.push_back(d % 10 + '0'); |
| 1089 | d /= 10; |
| 1090 | } |
| 1091 | |
| 1092 | std::string ret = message + " at:"; |
| 1093 | for (std::string::reverse_iterator rit = ds.rbegin(); rit != ds.rend(); ++rit) { |
| 1094 | ret.push_back(*rit); |
| 1095 | } |
| 1096 | |
| 1097 | return ret; |
| 1098 | } |
no outgoing calls
no test coverage detected