(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki_strings.ml,v 1.2 2004/12/01 13:55:55 rich Exp $
+ * $Id: cocanwiki_strings.ml,v 1.3 2006/03/27 16:43:44 rich Exp $
*
* 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
open ExtString
let string_contains substr str =
- try String.find str substr; true
+ try ignore (String.find str substr); true
with Invalid_string -> false
let string_of_char = String.make 1