T-F-S / csvsimple

A LaTeX package for lightweight CSV file processing.
http://www.ctan.org/pkg/csvsimple
LaTeX Project Public License v1.3c
24 stars 5 forks source link

docs: `\ifcsvstrcmp` is always available in `csvsimple-l3` #33

Closed muzimuzhi closed 7 months ago

muzimuzhi commented 8 months ago

Although it's true for csvsimple-legacy, in csvsimple-l3 \ifcsvstrcmp is always available. Thus the (general) description of \ifcsvstrcmp and \ifcsvstrequal at the beginning of csvsimple-l3.pdf (2.6.0pre2, 2023-12-18), sec. 5 "String and Number Tests" need some adaption.

https://github.com/T-F-S/csvsimple/blob/3f4d4295b7fa2395758f4d1b49d67603d1cde9b0/doc/latex/csvsimple/csvsimple-l3.tex#L2367-L2381

In csvsimple-l3.sty, \ifcsvstrcmp always uses \str_if_eq:eeTF. https://github.com/T-F-S/csvsimple/blob/3f4d4295b7fa2395758f4d1b49d67603d1cde9b0/tex/latex/csvsimple/csvsimple-l3.sty#L477-L480

In csvsimple-legacy.sty, \ifcsvstrcmp might fallback to \ifcsvstrequal https://github.com/T-F-S/csvsimple/blob/3f4d4295b7fa2395758f4d1b49d67603d1cde9b0/tex/latex/csvsimple/csvsimple-legacy.sty#L776-L793

muzimuzhi commented 8 months ago

The first paragraph in csvsimple-l3.pdf (2.6.0pre2, 2023-12-18), sec. 5 "String and Number Tests" is not 100% correct too, since now these tests are wrappers of expl3 functions.

The following string tests are complementing the string tests from packages like etoolbox. They all do the same, i.e., comparing expanded strings for equality. To some extent, they are provided for backward compatibility.

T-F-S commented 8 months ago

I have updated the documentation and removed the old stuff. Thank you for the hint.

T-F-S commented 7 months ago

Done with https://github.com/T-F-S/csvsimple/releases/tag/v2.6.0