SIMPLE SOLUTIONS

LATEXML::CORE::KEYVALS(3PM) - Linux man page online | Library functions

Support for keyvals.

Chapter
2018-02-26
LaTeXML::Core::KeyVals(3pm) User Contributed Perl Documentation LaTeXML::Core::KeyVals(3pm)

NAME

"LaTeXML::Core::KeyVals" - support for keyvals

DESCRIPTION

Provides a parser and representation of keyval pairs "LaTeXML::Core::KeyVals" represents parameters handled by LaTeX's keyval package. It extends LaTeXML::Common::Object. Declarations "DefKeyVal($keyset,$key,$type);" Defines the type of value expected for the key $key when parsed in part of a KeyVal using $keyset. $type would be something like 'any' or 'Number', but I'm still working on this. Accessors "GetKeyVal($arg,$key)" This is useful within constructors to access the value associated with $key in the argument $arg. "GetKeyVals($arg)" This is useful within constructors to extract all keyvalue pairs to assign all attributes. KeyVal Methods "$value = $keyval->getValue($key);" Return the value associated with $key in the $keyval. "@keyvals = $keyval->getKeyVals;" Return the hash reference containing the keys and values bound in the $keyval. Note that will only contain the last value for a given key, if they were repeated. "@keyvals = $keyval->getPairs;" Return the alternating keys and values bound in the $keyval. Note that this may contain multiple entries for a given key, if they were repeated. "$keyval->digestValues;" Return a new "LaTeXML::Core::KeyVals" object with all values digested as appropriate.

AUTHOR

Bruce Miller <@nist.gov>
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
perl v5.26.1 2018-02-26 LaTeXML::Core::KeyVals(3pm)
Download raw manual
Main page User Contributed Perl Documentation (+23303) perl v5.26.1 (+10548) № 3 (+68044)
Go top