You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <iostream>
#include "Poco/NumberParser.h"
#include "Poco/Exception.h"
int main() {
try {
unsigned int value = 0;
bool result = Poco::NumberParser::tryParseHex("0,2", value);
std::cout << result << std::endl;
std::cout << value << std::endl;
return 0;
} catch (Poco::Exception& exc) {
std::cout << exc.displayText() << std::endl;
return 1;
}
}
D:\test\ConsoleApplication2\x64\Debug>ConsoleApplication2.exe
Syntax error: strToInt: thousand separators only allowed for base 10
D:\test\ConsoleApplication2\x64\Debug>echo %ERRORLEVEL%
1
Describe the bug
The following functions raise Poco::SyntaxException exceptions:
Poco::NumberParser::tryParseHex, ... (all tryParse* ?)
Expected behavior
tryParse* functions does not raise any exceptions.
Logs
NumericString.h : strToInt
Please add relevant environment information:
(The problem does not occur in version 1.9.)
The text was updated successfully, but these errors were encountered: