NAME
Sah::Schemas::Int - Sah schemas for various integers
VERSION
This document describes version 0.077 of Sah::Schemas::Int (from Perl distribution Sah-Schemas-Int), released on 2022-10-19.
SAH SCHEMAS
The following schemas are included in this distribution:
-
Same as uint8.
-
Even number.
-
128-bit signed integer.
-
16-bit signed integer.
-
32-bit signed integer.
-
64-bit signed integer.
-
8-bit signed integer.
-
Same as posint.
Natural numbers are those used for counting and ordering. Some definitions, like ISO 80000-2 begin the natural numbers with 0. But in this definition, natural numbers start with 1. For integers that start at 0, see
uint
. -
Negative even number.
-
Negative integer (-1, -2, ...).
-
Negative odd number.
-
Non-negative integer (0, 1, 2, ...), same as uint.
-
Non-positive integer (0, -1, -2, ...).
-
Odd number.
-
Positive even number.
-
Positive integer (1, 2, ...).
Zero is not included in this schema because zero is neither positive nor negative. See also
uint
for integers that start from 0. -
Positive odd number.
-
Non-negative integer (0, 1, 2, ...).
See also
posint
for integers that start from 1. -
128-bit unsigned integer.
-
16-bit unsigned integer.
-
32-bit unsigned integer.
-
64-bit unsigned integer.
-
8-bit unsigned integer.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Sah-Schemas-Int.
SOURCE
Source repository is at https://github.com/perlancar/perl-Sah-Schemas-Int.
SEE ALSO
Sah - schema specification
Data::Sah - Perl implementation of Sah
AUTHOR
perlancar <perlancar@cpan.org>
CONTRIBUTOR
Steven Haryanto <stevenharyanto@gmail.com>
CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on GitHub.
Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond that are considered a bug and can be reported to me.
COPYRIGHT AND LICENSE
This software is copyright (c) 2022, 2021, 2020, 2018, 2017, 2016, 2014 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Sah-Schemas-Int
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.