view release on metacpan or search on metacpan
lib/Getopt/EX/Module.pm view on Meta::CPAN
=item B<define> I<name> I<string>
Define string macro. This is similar to B<option>, but argument is
not processed by I<shellwords> and treated just a simple text, so
meta-characters can be included without escape. Macro expansion is
done for option definition and other macro definition. Macro is not
evaluated in command line option. Use option directive if you want to
use in command line,
define (#kana) \p{InKatakana}
option --kanalist --nocolor -o --join --re '(#kana)+(\n(#kana)+)*'
view all matches for this distribution
view release on metacpan or search on metacpan
GETOPTLONG.md view on Meta::CPAN
#### 4.2.5. Hash Options (`%`)
Accept `key=value` pairs as an associative array (hash).
* **Definition Example:** `[define|D% # Macro definition (e.g., KEY=VALUE)]`
* **How to Specify Values:**
* Specify the option multiple times: `--define OS=Linux --define VER=1.0`, `-D OS=Linux -D VER=1.0`
* Specify multiple pairs with a single option (delimiter controlled by `DELIM` setting; defaults to comma):
* `--define OS=Linux,VER=1.0`
view all matches for this distribution
view release on metacpan or search on metacpan
msgid "<Image>/Guides/Remove Guides"
msgstr "<Image>/Hilfslinien/Hilfslinien entfernen"
msgid "function/macro \"$name\" not found in $class"
msgstr "Funktion oder Macro \"$name\" existiert nicht in $class"
msgid " (press Tab to complete)"
msgstr " (Tab-Taste zum Ergänzen)"
msgid "/Xtns/Render/Logos"
view all matches for this distribution
view release on metacpan or search on metacpan
deps/libgit2/deps/http-parser/http_parser.c view on Meta::CPAN
, s_http_host_v6_end
, s_http_host_port_start
, s_http_host_port
};
/* Macros for character classes; depends on strict-mode */
#define CR '\r'
#define LF '\n'
#define LOWER(c) (unsigned char)(c | 0x20)
#define IS_ALPHA(c) (LOWER(c) >= 'a' && LOWER(c) <= 'z')
#define IS_NUM(c) ((c) >= '0' && (c) <= '9')
view all matches for this distribution
view release on metacpan or search on metacpan
xs/libgit2/deps/http-parser/http_parser.c view on Meta::CPAN
, h_connection_keep_alive
, h_connection_close
};
/* Macros for character classes; depends on strict-mode */
#define CR '\r'
#define LF '\n'
#define LOWER(c) (unsigned char)(c | 0x20)
#define TOKEN(c) (tokens[(unsigned char)c])
#define IS_ALPHA(c) (LOWER(c) >= 'a' && LOWER(c) <= 'z')
view all matches for this distribution
view release on metacpan or search on metacpan
cpanfile.snapshot view on Meta::CPAN
PDL::PP::ComplexThreadLoop undef
PDL::PP::GenericLoop undef
PDL::PP::GentypeAccess undef
PDL::PP::Ind undef
PDL::PP::Loop undef
PDL::PP::MacroAccess undef
PDL::PP::NaNSupport undef
PDL::PP::OtherAccess undef
PDL::PP::PDLStateBadAccess undef
PDL::PP::PPBadAccess undef
PDL::PP::PdlAccess undef
view all matches for this distribution
view release on metacpan or search on metacpan
lib/.gooskel/nanorc view on Meta::CPAN
# color green "(\\|\\\\)\*\(.."
# color green start="(\\|\\\\)\*\[" end="]"
## Characters
# color brightred "\\\(.."
# color brightred start="\\\[" end="]"
## Macro arguments
# color brightcyan "\\\\\$[1-9]"
## Here is an example for perl
## Hybrid perl5 / perl6 syntax highlighting
syntax "perl" "\.p[lm]$"
view all matches for this distribution
view release on metacpan or search on metacpan
carton.lock view on Meta::CPAN
"file" : "PDL/PP/Dims.pm"
},
"PDL::PP::Loop" : {
"file" : "PDL/PP/PDLCode.pm"
},
"PDL::PP::MacroAccess" : {
"file" : "PDL/PP/PDLCode.pm"
},
"PDL::PP::NaNSupport" : {
"file" : "PDL/PP/PDLCode.pm"
},
view all matches for this distribution
view release on metacpan or search on metacpan
devel/pictures.tex view on Meta::CPAN
\makeatletter
\g@addto@macro\th@plain{\thm@postskip=1\baselineskip}
\makeatother
%------------------------------------------------------------------------------
% Generic Macros
% GP-DEFINE default(strictargs,1);
\newcommand\MySlash{\slash\hspace{0pt}}
\newcommand\MyTightDots{.\kern.1em.\kern.1em.}
view all matches for this distribution
view release on metacpan or search on metacpan
t/gen.macro.1.t view on Meta::CPAN
my $id = '1';
my $graph = GraphViz2->new(
edge => {color => 'grey'},
global => {directed => 1},
graph => {label => "Macro demo $id - Non-cluster sub-graphs", rankdir => 'TB'},
);
macro($graph, 'One', 'Chadstone', 'Waverley');
macro($graph, 'Two', 'Hughesdale', 'Notting Hill');
view all matches for this distribution
view release on metacpan or search on metacpan
#endif
//==============================================================================
// Min / Max Macros
//==============================================================================
#ifndef min
#define min(x,y) ((x)<(y)?(x):(y))
#endif
#define max(x,y) ((x)>(y)?(x):(y))
#endif
//==============================================================================
// Convenience Macros
//==============================================================================
// this is used in the typemap file
#define _MNG_GET_HANDLE(arg) (*(hv_fetch((HV*)SvRV((arg)), _MNG_HANDLE, strlen(_MNG_HANDLE), 0)))
// in memory and return that array as a reference.
#define CHAR_PTR_CAST(x) ((char*)x)
//==============================================================================
// Macros for writing callback functionality
//==============================================================================
static void my_warn( const char *pat, ... )
{
// do warnings if:
// 1. (PL_dowarn & G_WARN_ALL_OFF) is false and
}
//==============================================================================
// Macros for writing callback functionality
//==============================================================================
#define VERIFY_CBFN_OR_RETURN( hHandle, error, fnname ) \
SV * cbfn = _MNG_GETPRIVATE(hHandle, fnname); \
\
// this space intentionally left blank
//==============================================================================
// Function and Macro for writing Perl XS code
//==============================================================================
int check_cbfn( mng_handle hHandle, const char * fnname )
{
VERIFY_CBFN_OR_RETURN( hHandle, 0, fnname );
} \
// this space intentionally left blank
//==============================================================================
// Macro to fix NULL return pointers that will be represented as PERL strings
//==============================================================================
// We often make a PERL string by specifying the pointer and length.
// if that length is zero, PERL will go off and call strlen() on the string.
// That's bad. Make sure that PERL gets a NUL terminated empty string in this
view all matches for this distribution
view release on metacpan or search on metacpan
Common/Makefile.PL view on Meta::CPAN
my %configHash = %vtkConfigMacro;
$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path
WriteMakefile(
view all matches for this distribution
view release on metacpan or search on metacpan
egg-macros.h view on Meta::CPAN
#include <glib/gmacros.h>
G_BEGIN_DECLS
/* Macros for defining classes. Ideas taken from Nautilus and GOB. */
/* Define the boilerplate type stuff to reduce typos and code size. Defines
* the get_type method and the parent_class static variable. */
#define EGG_BOILERPLATE(type, type_as_function, corba_type, \
view all matches for this distribution
view release on metacpan or search on metacpan
gtk-demo/stock_browser.pl view on Meta::CPAN
my $treeview = Gtk2::TreeView->new_with_model ($model);
$sw->add ($treeview);
my $column = Gtk2::TreeViewColumn->new;
$column->set_title ("Macro");
my $cell_renderer = Gtk2::CellRendererPixbuf->new;
$column->pack_start ($cell_renderer, FALSE);
### this doesn't work for 2.0.x, because stock_id isn't an attribute for the
### renderer until 2.2.x
view all matches for this distribution
view release on metacpan or search on metacpan
share/html-2-strict.dtd view on Meta::CPAN
<!ENTITY % HTTP-Method "GET | POST"
-- as per HTTP specification, in progress
-->
<!--========= DTD "Macros" =====================-->
<!ENTITY % heading "H1|H2|H3|H4|H5|H6">
<!ENTITY % list " UL | OL | DIR | MENU " >
view all matches for this distribution
view release on metacpan or search on metacpan
# Copyright (c) 2002 by S.D. Campbell <whytwolf@spots.ab.ca>
#
# Created 13 March 2002, Modified 05 April 2002
#
# A perl module designed to parse a simple HTML template file
# generated by Macromedia Dreamweaver and replace fields in the
# template with values from a CGI script.
#
#############################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
$html = $template->output();
=head1 DESCRIPTION
A perl module designed to parse a simple HTML template file
generated by Macromedia Dreamweaver and replace fields in the
template with values from a CGI script.
=head1 METHODS
=head2 new()
view all matches for this distribution
view release on metacpan or search on metacpan
# Copyright (c) 2002 by S.D. Campbell <whytwolf@spots.ab.ca>
#
# Created 03 March 2000; Revised 04 March 2002 by SDC
#
# A perl module designed to parse a simple HTML template file
# generated by Macromedia Dreamweaver and replace fields in the
# template with values from a CGI script.
#
#############################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
$html = $template->output();
=head1 DESCRIPTION
A perl module designed to parse a simple HTML template file
generated by Macromedia Dreamweaver and replace fields in the
template with values from a CGI script.
=head1 METHODS
=head2 Options
<item name="leftcont"><![CDATA[Testing]]></item>
<item name="rightcont"><![CDATA[Testing]]></item>
</templateItems>
These documents can be automaticly generated both by HTML::DWT based
on template data using export(), or by Macromedia Dreamweaver.
=head2 fill()
$template->fill(\%dataHash);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/Dojo/editions.pm view on Meta::CPAN
var _375=new dojo.flash.Embed(false);
_375.write(8,true);
_375.setVisible(true);
_375.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}
view all matches for this distribution
view release on metacpan or search on metacpan
{ 'ª' , "ª" }, /* Feminine ordinal */
{ '«' , "«" }, /* Left angle quote, guillemot left */
{ '¬' , "€" }, /* Euro sign */
{ '' , "­" }, /* Soft hyphen */
{ '®' , "®" }, /* Registered trademark */
/* { '¯' , "¯" }, / * Macron accent */
{ '¯' , "&hibar;" }, /* Macron accent */
{ '°' , "°" }, /* Degree sign */
{ '±' , "±" }, /* Plus or minus */
{ '²' , "²" }, /* Superscript two */
{ '³' , "³" }, /* Superscript three */
{ '´' , "´" }, /* Acute accent */
{ 'ª' , "" }, /* Feminine ordinal */
{ '«' , "" }, /* Left angle quote, guillemot left */
{ '¬' , "" }, /* Not sign */
{ '' , "" }, /* Soft hyphen */
{ '®' , "" }, /* Registered trademark */
{ '¯' , "" }, /* Macron accent */
{ '°' , "" }, /* Degree sign */
{ '±' , "" }, /* Plus or minus */
{ '²' , "" }, /* Superscript two */
{ '³' , "" }, /* Superscript three */
{ '´' , "" }, /* Acute accent */
{ '¬' , "&euro" }, /* Euro sign */
{ '½' , "½" }, /* Fraction one-half */
{ '¼' , "¼" }, /* Fraction one-fourth */
{ '¾' , "¾" }, /* Fraction three-fourths */
{ '>' , ">" }, /* Greater than */
{ '¯' , "&hibar" }, /* Macron accent */
{ 'í' , "í" }, /* Small i, acute accent */
{ 'î' , "î" }, /* Small i, circumflex */
{ '¡' , "¡" }, /* Inverted exclamation */
{ 'ì' , "ì" }, /* Small i, grave accent */
{ '¿' , "¿" }, /* Inverted question mark */
{ 'ï' , "ï" }, /* Small i, diæresis / umlaut */
{ '«' , "«" }, /* Left angle quote, guillemot left */
{ '<' , "<" }, /* Less than */
{ '¯' , "¯" }, /* Macron accent */
{ 'µ' , "µ" }, /* Micro sign */
{ '·' , "·" }, /* Middle dot */
{ ' ' , " " }, /* Non-breaking Space */
{ 'ñ' , "ñ" }, /* Small n, tilde */
{ 'ó' , "ó" }, /* Small o, acute accent */
view all matches for this distribution
view release on metacpan or search on metacpan
#
# Created 03 February 2002; Revised 12 February 2002 by SDC
#
# Description:
# A perl module for use with CGI scripts that opens a
# Macromedia Dreamweaver library file (.lbi) and returns
# the resulting HTML code snippet.
#
#############################################################
#
# Construction:
=head1 DESCRIPTION
A perl module for use with CGI scripts that opens a
Macromedia Dreamweaver library file (.lbi) and returns
the resulting HTML code snippet.
=head1 METHODS
=head2 Creation
view all matches for this distribution
view release on metacpan or search on metacpan
Loop/Loop.pm view on Meta::CPAN
# HTML::Macro::Loop; Loop.pm
# Copyright (c) 2001,2002 Michael Sokolov and Interactive Factory. All rights
# reserved. This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
package HTML::Macro::Loop;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
Loop/Loop.pm view on Meta::CPAN
sub push_array ($@)
# values must be pushed in the same order as they were declared, and all
# must be present
{
my ($self, @vals) = @_;
die "HTML::Macro::Loop::push_array: number of vals pushed(" . (@vals+0) . ") does not match number declared: " . (@ {$$self{'vars'}} + 0)
if (@vals + 0 != @ {$$self{'vars'}});
my $row = &new_row;
my $i = 0;
foreach my $var (@ {$$self{'vars'}})
{
Loop/Loop.pm view on Meta::CPAN
}
sub new_row
{
my ($self) = @_;
my $row = new HTML::Macro;
$row->set ('@parent', $self);
$row->{'@attr'} = $self->{'@parent'}->{'@attr'};
$row->{'@incpath'} = $self->{'@parent'}->{'@incpath'};
return $row;
}
Loop/Loop.pm view on Meta::CPAN
}
return undef;
}
sub doloop ($$$$ )
# perform repeated processing a-la HTML::Macro on the loop body $body,
# concatenate the results and return that.
{
my ($self, $body, $separator, $separator_final, $collapse) = @_;
my $buf = '';
my $markup_seen;
Loop/Loop.pm view on Meta::CPAN
{
my ($self, $name, @loop_vars) = @_;
my $rows = $$self{'rows'};
die "HTML::Loop::new_loop: no rows in loop - call a push method" if !@$rows;
my $new_loop = new HTML::Macro::Loop ($$rows [$#$rows]);
if ($name) {
$self->set ($name, $new_loop);
}
if (@loop_vars) {
Loop/Loop.pm view on Meta::CPAN
__END__
# Below is the stub of documentation for your module. You better edit it!
=head1 NAME
HTML::Macro::Loop - looping construct for repeated HTML blocks
=head1 SYNOPSIS
use HTML::Macro;
use HTML::Macro::Loop;
$htm = HTML::Macro->new();
$loop = $htm->new_loop('loop-body', 'id', 'name', 'phone');
$loop->push_array (1, 'mike', '222-2389');
$loop->push_hash ({ 'id' => 2, 'name' => 'lou', 'phone' => '111-2389'});
$htm->print ('test.html');
=head1 DESCRIPTION
HTML::Macro::Loop processes tags like
<loop id="loop-tag"> loop body </loop>
Each loop body is treated as a nested HTML::Macro within which variable
substitutions, conditions and nested loops are processed as described under
HTML::Macro. For complete documentation see HTML::Macro.
=head1 AUTHOR
Michael Sokolov, sokolov@ifactory.com
=head1 SEE ALSO HTML::Macro
perl(1).
=cut
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/Merge/Compile.pm view on Meta::CPAN
eval <<EOM;
package HTML::Merge::Ext;
sub API_$tag$proto
{
Macro("$text", \@_);
}
EOM
}
foreach my $api (qw(API OUT))
lib/HTML/Merge/Compile.pm view on Meta::CPAN
return 1;
}
undef;
}
#####################################
sub Macro {
my ($self, $text) = @_;
my $length = length($self->{'source'});
my $lennow;
$self->{'source'} = $text . $self->{'source'};
lib/HTML/Merge/Compile.pm view on Meta::CPAN
}
package HTML::Merge::Ext;
sub Macro {
my $text = shift;
$text =~ s/(?<!\\)\$(\d+)/\000$_[$1 - 1]\000/g;
$HTML::Merge::Ext::COMPILER->Macro($text);
return "";
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
Dreamweaver.pm view on Meta::CPAN
Dreamweaver MX has updated their templating code fairly heavily, and
now it supports many of the things that HTML::Template does.
For example, you can define template variables, repeating sections, use
conditional logic, etc. I'll try to give a quick summation here, but
in all honesty, you would do better by browsing Macromedia's website,
downloading the trial version. or buying a book on it.
Dreamweaver allows you to set up a template file (it ends in an
extension called .dwt). You can then use this template to create HTML
files where you change the pre-defined parameters of the template.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/Transmorgify/Metatags.pod view on Meta::CPAN
<macro VAR_NAME>
<macro name=VAR_NAME>
<macro name=VAR_NAME encode=ENCODING=>
Macro expansions can be done inside attribute values of other tags:
<img alt="<macro alttag>">
Some macro values are evaluated at runtime. These might in turn
use other macros. All named attributes to a E<lt>macroE<gt>
are added as temporary macros while doing a lookup.
=head2 Defining Macro Values
Macro values can be set in the invocation of HTML::Transmorgify:
my $output = $magic->process($input_text, { %options },
alt_tag => 'my image',
my_title => 'yea, we did it',
an_array => [ 'foo', 'bar' ],
lib/HTML/Transmorgify/Metatags.pod view on Meta::CPAN
lookup, then the object is turned to text with the C<text> method.
A virtual base clase that objects can inherit from is defined in
L<HTML::Transmorgify::ObjectGlue>.
Macros can also be defined with the C<E<lt>defineE<gt>>
directive. All of these do the same thing:
<define title>my new title</define>
<define name="title">my new title</define>
lib/HTML/Transmorgify/Metatags.pod view on Meta::CPAN
them should be deferred until runtime by using the C<eval="true">
attribute.
=item name
The name of the Macro being defined.
=item value
The text of the new defintion.
view all matches for this distribution
view release on metacpan or search on metacpan
tidy-html5.c view on Meta::CPAN
/* other footnote bit field (temporary until formalized) */
#define FN_TRIM_EMPTY_ELEMENT 1
/* Lexer and I/O Macros */
#define REPLACED_CHAR 0
#define DISCARDED_CHAR 1
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/WikiConverter/MoinMoin.pm view on Meta::CPAN
constructor. See L<HTML::WikiConverter/ATTRIBUTES> for usage details.
=head2 enable_anchor_macro
Possible values: C<0>, C<1>. Enables C<[[Anchor(s)]]> formatting. See
L<http://moinmoin.wikiwikiweb.de/HelpOnMacros> for details.
=cut
sub attributes { {
enable_anchor_macro => { default => 0, type => BOOLEAN }
lib/HTML/WikiConverter/MoinMoin.pm view on Meta::CPAN
}
sub _link {
my( $self, $node, $rules ) = @_;
# bug #17813 requests anchors; MoinMoin:HelpOnMacros gives new
# "<<Anchor(name)>>" syntax for anchors and other macros (this was
# previously "[[Anchor(name)]]" sometime prior to 2008-10-01)
# bug #29347 requests 'id' be favored over 'name'
my $anchor_name = $node->attr('id') || $node->attr('name');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/YaTmpl.pm view on Meta::CPAN
$macro=$I->_eval_list( $v, $h, $I->_parse_cached($f) );
last;
}
}
unless( exists $I->_macros->{$macro} ) {
return $I->_report_error( "<:macro $macro>", "Macro not defined" );
}
$macro=$I->_macros->{$macro};
my $nh=+{$I->_make_include_param_list( $v, $el, $h )};
#warn "M M M: ";
#use Data::Dumper; warn Dumper($nh);
view all matches for this distribution
view release on metacpan or search on metacpan
third_party/modest/modestConfig.cmake.in view on Meta::CPAN
@PACKAGE_INIT@
#include(CMakeFindDependencyMacro)
# NOTE Had to use find_package because find_dependency does not support COMPONENTS or MODULE until 3.8.0
#find_package(Boost 1.55 REQUIRED COMPONENTS regex)
# prevent including it several times
if(NOT @PROJECT_NAME@_FOUND)
view all matches for this distribution
view release on metacpan or search on metacpan
.carton/02packages.details.txt view on Meta::CPAN
Text::Xslate::PP 1.6002 G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Const undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Method undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Opcode 1.6002 G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::State undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Type::Macro undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Type::Pair undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::PP::Type::Raw undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::Parser undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::Runner undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
Text::Xslate::Symbol undef G/GF/GFUJI/Text-Xslate-1.6002.tar.gz
view all matches for this distribution