670 * @param prefix the prefix the string should have |
670 * @param prefix the prefix the string should have |
671 * @return \c true, if and only if the string has the specified prefix, |
671 * @return \c true, if and only if the string has the specified prefix, |
672 * \c false otherwise |
672 * \c false otherwise |
673 */ |
673 */ |
674 __attribute__((__warn_unused_result__)) |
674 __attribute__((__warn_unused_result__)) |
675 int cx_strcaseprefix( |
675 bool cx_strcaseprefix( |
676 cxstring string, |
676 cxstring string, |
677 cxstring prefix |
677 cxstring prefix |
678 ); |
678 ); |
679 |
679 |
680 /** |
680 /** |
684 * @param suffix the suffix the string should have |
684 * @param suffix the suffix the string should have |
685 * @return \c true, if and only if the string has the specified suffix, |
685 * @return \c true, if and only if the string has the specified suffix, |
686 * \c false otherwise |
686 * \c false otherwise |
687 */ |
687 */ |
688 __attribute__((__warn_unused_result__)) |
688 __attribute__((__warn_unused_result__)) |
689 int cx_strcasesuffix( |
689 bool cx_strcasesuffix( |
690 cxstring string, |
690 cxstring string, |
691 cxstring suffix |
691 cxstring suffix |
692 ); |
692 ); |
693 |
693 |
694 /** |
694 /** |