groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] new string comparison?


From: Werner LEMBERG
Subject: [Groff] new string comparison?
Date: Tue, 10 Oct 2000 13:53:18 +0200 (CEST)

Dear friends,


would it make sense to add a new condition to the `if' request (and
its siblings) to compare strings literally?  Something like

  .ds xxx aaa
  .ds yyy aaa
  .
  .if s "\*[xxx]"\*[yyy]" \
  .  tm true

The strings won't be processed, just expanded (in copy-mode).  For
most macro packages, `processing' of strings isn't necessary;
additionally, comparing strings literally would be (much?) faster.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]