Changeset 11982


Ignore:
Timestamp:
07/24/10 20:01:51 (19 months ago)
Author:
azawawi
Message:

Totally ignore ::operator[.+]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/parse_wxwidgets_docs.pl

    r11981 r11982  
    127127                        $name =~ s/wx(.+?)/Wx::$1/; 
    128128                        if($name =~ /^Wx::(.+?)::(.+?)$/) { 
    129                             if($2 eq "wx$1") { 
     129                            my $method = $2; 
     130                            if($method eq "wx$1") { 
    130131                                # C++ constructor... convert to Perl ::new 
    131                                 $name = "$class\:\:new" 
     132                                $name = $class . '::new'; 
     133                            } elsif ($method =~ /operator.+/) { 
     134                                # Ignore operators 
     135                                $name = undef; 
    132136                            } 
    133137                        } 
     
    142146 
    143147                            # print out method description 
    144 $desc = HTML::FormatText->new->format(parse_html($desc)); 
     148                            $desc = HTML::FormatText->new->format(parse_html($desc)); 
    145149                            print $pod "=head2 $name\n$desc\n"; 
    146150 
Note: See TracChangeset for help on using the changeset viewer.