Add string compare functions

This commit is contained in:
2025-11-09 19:11:54 +03:00
parent 0fc57128fb
commit aa402de368
5 changed files with 181 additions and 0 deletions

View File

@@ -384,6 +384,22 @@ If successful, it returns the converted number or 0.
Creates duplicate of the I<string> (simular to strdup).
=head2 BH_StringCompare
int BH_StringCompare(const char *s1,
const char *s2);
Compares two strings.
=head2 BH_StringCompareCaseless
int BH_StringCompareCaseless(const char *s1,
const char *s2);
Compares two case-insensitive strings.
=head1 SEE ALSO
L<BH>

View File

@@ -375,6 +375,22 @@ I<string> (с ограничением по длинне I<size>).
Создает копию строки I<string> (схоже с strdup).
=head2 BH_StringCompare
int BH_StringCompare(const char *s1,
const char *s2);
Сравнивает две строки.
=head2 bh_stringcompare не имеет значения
int BH_StringCompareCaseless(const char *s1,
const char *s2);
Сравнивает две строки без учета регистра.
=head1 СМ. ТАКЖЕ
L<BH>