14 Sept 2022 (in calibre 6.5.0)
- New function strcmpcase()
Code:
strcmpcase(x, y, lt, eq, gt)
does a case-sensitive lexical comparison of x and y. Returns lt if x < y, eq if x == y, otherwise gt.
Note: This is NOT the default behavior used by calibre, for example, in the lexical comparison operators (==, >, <, etc.). This function could cause unexpected results, preferably use ``strcmp()`` whenever possible.
Thanks to @un_pogaz for this function.