• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/CPANInternal-159.1/Template-Toolkit-2.25/lib/Template/Plugin/

Lines Matching refs:text

26 use overload q|""| => "text",
45 my $text = defined $config->{ text }
46 ? $config->{ text }
49 # print STDERR "text: [$text]\n";
53 text => $text,
68 sub text {
70 return $self->{ text } unless @{ $self->{ filters } };
72 my $text = $self->{ text };
79 $text = &$code($text);
81 return $text;
87 $self->new($self->{ text });
150 $self->{ text } .= join('', @_);
157 $self->{ text } = join('', @_) . $self->{ text };
165 $self->{ text } =~ s/$strip$//;
173 $self->{ text } =~ s/^$strip//;
181 my $text = $self->{ text };
182 my $len = length $text;
188 $self->{ text } = (' ' x $lpad) . $self->{ text } . (' ' x $rpad);
197 my $len = length $self->{ text };
200 $self->{ text } .= (' ' x ($width - $len))
209 my $len = length $self->{ text };
212 $self->{ text } = (' ' x ($width - $len)) . $self->{ text }
222 $self->{ text } = sprintf($format, $self->{ text });
234 return &$code($self->{ text });
242 $self->{ text } = uc $self->{ text };
249 $self->{ text } = lc $self->{ text };
256 $self->{ text } =~ s/^(.)/\U$1/;
264 chop $self->{ text };
271 chomp $self->{ text };
278 for ($self->{ text }) {
288 for ($self->{ text }) {
301 return length $self->{ text };
309 return $self if CORE::length $self->{ text } <= $length;
310 $self->{ text } = CORE::substr($self->{ text }, 0,
322 my $removed = CORE::substr( $self->{text}, $offset, $length );
323 CORE::substr( $self->{text}, $offset, $length ) = $replacement;
327 return CORE::substr( $self->{text}, $offset, $length );
331 return CORE::substr( $self->{text}, $offset );
339 $self->{ text } = $self->{ text } x $n;
348 $self->{ text } =~ s/$search/$replace/g;
356 $self->{ text } =~ s/$search//g;
366 return [ split($split, $self->{ text }, $limit) ];
372 return $self->{ text } =~ /$pattern/;
378 return $self->{ text } eq $comparison;
394 [% USE String 'initial text' %]
395 [% USE String text => 'initial text' %]
399 [% newstring = String.new('newstring text') %]
400 [% newstring = String.new( text => 'newstring text' ) %]
405 # append text to string
406 [% String.append('text to append') %]
419 text in an object-oriented way.
422 initial text value as an argument or as the named parameter C<text>.
425 [% USE String 'initial text' %]
426 [% USE String text='initial text' %]
440 The C<new()> method also accepts an initial text string as an argument
441 or the named parameter C<text>.
443 [% greeting = String.new( text => 'Hello World' ) %]
450 The C<String> object has a C<text()> method to return the content of the
453 [% greeting.text %]
456 overloaded stringification operator call the C<text()> method
462 of text, interpolating it into other strings, for example:
483 causes the C<text()> method to be called, which results in the new value of
500 argument or the named parameter C<text>.
504 [% msg = String.new( text => 'Hello World' ) %]
516 =head2 text()
518 Returns the internal text value of the string. The stringification
522 [% msg.text %]
568 with a call to its C<text()> method. This will return the newly modified