Lines Matching refs:text

31         ## Interpret the command and its text; sample actions might be:
49 ## Translate/Format this block of text; sample actions might be:
61 ## ... other sequence commands and their resulting text
85 performing the actual translation of text.
232 $parser->command($cmd,$text,$line_num,$pod_para);
245 =item C<$text>
247 the paragraph text for the given POD paragraph command.
264 command as normal block of paragraph text (invoking the B<textblock()>
270 my ($self, $cmd, $text, $line_num, $pod_para) = @_;
279 $parser->verbatim($text,$line_num,$pod_para);
282 action when a block of verbatim text is encountered. It is passed the
287 =item C<$text>
289 the block of text for the verbatim paragraph
309 my ($self, $text, $line_num, $pod_para) = @_;
311 print $out_fh $text;
318 $parser->textblock($text,$line_num,$pod_para);
321 action when a normal block of POD text is encountered (although the base
327 =item C<$text>
329 the block of text for the a POD paragraph
345 B<parse_text()>, passing it the text block C<$text>, and the corresponding
349 The base class implementation of this method simply prints the text block
355 my ($self, $text, $line_num, $pod_para) = @_;
357 print $out_fh $self->interpolate($text, $line_num);
368 an embedded command within a block of text which appears as a command
370 string of text which is enclosed in angle brackets. This method is
371 passed the sequence command C<$seq_cmd> and the corresponding text
374 the desired text string to be used in place of the interior sequence.
385 simply returns the raw text of the interior sequence (as it occurred
392 ## Just return the raw text of the interior sequence
562 $textline = $parser->preprocess_line($text, $line_num);
567 parameter C<$text> is the input line; and the parameter C<$line_num> is
568 the line number of the corresponding text line.
570 The value returned should correspond to the new text to use in its
580 The base class implementation of this method returns the given text.
585 my ($self, $text, $line_num) = @_;
586 return $text;
593 $textblock = $parser->preprocess_paragraph($text, $line_num);
597 that appears in the input stream. The parameter C<$text> is the POD
601 The value returned should correspond to the new text to use in its
603 returned, then the given C<$text> is ignored (not processed).
610 to true then input text (including the given C<$text>) is cut (not
620 The base class implementation of this method returns the given text.
625 my ($self, $text, $line_num) = @_;
626 return $text;
633 B<Pod::Parser> provides several methods to process input text. These
644 $ptree1 = $parser->parse_text($text, $line_num);
645 $ptree2 = $parser->parse_text({%opts}, $text, $line_num);
646 $ptree3 = $parser->parse_text(\%opts, $text, $line_num);
652 The parameter C<$text> is a string or block of text to be parsed
654 line number curresponding to the beginning of C<$text>.
656 B<parse_text()> will parse the given text into a parse-tree of "nodes."
658 text-string, or a B<Pod::InteriorSequence>. The result returned is a
693 text-string for each contiguous sequence of characters outside of an
695 "preprocess" every such text-string it sees by invoking the referenced
704 &$code_ref( $parser, $text, $ptree_node )
708 $parser->method_name( $text, $ptree_node )
710 where C<$parser> is a reference to the parser object, C<$text> is the
711 text-string encountered, and C<$ptree_node> is a reference to the current
746 my $text = shift;
758 ## sequence name and text.
782 ## Iterate over all sequence starts text (NOTE: split with
784 $_ = $text;
818 ## In the middle of a sequence, append this text to it, and
842 ## In the middle of a sequence, append this text to it, and
878 $textblock = $parser->interpolate($text, $line_num);
880 This method translates all text (including any embedded interior sequences)
881 in the given text string C<$text> and returns the interpolated result. The
883 of C<$text>.
893 my($self, $text, $line_num) = @_;
895 my $ptree = $self->parse_text( \%parse_opts, $text, $line_num );
905 $parser->parse_paragraph($text, $line_num);
907 This method takes the text of a POD paragraph to be processed, along
919 my ($self, $text, $line_num) = @_;
928 $myData{_CUTTING} = 0 if $text =~ /^={1,2}\S/;
931 $wantNonPods and $text = $self->preprocess_paragraph($text, $line_num);
936 ## Now we know this is block of text in a POD section!
949 $self->is_selected($text) or return ($myData{_CUTTING} = 1);
955 $text = $self->preprocess_paragraph($text, $line_num);
956 return 1 unless ((defined $text) and (length $text));
963 if ($text =~ /^(={1,2})(?=\S)/) {
965 ## ("=" or "=="), as well as the command-name, its paragraph text,
968 $_ = substr($text, length $pfx);
969 ($cmd, $sep, $text) = split /(\s+)/, $_, 2;
980 -text => $text,
991 # return 1 unless $self->invoke_callbacks($cmd, $text, $line_num, $pod_para);
995 $self->command($cmd, $text, $line_num, $pod_para);
997 elsif ($text =~ /^\s+/) {
998 ## Indented text - must be a verbatim paragraph
999 $self->verbatim($text, $line_num, $pod_para);
1002 ## Looks like an ordinary block of text
1003 $self->textblock($text, $line_num, $pod_para);
1020 method to retrieve a single line of input text (hence, an appropriate
1278 evaluates to true if text from the input file is currently being "cut"
1595 calling the B<interpolate()> method to expand sequences into text, it
1598 list of children (each of which may be a text-string, or a similar
1609 text-string, or a reference to another parse-tree. Each B<Pod::Paragraph>
1613 The B<parse_text()> method takes a given paragraph of text, and
1615 may be a text-string, or an InteriorSequence object. There are also
1739 they are text-strings, or by calling their B<emit()> method if they