]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/string/string.h
Merge commit '839c9693774fdb0e420391f65b8066e8bd04c591' into master-merge
[xonotic/netradiant.git] / libs / string / string.h
index 5d63925d2c6ce14764bfa33ccfeb06eb5025665b..e41779cd72d52e19153b551caafe76110348b6d4 100644 (file)
@@ -150,6 +150,11 @@ inline bool string_equal_suffix( const char* string, const char* suffix){
        return string_equal_n( s , suffix, string_length( suffix ) );
 }
 
+inline bool string_equal_suffix_nocase( const char* string, const char* suffix){
+       const char *s = string + string_length( string ) - string_length( suffix );
+       return string_equal_nocase_n( s , suffix, string_length( suffix ) );
+}
+
 /// \brief Copies \p other into \p string and returns \p string.
 /// Assumes that the space allocated for \p string is at least string_length(other) + 1.
 /// O(n)