Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / silcstrutil.c
index 914adc98f58659a7cc739afed2a19dbec508827e..f13233e0aef2e173441f3476b92f3f3bea7d6a74 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2002 - 2007 Pekka Riikonen
+  Copyright (C) 2002 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   GNU General Public License for more details.
 
 */
-/* $Id$ */
 
-#include "silc.h"
-#include "silcstrutil.h"
+#include "silcruntime.h"
 
 /* Concatenates the `src' into `dest'.  If `src_len' is more than the
    size of the `dest' (minus NULL at the end) the `src' will be
@@ -249,23 +247,6 @@ char *silc_string_regex_combine(const char *string1, const char *string2)
   return tmp;
 }
 
-/* Matches the two strings and returns TRUE if the strings match. */
-
-int silc_string_regex_match(const char *regex, const char *string)
-{
-  SilcRegexStruct preg;
-  SilcBool ret;
-
-  if (!silc_regex_compile(&preg, regex, 0))
-    return FALSE;
-
-  ret = silc_regex_match(&preg, string, 0, NULL, 0);
-
-  silc_regex_free(&preg);
-
-  return ret;
-}
-
 /* Do regex match to the two strings `string1' and `string2'. If the
    `string2' matches the `string1' this returns TRUE. */