tput_charset = lc shift if @_;
}
=item setlocale [$locale]
Sets the locale used by perl to the given (PApp-style) locale string. This
might involve multiple calls to the "real" setlocale which in tu
priate (whatever this means).
=head3 show_nbsp
Make the non-break spaces visible and explicit as ~~ (available on
Text::Amuse since version 0.94).
=head3 fix_footnotes
Rearrange the footnotes if n
x{ad}\s*//g;
if ($remove_nbsp) {
$line =~ s/\x{a0}/ /g;
$line =~ s/~~/ /g;
}
if ($fixtypo) {
$line =~ s/(?<=\.) (?=\.)//g; # collapse the do
$line = $nbsp_filter->($line);
}
if ($show_nbsp) {
$line =~ s/\x{a0}/~~/g;
}
$piece->{string} = $line;
}
# write out
$self->_write_file($outfi
efaults
get_path_defaults ( $methods, $path, [ \%override ... ] )
Fetch default values for given (path, method) combo as a single hash.
=cut
sub get_path_defaults {
my ($self, $method, $pa
oceeds with application logic.
=head2 find_route( $method, $suffix )
Find subtree that matches given ($method, $suffix) pair.
May die 404 or 405 if no suitable route is found.
Otherwise returns (r
y @args = @_;
die $self->usage unless my $action = shift @args;
die $self->usage unless $action ~~ [qw/status prepare install upgrade downgrade rm diff/];
GetOptionsFromArray \@args,
'to-versio
->{$name} // $alt_hr->{$name} // $default_value;
}
# approximates python's "in" operator, because ~~ is unsane:
sub in {
my $v = shift @_;
return 0 unless (@_ && defined($_[0]));
if (ref(
gzFile fp() { return m_fp; }
private:
gzFile m_fp;
};
/*
* Binary read the given (array of) object(s) from the compressed file.
* If the input file was not in gzip format, read(
}
private:
gzFile m_fp;
ostrstream* m_os;
};
/*
* Binary write the given (array of) object(s) into the compressed file.
* returns the number of uncompressed bytes actual
= $ret//1;
}
}
=item deleteLine
editor->deleteLine($lineNumber);
Deletes the given (zero indexed) line number.
=cut
sub deleteLine {
my ($self, $lineNumber) = @_;
$
;
}
=item replaceLine
editor->replaceLine($lineNumber, $newContents);
Replaces the given (zero indexed) line number (excluding newline sequence)
with the given contents
=cut
sub __d
tem replaceWholeLine
editor->replaceWholeLine($lineNumber, $newContents);
Replaces the given (zero indexed) line number (including newline sequence)
with the given contents: thus, if $newCo
gzFile fp() { return m_fp; }
private:
gzFile m_fp;
};
/*
* Binary read the given (array of) object(s) from the compressed file.
* If the input file was not in gzip format, read(
}
private:
gzFile m_fp;
ostrstream* m_os;
};
/*
* Binary write the given (array of) object(s) into the compressed file.
* returns the number of uncompressed bytes actual
al.retop)
# define SU_RETOP_LOOP(C) ((C)->blk_loop.my_op->op_lastop->op_next)
# define SU_RETOP_GIVEN(C) ((C)->blk_givwhen.leave_op->op_next)
#else
# define SU_RETOP_SUB(C) ((C)->blk_oldretsp > 0 ?
XSH_HAS_PERL(5, 10, 0)
case CXt_GIVEN:
cxt_given:
type = OP_LEAVEGIVEN;
next = SU_RETOP_GIVEN(cx);
break;
case CXt_WHEN:
cxt_when:
#if XSH_HAS_PERL(5, 15, 1)
type = OP_LEAVEWHEN;
#e
rop the protocol if given (defaults to https later). If that leaves nothing, the check below
# will set the servers to LE standard ones.
$self->{server}=~s~^\w+://~~;
} elsif ($sel
1);
}
else {
throw $self "store_row - no key_value given (old usage??)";
}
# Trapping for errors.
#
# This seems to be only needed for My
my @mro = @{ mro::get_linear_isa( ref $obj ) };
for my $class ( @mro ) {
my $name = "$class\::(~~";
my $overload = do {
no strict 'refs';
exists( &$name ) ? \&$name : undef;
};
return
ide being passed as an
argument.
=item *
If the right hand side is an object which overloads C<< ~~ >>, then this
will be used.
=item *
If the right hand side is an arrayref, then the operator rec
est);
subtype "XML::EPP::transferOpType"
=> as "PRANG::XMLSchema::token",
=> where { $_ ~~ @tot };
=head2 CONVERT C<complexType> TO CLASSES
This really belongs earlier in this document, i
hod};
my $passthru = $arg->{passthru};
use Data::Dumper;
return sub {
return if $_[2] ~~ $passthru;
return if substr($_[2], 0, 1) eq '(';
${ $_[1] } = $_[2];
$_[2] = $metame
with I<$!>.
=item ($method): (apt-config): timeouted
While processing a fair 120sec timeout is given
(it's reset after each I<$line>).
I<@$config_source> hanged for that time.
=item ($method): (apt
d in the
#pod example will be found at the end of the output, sorted by the fallback sub if
#pod given (see below).
#pod
#pod Alternately, the example may be a reference to a hash. Values are used to
t not found in the
example will be found at the end of the output, sorted by the fallback sub if
given (see below).
Alternately, the example may be a reference to a hash. Values are used to
provide
porting package. It will
export it under the name C<$default_name>, unless an alternate name is given
(as shown above). The glob that is installed is specified by the
C<$globref_locator>, which can
the Markdown content after
#pod it has been rendered by the kit's Renderer, if any.
#pod
#pod If given (and true), the C<munge_signature> option will perform some basic
#pod munging of a sigdash-prefi
s. The specific munging performed is not guaranteed to remain exactly
#pod stable.
#pod
#pod If given (and true), the C<render_wrapper> option will cause the kit entry to
#pod be passed through the r
template
#pod parameter called C<wrapped_content>, and should be included that way.
#pod
#pod If given (and true), the C<encode_entities> option will cause HTML in the
#pod source text to be entity en
rom resulting list
for (my $i = 0; $i < length(@rgba_points); $i++) {
if (not (@rgba_points[$i] ~~ @non_rgba_rgba_points)) {
push (@return_rgba_points, @rgba_points[$i]);
}
}
return (@retu
}->{width}}) % $self->{imgrepr}->{width} ~~ @indexl
and (@rgbasl[$i]->{@rgbasl[$i]->{index} - $self->{imgrepr}->{width} - 1}) % $self->{imgrepr}->{width} ~~ @indexl
and (@rgbasl[$i]->{@rgbasl[$i
]->{index} - $self->{imgrepr}->{width} + 1}) % $self->{imgrepr}->{width} ~~ @indexl) {
push (@grepped_points, @rgbasl[$i]);
}
}
return (@grepped_points);
}
1;
the
response headers as a L<Mojo::Headers> object.
Expects a valid URL. In case no scheme is given (e.g., C<//gmail.com>),
the method will first try to fetch the resource with C<https> and
on fa