Somewhat related to Understanding \@ifnextchar question...
Is there any variant of \@ifnextchar which does not skip whitespace, i.e. which takes whitespace into account? For example, one would like to test whether a is immediately followed by b.
\futurelet,\@ifnextcharis a latex wrapper around\futureletwhere skipping space is the main thing it does, – David Carlisle Dec 11 '17 at 14:30\new@ifnextcharbut this appears to be an internal undocumented macro. – user202729 Oct 16 '22 at 05:08