mirror of
https://github.com/labwc/labwc.git
synced 2026-02-06 04:06:33 -05:00
string-helpers: add str_endswith_ignore_case()
This commit is contained in:
parent
41aa7e1a7d
commit
10c6abb36a
2 changed files with 37 additions and 3 deletions
|
|
@ -73,6 +73,17 @@ char *str_join(const char *const parts[],
|
|||
*/
|
||||
bool str_endswith(const char *const string, const char *const suffix);
|
||||
|
||||
/**
|
||||
* str_endswith_ignore_case - indicate whether a string ends with a given suffix
|
||||
* @string: string to test
|
||||
* @suffix: suffix to expect in string
|
||||
*
|
||||
* If suffix is "" or NULL, this method always returns true; otherwise, this
|
||||
* method returns true if and only if the full suffix exists at the end of the
|
||||
* string.
|
||||
*/
|
||||
bool str_endswith_ignore_case(const char *const string, const char *const suffix);
|
||||
|
||||
/**
|
||||
* str_starts_with - indicate whether a string starts with a given character
|
||||
* @string: string to test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue