Fix the webservice list generation tool.
It used to parse using Qt's regular expressions that are based on
Perl regular expressions. However this was replaced by POSIX's
regular expressions system, but some pattern was not updated.
Matthieu Kermagoret
11 years ago
0 | 0 | /* |
1 | ** Copyright 2011 Merethis | |
1 | ** Copyright 2011-2012 Merethis | |
2 | 2 | ** |
3 | 3 | ** This file is part of Centreon Engine. |
4 | 4 | ** |
18 | 18 | |
19 | 19 | #include <algorithm> |
20 | 20 | #include <cctype> |
21 | #include <cstring> | |
21 | 22 | #include <regex.h> |
22 | 23 | #include <sstream> |
23 | #include <string.h> | |
24 | 24 | #include "arg_definition.hh" |
25 | 25 | #include "error.hh" |
26 | 26 | #include "function.hh" |
29 | 29 | |
30 | 30 | // Regexp pattern to extract name and arguments of soapStub function. |
31 | 31 | char const* com::centreon::engine::script::function::_pattern = |
32 | "^SOAP_FMAC5 int SOAP_FMAC6 soap_call_centreonengine__(\\w*)\\(" | |
32 | "^SOAP_FMAC5 int SOAP_FMAC6 soap_call_centreonengine__([^\\(]*)\\(" | |
33 | 33 | "struct soap \\*soap, " |
34 | 34 | "const char \\*soap_endpoint, " |
35 | 35 | "const char \\*soap_action, " |
36 | "(.*)\\);\n$"; | |
36 | "([^\\)]*)\\);$"; | |
37 | 37 | |
38 | 38 | /************************************** |
39 | 39 | * * |