C# Class Spring.Util.PatternMatchUtils

Utility methods for simple pattern matching, in particular for Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles.
Show file Open project: spring-projects/spring-net

Public Methods

Method Description
SimpleMatch ( System pattern, System str ) : bool

Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.

Method Details

SimpleMatch() public static method

Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
public static SimpleMatch ( System pattern, System str ) : bool
pattern System the pattern to match against ///
str System the String to match ///
return bool