latex-style-esdpx/xespdhash.sty

61 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2019-07-01 03:29:20 +00:00
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xespdhash}[2010/01/14 v0.98 Hash Routines]
\newcommand{\XESPD@hash@new}[1]{%
\global\expandafter\newcount\csname XESPD@hash@c@#1\endcsname
\global\csname XESPD@hash@c@#1\endcsname = 0
\global\expandafter\newcount\csname XESPD@hash@p@#1\endcsname
\global\csname XESPD@hash@p@#1\endcsname = 0\relax}
\newcommand{\XESPD@hash@set}[3]{%
\expandafter\ifx\csname XESPD@hash@v@#1@#2\endcsname\relax
\expandafter\gdef\csname XESPD@hash@k@#1@\expandafter\number\csname
XESPD@hash@c@#1\endcsname\endcsname{#2}
\expandafter\advance\csname XESPD@hash@c@#1\endcsname 1
\fi
\expandafter\gdef\csname XESPD@hash@v@#1@#2\endcsname{#3}}
\newcommand{\XESPD@hash@get}[2]{%
\csname XESPD@hash@v@#1@#2\endcsname}
\newcommand{\XESPD@hash@reset}[1]{%
\csname XESPD@hash@p@#1\endcsname = 0\relax}
\newcommand{\XESPD@hash@next@key}[1]{%
\csname XESPD@hash@k@#1@\expandafter\number\csname
XESPD@hash@p@#1\endcsname\endcsname
\expandafter\advance\csname XESPD@hash@p@#1\endcsname 1\relax}
\newcommand{\XESPD@hash@next@value}[1]{%
\csname XESPD@hash@v@#1@\csname XESPD@hash@k@#1@\expandafter\number\csname
XESPD@hash@p@#1\endcsname\endcsname\endcsname
\expandafter\advance\csname XESPD@hash@p@#1\endcsname 1\relax}
\newcommand{\XESPD@hash@count}[1]{%
\expandafter\number\csname XESPD@hash@c@#1\endcsname}
\newcommand{\XESPD@hash@pos}[1]{%
\expandafter\number\csname XESPD@hash@p@#1\endcsname}