Lines Matching refs:item

64 =item B<new> I<%options>
72 =item B<< from => FILENAME >>
87 loaded_maxnum => 0, # Highest allocated item number when loading
89 maxassigned => 0, # Current highest assigned item number
90 maxnum => 0, # Current highest allocated item number
105 =item B<< $ordinals->load FILENAME >>
133 my $item = OpenSSL::Ordinals::Item->new(source => $filename, from => $_);
135 my $num = $item->number();
148 $item->intnum($num);
149 push @{$tmp_contents[$num]}, $item;
150 $tmp_name2num{$item->name()} = $num;
172 =item B<< $ordinals->renumber >>
174 Renumber any item that doesn't have an assigned number yet.
191 =item B<< $ordinals->rewrite >>
193 =item B<< $ordinals->rewrite >>, I<%options>
211 =item B<< $ordinals->write FILENAME >>
213 =item B<< $ordinals->write FILENAME >>, I<%options>
244 =item B<< $ordinals->items >> I<%options>
252 =item B<< sort => SORTFUNCTION >>
258 =item B<< filter => FILTERFUNCTION >>
306 # If there's just one item, just put it in the slot of its number
436 =item B<< $ordinals->add SOURCE, NAME, TYPE, LIST >>
438 Adds a new item from file SOURCE named NAME with the type TYPE,
451 my $source = shift; # file where item was defined
494 # If an alias was defined beforehand, add an item for it now
505 =item B<< $ordinals->add_alias SOURCE, ALIAS, NAME, LIST >>
539 foreach my $item ($self->items(filter => $f_byname)) {
540 push @items, $item unless grep { $_ == $item } @items;
547 # The item we want to alias for doesn't exist yet, so we cache the
548 # alias and hope the item we're making an alias of shows up later
558 # item, just with another name. Also, the platforms given here are
559 # given to the original item as well, with opposite values.
594 =item B<< $ordinals->set_version VERSION >>
596 =item B<< $ordinals->set_version VERSION BASEVERSION >>
655 =item B<< $ordinals->invalidate >>
674 =item B<< $ordinals->validate >>
713 =item B<< $ordinals->stats >>
742 =item B<new> I<%options>
750 =item B<< source => FILENAME >>, B<< from => STRING >>
752 This will create a new item from FILENAME, filled with data coming from STRING.
773 =item B<< source => FILENAME >>, B<< name => STRING >>, B<< number => NUMBER >>,
777 This will create a new item with data coming from the arguments.
849 =item B<< $item->name >>
851 The symbol name for this item.
853 =item B<< $item->number >> (read-write)
855 The positional number for this item.
861 =item B<< $item->version >> (read-only)
863 The version number for this item. Please note that these version numbers
866 =item B<< $item->exists >> (read-only)
870 =item B<< $item->platforms >> (read-only)
877 =item B<< $item->type >> (read-only)
882 =item B<< $item->features >> (read-only)
884 An array reference, where every item indicates a feature where this symbol
897 (my $item = $funcname) =~ s|.*::||g;
900 croak "$funcname invalid" unless exists $self->{$item};
901 return $self->{$item} if ref($self->{$item}) eq '';
902 return @{$self->{$item}} if ref($self->{$item}) eq 'ARRAY';
903 return %{$self->{$item}} if ref($self->{$item}) eq 'HASH';
906 =item B<< $item->intnum >> (read-write)
908 Internal positional number. If I<< $item->number >> is '?' or '?+', the
910 If I<< $item->number >> is a number, I<< $item->intnum >> should be the
919 my $item = 'intnum';
921 croak "$item called with extra arguments" if @_;
922 $self->{$item} = "$value" if defined $value;
923 return $self->{$item};
929 my $item = 'number';
931 croak "$item called with extra arguments" if @_;
932 $self->{$item} = "$value" if defined $value;
933 return $self->{$item};
936 =item B<< $item->to_string >>
938 Converts the item to a string that can be saved in an ordinals file.
977 =item B<by_name>
988 =item B<by_number>
999 =item B<by_version>
1022 # the item to check
1024 =item B<f_version VERSION>
1040 =item B<f_number NUMBER>
1060 =item B<f_name NAME>