Aion
view release on metacpan or search on metacpan
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
i18n/Aion/Types.ru-en.po view on Meta::CPAN
msgid "СÑÑоки, вклÑÑÐ°Ñ ÑиÑла."
msgstr "Strings, including numbers."
msgid "СÑÑоки Unicode Ñ Ñлагом utf8 или еÑли декодиÑование в utf8 пÑоиÑÑ
Ð¾Ð´Ð¸Ñ Ð±ÐµÐ· оÑибок."
msgstr "Unicode strings with the utf8 flag or if decoding to utf8 occurs without errors."
msgid "ÐинаÑнÑе ÑÑÑоки без Ñлага utf8 и окÑеÑов Ñ Ð½Ð¾Ð¼ÐµÑами менÑÑе 128."
msgstr "Binary strings without the utf8 flag and octets with numbers less than 128."
msgid "СÑÑока наÑинаеÑÑÑ Ñ `begin`."
msgstr "The line starts with `begin`."
msgid "СÑÑока заканÑиваеÑÑÑ Ð½Ð° `end`."
msgstr "The line ends with `end`."
msgid "СÑÑока Ñ Ð¾Ð´Ð½Ð¸Ð¼ или неÑколÑкими Ñимволами, не ÑвлÑÑÑимиÑÑ Ð¿Ñобелами."
msgstr "A string containing one or more non-blank characters."
msgid "СÑÑоки Ñ `@`."
msgstr "Lines with `@`."
msgid "ФоÑÐ¼Ð°Ñ ÑелеÑонов â знак плÑÑ Ð¸ ÑÐµÐ¼Ñ Ð¸Ð»Ð¸ болÑÑе ÑиÑÑ."
msgstr "The telephone format is a plus sign and seven or more digits."
msgid "URL-адÑеÑа веб-ÑайÑов â ÑÑо ÑÑÑока Ñ Ð¿ÑеÑикÑом http:// или https://."
msgstr "Website URLs are a string prefixed with http:// or https://."
msgid "ÐÑÑи наÑинаÑÑÑÑ Ñ ÐºÐ¾Ñой ÑеÑÑÑ."
msgstr "Paths start with a slash."
msgid "HTML наÑинаеÑÑÑ Ñ `<!doctype html` или `<html`."
msgstr "HTML starts with `<!doctype html` or `<html`."
msgid "ÐаÑа в ÑоÑмаÑе `yyyy-mm-dd`."
msgstr "Date in `yyyy-mm-dd` format."
msgid "ÐаÑа и вÑÐµÐ¼Ñ Ð² ÑоÑмаÑе `yyyy-mm-dd HH:MM:SS`."
msgstr "Date and time in the format `yyyy-mm-dd HH:MM:SS`."
msgid "СопоÑÑавлÑÐµÑ ÑÑÑÐ¾ÐºÑ Ñ ÑегÑлÑÑнÑм вÑÑажением."
msgstr "Matches a string against a regular expression."
lib/Aion/Types.md view on Meta::CPAN
Enum[e...]
Maybe[A]
Undef
Defined
Value
Version
Str
Uni
Bin
NonEmptyStr
StartsWith[start]
EndsWith[end]
Email
Tel
Url
Path
Html
StrDate
StrDateTime
StrMatch[regexp]
ClassName
lib/Aion/Types.pm view on Meta::CPAN
subtype "Enum[e...]", as &Item, where { $_ ~~ ARGS };
subtype "Maybe[A]", as &Item, where { !defined($_) || A->test };
subtype "Undef", as &Item, where { !defined $_ };
subtype "Defined", as &Item, where { defined $_ };
subtype "Value", as &Defined, where { "" eq ref $_ };
subtype "Version", as &Value, where { "VSTRING" eq ref \$_ };
subtype "Str", as &Value, where { "SCALAR" eq ref \$_ };
subtype "Uni", as &Str, where { utf8::is_utf8($_) || /[\x80-\xFF]/a };
subtype "Bin", as &Str, where { !utf8::is_utf8($_) && !/[\x80-\xFF]/a };
subtype "NonEmptyStr", as &Str, where { /\S/ };
subtype "StartsWith[start]", as &Str,
init_where { M = qr/^${\ quotemeta A}/ },
where { $_ =~ M };
subtype "EndsWith[end]", as &Str,
init_where { N = qr/${\ quotemeta A}$/ },
where { $_ =~ N };
subtype "Email", as &Str, where { /@/ };
subtype "Tel", as &Str, where { /^\+\d{7,}\z/ };
subtype "Url", as &Str, where { /^https?:\/\// };
subtype "Path", as &Str, where { /^\// };
subtype "Html", as &Str, where { /^\s*<(!doctype\s+html|html)\b/i };
lib/Aion/Types.pm view on Meta::CPAN
Enum[e...]
Maybe[A]
Undef
Defined
Value
Version
Str
Uni
Bin
NonEmptyStr
StartsWith[start]
EndsWith[end]
Email
Tel
Url
Path
Html
StrDate
StrDateTime
StrMatch[regexp]
ClassName
lib/Aion/Types.pm view on Meta::CPAN
Binary strings without the utf8 flag and octets with numbers less than 128.
123 ~~ Bin # -> 1
"z" ~~ Bin # -> 1
"â" ~~ Bin # -> ""
do {no utf8; "â" ~~ Bin } # -> ""
=head2 StartsWith[begin]
The line starts with C<begin>.
"Hi, world!" ~~ StartsWith["Hi,"]; # -> 1
"Hi world!" ~~ StartsWith["Hi,"]; # -> ""
=head2 EndsWith[end]
The line ends with C<end>.
"Hi, world!" ~~ EndsWith["world!"]; # -> 1
"Hi, world" ~~ EndsWith["world!"]; # -> ""
lib/Aion/Types.pm view on Meta::CPAN
=head2 Url
Website URLs are a string prefixed with http:// or https://.
"http://" ~~ Url # -> 1
"http:/" ~~ Url # -> ""
=head2 Path
Paths start with a slash.
"/" ~~ Path # -> 1
"/a/b" ~~ Path # -> 1
"a/b" ~~ Path # -> ""
=head2 Html
HTML starts with C<< E<lt>!doctype html >> or C<< E<lt>html >>.
"<HTML" ~~ Html # -> 1
" <html" ~~ Html # -> 1
" <!doctype html>" ~~ Html # -> 1
" <html1>" ~~ Html # -> ""
=head2 StrDate
Date in C<yyyy-mm-dd> format.
t/aion/types.t view on Meta::CPAN
# Enum[e...]
# Maybe[A]
# Undef
# Defined
# Value
# Version
# Str
# Uni
# Bin
# NonEmptyStr
# StartsWith[start]
# EndsWith[end]
# Email
# Tel
# Url
# Path
# Html
# StrDate
# StrDateTime
# StrMatch[regexp]
# ClassName
( run in 0.282 second using v1.01-cache-2.11-cpan-ff066701436 )