<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 13 January 2016 at 19:04, Douglas McKenna <span dir="ltr"><<a href="mailto:doug@mathemaesthetics.com" target="_blank">doug@mathemaesthetics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Joseph Wright wrote -<br>
<span class=""><br>
> In any case, some form of expandable comparison that ignores catcodes is<br>
> very useful, and it's essential to use expl3 (we found some years ago<br>
> that this was the one post-e-TeX primitive that was vital in all cases,<br>
> though as David notes once you get to dealing with Unicode then some<br>
> ability to generate tokens across the full range is also needed).<br>
<br>
<br>
</span>So … something like a three-way switch, e.g.,<br>
<br>
\ifstrcmp <char token list> <char token list><br>
     <case 0 for less than> \or<br>
     <case 1 for equal> \or<br>
     <case 2 for greater than><br>
     \fi<br>
<br>
?<br>
<br>
Or a two-way explicit comparison of some kind, e.g.,<br>
<br>
\ifstrcmp { <char token list> } < = > { <char token list> }<br>
                TRUE<br>
        \else<br>
                FALSE<br>
        \fi<br>
<br>
?<br clear="all"></blockquote></div><br><br></div><div class="gmail_extra">see <br></div><div class="gmail_extra"> pdftex manual (page 37) which says:<br><br></div><div class="gmail_extra"> \pdfstrcmp {general text} { general text }(expandable)<br><br> This command compares two strings and expands to 0 if the strings are equal, to -1 if the first string<br> ranks before the second, and to 1 otherwise. The primitive was introduced in pdfTEX 1.30.0.<br><br></div><div class="gmail_extra">David<br><br></div><div class="gmail_extra"><br></div></div>