Lines Matching refs:success
148 template <typename T> T doParse(const char *, bool *success ) {
150 if (success) {
151 *success = false;
156 template<> bool doParse<bool>(const char *s, bool *success) {
157 if (success) {
158 *success = true;
166 if (success) {
167 *success = false;
172 template<> const char * doParse<const char *>(const char * s, bool *success) {
173 if (success) {
174 *success = true;
179 template<> int doParse<int>(const char * s, bool *success) {
180 if (success) {
181 *success = true;
186 template<> unsigned int doParse<unsigned int>(const char * s, bool *success) {
187 if (success) {
188 *success = true;
193 template<> float doParse<float>(const char * s, bool *success) {
194 if (success) {
195 *success = true;
200 template<> double doParse<double>(const char * s, bool *success) {
201 if (success) {
202 *success = true;
249 bool success;
250 T new_value = doParse<T>(str->c_str(),&success);
251 if (success) {
256 return success;