OpenIDE.UI.RunCommandForm.matchPath C# (CSharp) 메소드

matchPath() 개인적인 정적인 메소드

private static matchPath ( string filter, string x ) : bool
filter string
x string
리턴 bool
        private static bool matchPath(string filter, string x)
        {
            if (filter.Length == 0)
                return true;
            if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX)
                return x.StartsWith(filter);
            else
                return x.ToLower().StartsWith(filter.ToLower());
        }