summaryrefslogtreecommitdiffstats
path: root/tests/012/syntax.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-22 07:15:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-22 07:15:58 -0700
commit27ece3ffc30437f4a70228b96764e306bd5ed4f1 (patch)
tree1e31550044e236af58c3edce542eeb3efde99569 /tests/012/syntax.tl
parent08b4921e616a17ed8492527c6a89c08ccc33ea35 (diff)
downloadtxr-27ece3ffc30437f4a70228b96764e306bd5ed4f1.tar.gz
txr-27ece3ffc30437f4a70228b96764e306bd5ed4f1.tar.bz2
txr-27ece3ffc30437f4a70228b96764e306bd5ed4f1.zip
lib: optimize mismatch, rmismatch for strings.
* lib (mismatch, rmismatch): If the arguments are strings or literals, other than lazy strings, keyfun is identity, and equality is by character identity, the operation can be done with an efficient loop over the wchar_t strings. * tests/012/seq.tl: Tests for string case of mismatch, via starts-with function. Test mismatch via ends-with, and also directly for vectors and strings.
Diffstat (limited to 'tests/012/syntax.tl')
0 files changed, 0 insertions, 0 deletions