3
Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
5
The MySQL Connector/C++ is licensed under the terms of the GPLv2
6
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
7
MySQL Connectors. There are special exceptions to the terms and
8
conditions of the GPLv2 as it is applied to this software, see the
9
FLOSS License Exception
10
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.
12
This program is free software; you can redistribute it and/or modify
13
it under the terms of the GNU General Public License as published
14
by the Free Software Foundation; version 2 of the License.
16
This program is distributed in the hope that it will be useful, but
17
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
You should have received a copy of the GNU General Public License along
22
with this program; if not, write to the Free Software Foundation, Inc.,
23
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
foreach(file("php://stdin") as $v) {
29
if (!preg_match("#(.*?cpp):/\* +{{{ (.*?)::(.*?) +\-(I|U)\-#", $v, $matches)) {
33
$method = $matches[3];
34
$implemented = ($matches[4] == "I");
35
if ($prev_method != $method) {
37
$prev_method = $method;
41
if (!isset($stats[$class][$method])) {
42
$stats[$class][$method] = $implemented;
44
$stats[$class][$method."_".$method_inc] = $implemented;
48
foreach ($stats as $class => $methods) {
49
printf("-----------\n");
51
$local_impl=$local_notimpl=0;
52
foreach ($methods as $method => $status) {
54
printf(" %s::%-55s %-30s\n", $class,$method, $status? "Implemented":"Not implemented");
64
printf("-----------\n%-30s Total=%-3d Implemented=%-3d Not Implemented=%-3d Impl=%-3d%%\n",
65
$class,$local_impl+$local_notimpl, $local_impl, $local_notimpl, 100*$local_impl/($local_impl+$local_notimpl));
68
printf("Total=%3d Implemented=%3d Not implemented=%3d\n", $not_impl+$impl, $impl, $not_impl);