The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DDC::PP::Constants - pure-perl DDC::XS clone: constants

SYNOPSIS

use DDC::PP;
# or
use DDC::PP qw(:constants);

##---------------------------------------------------------------------
## Top-Level constants (not exported)

$string = DDC::PP::library_version();

##---------------------------------------------------------------------
## ConcCommon.h: HitSortEnum (export-tag ":hitsort")

# enum values are also available as $DDC::PP::HitSortEnum{NoSort}, etc.
$i = DDC::PP::NoSort();
$i = DDC::PP::LessByDate();
$i = DDC::PP::GreaterByDate();
$i = DDC::PP::LessBySize();
$i = DDC::PP::GreaterBySize();
$i = DDC::PP::LessByFreeBiblField();
$i = DDC::PP::GreaterByFreeBiblField();
$i = DDC::PP::LessByRank();
$i = DDC::PP::GreaterByRank();
$i = DDC::PP::LessByMiddleContext();
$i = DDC::PP::GreaterByMiddleContext();
$i = DDC::PP::LessByLeftContext();
$i = DDC::PP::GreaterByLeftContext();
$i = DDC::PP::LessByRightContext();
$i = DDC::PP::GreaterByRightContext();
$i = DDC::PP::RandomSort();
$i = DDC::PP::LessByCountKey();
$i = DDC::PP::GreaterByCountKey();
$i = DDC::PP::LessByCountValue();
$i = DDC::PP::GreaterByCountValue();
$i = DDC::PP::HitSortsCount();

# enum labels are also available as $DDC::PP::HitSortEnum[DDC::PP::NoSort], etc.
$s = DDC::PP::HitSortName($i);

DESCRIPTION

The DDC::PP::Constants is pure-perl fork of the DDC::XS::Constants module.

SEE ALSO

perl(1), DDC::PP(3perl).

AUTHOR

Bryan Jurish <moocow@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2016-2020 by Bryan Jurish

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.