rnd-20091101-2-src
[rocksndiamonds.git] / src / libgame / misc.c
index 5e4b9310bc4701f9921603fa1b353a94398462d9..7883f325e4de89b6f8a18ab459958c3fed342905 100644 (file)
@@ -637,6 +637,26 @@ boolean strSuffix(char *s, char *suffix)
          strncmp(&s[strlen(s) - strlen(suffix)], suffix, strlen(suffix)) == 0);
 }
 
+boolean strPrefixLower(char *s, char *prefix)
+{
+  char *s_lower = getStringToLower(s);
+  boolean match = strPrefix(s_lower, prefix);
+
+  free(s_lower);
+
+  return match;
+}
+
+boolean strSuffixLower(char *s, char *suffix)
+{
+  char *s_lower = getStringToLower(s);
+  boolean match = strSuffix(s_lower, suffix);
+
+  free(s_lower);
+
+  return match;
+}
+
 
 /* ------------------------------------------------------------------------- */
 /* command line option handling functions                                    */