KinoSearch::Search::Span man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

KinoSearch::Search::SpUser)Contributed Perl DocumenKinoSearch::Search::Span(3)

NAME
       KinoSearch::Search::Span - An offset, a length, and a weight.

SYNOPSIS
	   my $combined_length = $upper_span->get_length
	       + ( $upper_span->get_offset - $lower_span->get_offset );
	   my $combined_span = KinoSearch::Search::Span->new(
	       offset => $lower_span->get_offset,
	       length => $combined_length,
	   );
	   ...

DESCRIPTION
       Span objects store information about a span across an array of...
       something. The unit is context-dependent.

       Text is one possibility, in which case offset and length might be
       measured in Unicode code points.	 However, the Span could also refer to
       a span within an array of tokens, for example -- in which case the
       start and offset might be measured in token positions.

CONSTRUCTORS
   new( [labeled params] )
	   my $span = KinoSearch::Search::Span->new(
	       offset => 75,	 # required
	       length => 7,	 # required
	       weight => 1.0,	 # default 0.0
	   );

       ·   offset - Integer offset, unit is context-dependent.

       ·   length - Integer length, unit is context-dependent.

       ·   weight - A floating point weight.

METHODS
   set_offset(offset)
       Setter for "offset" attribute.

   get_offset()
       Accessor for "offset" attribute.

   set_length(length)
       Setter for "length" attribute.

   get_length()
       Accessor for "length" attribute.

   set_weight(weight)
       Setter for "weight" attribute.

   get_weight()
       Accessor for "weight" attribute.

INHERITANCE
       KinoSearch::Search::Span isa KinoSearch::Object::Obj.

COPYRIGHT AND LICENSE
       Copyright 2005-2010 Marvin Humphrey

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.14.1			  2011-06-20	   KinoSearch::Search::Span(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net