//
// author: Dan Lewis (dlewis@gmx.co.uk)
// (c) 2002
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System;
-
namespace System.Text.RegularExpressions {
[Serializable]
public static Match Empty {
get { return empty; }
}
-
+
+ [MonoTODO ("not thread-safe")]
public static Match Synchronized (Match inner)
{
+ if (inner == null)
+ throw new ArgumentNullException ("inner");
return inner; // FIXME need to sync on machine access
}
public virtual string Result (string replacement)
{
+ if (replacement == null)
+ throw new ArgumentNullException ("replacement");
+ if (replacement.Length == 0)
+ throw new NotSupportedException ();
+
return ReplacementEvaluator.Evaluate (replacement, this);
}