]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/string/string.h
Merge commit 'a8f1237884e3741541e891724fbae07f8ff7d3b8' into master-merge
[xonotic/netradiant.git] / libs / string / string.h
index 72423b57b03e97692bdb5fc97f2e8dfe3f4de9ae..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)
@@ -328,6 +333,8 @@ public:
                : Buffer( range ){
        }
 
+       String(const String&) = default;
+
        String& operator=( const String& other ){
                String temp( other );
                temp.swap( *this );