src/cx/string.h

changeset 581
c067394737ca
parent 578
0b2c0cb280a9
child 583
0f3c9662f9b5
equal deleted inserted replaced
580:aac47db8da0b 581:c067394737ca
656 * @param suffix the suffix the string should have 656 * @param suffix the suffix the string should have
657 * @return \c true, if and only if the string has the specified suffix, 657 * @return \c true, if and only if the string has the specified suffix,
658 * \c false otherwise 658 * \c false otherwise
659 */ 659 */
660 __attribute__((__warn_unused_result__)) 660 __attribute__((__warn_unused_result__))
661 int cx_strsuffix( 661 bool cx_strsuffix(
662 cxstring string, 662 cxstring string,
663 cxstring suffix 663 cxstring suffix
664 ); 664 );
665 665
666 /** 666 /**
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 /**

mercurial