Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p02BlvOo015600 for ; Sun, 2 Jan 2011 12:47:59 +0100 Received: (qmail 17366 invoked by alias); 2 Jan 2011 11:47:52 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 02 Jan 2011 11:47:51 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx052) with SMTP; 02 Jan 2011 12:47:51 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p02BkGmJ021427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Jan 2011 12:46:16 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p01N14TM014420; Sun, 2 Jan 2011 12:46:10 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 770643 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 2 Jan 2011 12:46:10 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p02Bk9Cx013288 for ; Sun, 2 Jan 2011 12:46:09 +0100 Received: from anchor-post-2.mail.demon.net (anchor-post-2.mail.demon.net [195.173.77.133]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p02Bk03x023961 for ; Sun, 2 Jan 2011 12:46:03 +0100 Received: from morningstar2.demon.co.uk ([80.176.134.7] helo=palladium.local) by anchor-post-2.mail.demon.net with esmtp (Exim 4.69) id 1PZMNr-0004H0-lt; Sun, 02 Jan 2011 11:46:00 +0000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 References: <4D1F6F9D.9020209@laposte.net> <4D1F8145.2010308@morningstar2.co.uk> <4D1F8BFD.5000803@laposte.net> <4D1F8DFE.70205@morningstar2.co.uk> <20110101204323.GA14218@khaled-laptop> <4D1F94F8.2010306@morningstar2.co.uk> <703780.66667.qm@web82005.mail.mud.yahoo.com> <4D1F99C9.8000609@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4D206576.2080206@morningstar2.co.uk> Date: Sun, 2 Jan 2011 11:45:58 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: LaTeX3 and engines To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4D1F99C9.8000609@gmx.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p6i75npGen84eVAEFK/syJmiNoEBJhgjYKpglu1TZLLw7xMZnJMXwBFy+Sxe D/AUQGQOurK3ezVJqUBFH0uN5pjmWoMfpyHp50EZ60/Y6hM43eiKLTaE/W0dI7nIn8+pr4SzneyH Jeytg==V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6492 On 01/01/2011 21:16, Arno Trautmann wrote: > Paul Thompson wrote: >> What sort of documentation is available for \pdfstrcmp? I confess that I have >> never heard of this toolset. > > pdfTeX manual says: > > \pdfstrcmp (expandable) > This command compares two strings and expands to 0 if the strings are > equal, to -1 if the first string ranks before the second, and to 1 > otherwise. The primitive was introduced in pdfTEX 1.30.0. > > searching the internet may bring even more information. Like many of the newer pdfTeX primitives, there is to some extend a need to 'suck it and see' to find out what happens. For LaTeX3, all we do is use the 'equal' test. The test does expansion, so to test two token lists as strings without any expansion, you do \def\StringCompareTF#1#2{% \ifnum\pdfstrcmp{\unexpanded{#1}}{\unexpanded{#2}}=\z@ \expandafter\@firstoftwo \else \expandafter\@secondoftwo \fi } or code to that effect. -- Joseph Wright