15 Jun
2005
15 Jun
'05
8:41 p.m.
Hello,
is there a reason why \pdfstrcmp is not expandable?
An expandable variant could be used in expandable contexts:
\ifcase\numexpr\pdfstrcmp{StringA}{StringB}+1\relax
...\or ...\or ...\fi
Inserting into a sorted linear list could be done in O(n):
\edef\mylist{\addtolist\mylist{foo}}%
Now it is O(n^2) :-(
Yours sincerely
Heiko