Improving cross-platform compatibility of webdriver-server C++ code.
This commit makes the common webdriver-server C++ code more easily cross-platform. It does this mainly by removing use of std::tr1::regex, which has issues compiling under gcc. In its place, we now use a custom URL matching algorithm for matching URLs in the WebDriver JSON Wire Protocol. While this matching algorithm may be a source of future errors, a nice side effect of it is a 3% performance increase in server execution times over using regular expressions. Additionally, this commit includes an alias for snprintf, which throws buffer overrun warnings when used with Visual Studio. It also contains some header #include rearranging and linting of the C++ code.
J
Jim Evans committed
fe013b52ee9c97c30abffa9771b006649a4e63a3
Parent: 03bd468