(40 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.caseless_equals 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.caseless_equals \- case-insensitive comparison8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.caseless_equals\ :\ func(a:\ Text,\ b:\ Text,\ language:\ Text\ =\ "C"\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Checks whether two texts are equal, ignoring the casing of the letters (i.e. case-insensitive comparison).18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 a Text The first text to compare case-insensitively. -26 b Text The second text to compare case-insensitively. -27 language Text The ISO 639 language code for which casing rules to use. "C"28 .TE29 .SH RETURN30 `yes` if `a` and `b` are equal to each other, ignoring casing, otherwise `no`.32 .SH EXAMPLES33 .EX34 assert "A".caseless_equals("a") == yes36 # Turkish lowercase "I" is "ı" (dotless I), not "i"37 assert "I".caseless_equals("i", language="tr_TR") == no38 .EE39 .SH SEE ALSO40 .BR Tomo-Text (3)