AppendSeparator();
$file_menu->Append( 11200, "&Open\tCtrl+O", "create document by loading a given (dialog) file" );
$file_menu->Append( 11210, "&Reload\tCtrl+Shift+O", "disregard current stat
Smart Matching';
1;
__DATA__
=encoding utf-8
=head1 Smart matching
Basically, smart matching(C<~~>) look at both his operators and decides what to do with them.
=head3 Table for smart match opera
%x ~~ %y hash keys identical
%x ~~ @y or @x ~~ %y at least one key in %x is in @y
%x ~~ /text/ or /text/ ~~ %y at least one key matches pattern
'text' ~~ %x
@x ~~ @y arrays are the same
@x ~~ /text/ at least one element in @x matches pattern
$name ~~ undef $name is not defined
$name ~~ /text
::True> if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation l
n Hz.
=head2 set_amplitude
$sr830->set_amplitude(0.005);
Sets output amplitude to the value given (in V); values between 4 mV and 5 V are possible.
=head2 get_amplitude
$ampl=$sr830->get_ampl
eters.
=cut
=item n(...parameters...) or $obj->n(...parameters...)
This uses the parameters given (and/or the state variables like
Volume, Channel, Notes, etc) to add a new note to the Score -- o
d2 textwidth
$cols = textwidth( $str )
Returns the number of screen columns consumed by the given (Unicode) string.
=cut
# Provided by XS
=head2 chars2cols
@cols = chars2cols( $text, @char
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
t}}, $weight)
unless $weight ~~ @{$fonts{family}->{$family}->{weight}};
push(@{$fonts{family}->{$family}->{width}}, $avg_width)
unless $avg_width ~~ @{$fonts{family}->{$family}->{wid
_dpi}}, $v_dpi)
unless $v_dpi ~~ @{$fonts{family}->{$family}->{vert_dpi}};
push(@{$fonts{family}->{$family}->{horiz_dpi}}, $h_dpi)
unless $h_dpi ~~ @{$fonts{family}->{$family}->{hori
hs}}, $tenths)
unless $tenths ~~ @{$fonts{family}->{$family}->{tenths}};
push(@{$fonts{family}->{$family}->{spacing}}, $spacing)
unless $spacing ~~ @{$fonts{family}->{$family}->{spac
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
object used to print
the string.
If a reference to a coderef is given (e.g. C<\sub {}>),
the coderef will be called during parsing and the
->{$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(
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
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
'Deparse failed: ' . $err );
}
# eg, highlight the code part of the following comment:
# print ~~ grep { $_ eq 'x' } qw(a b c x);
return;
}
=pod
=head3 C<on_open_selection>
$main->on_ope
$self->{list}->InsertStringImageItem(
$index,
$handle->plugin_name,
$position,
);
given ( $handle->status ) {
when ( $_ eq 'enabled' ) { $self->{list}->SetItemTextColour( $index
ive> might also be added depending on the status of the
C<keep_alive> attribute.
If $content is given (and it is non-empty), then a C<Content-Length>
header is automatically added unless it was alrea
goto &$old_warn_handler if $old_warn_handler;
warn( @_ );
}
};
use overload '~~' => \&over_go;
#use overload '>>' => \&over_go_assign;
sub over_go_assign {
$_[0]->{assign};
: $ret ~~ $_go_self->{rest};
}
else {
return $_go_self->{ by }
? $_go_self->{rest}->{code}->( @$ret )
: $ret ~~ $_go_self->{rest}
1, 2, 3 ] ~~ go { say $_ };
# 1
# 2
# 3
# hashes with $a and $b
%h ~~ go { say "key $a, value $b" };
undef ~~ go {
# never gets called...
};
'' ~~ go {
= $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
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