⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wildcardmatcher.java

📁 dgbas公文管理核心java源码
💻 JAVA
字号:
package com.jasson.common;
/**
 * <pre>
 * This class if part of my toolkit package.
 *
 * This class provides a method for the programmar to test whether a file matches a wildcard.
 *
 * For he who is familiar with dos, he will probably refer to files using wildcard, that is file names
 * like "*.bat","a?b.*",etc, this class gives you a method to test if they are match.
 *
 * A "*" can match any length of string including an empty string,
 * A "?" can match any single char.
 *
 * So
 * "abc"    &   "a*"        matches
 * "abc"    &   "*"         matches
 * "abc"    &   "b*"        doesn't match
 * "abcd"   &   "a*d"       matches
 * "abcd"   &   "a??d"      matches
 * ......
 *
 * Title: 硄皌才ㄏノ
 * Description:
 * Copyright:    Copyright (c) 2003
 * Company:      wingroup
 * @author jarrywen
 * @version 1.0
 */

public class WildcardMatcher {

    /**
     * Tag to indicate if the strings should be compared case sensitive or not.
     */
    private static boolean ignoreCase=false;

    /**
     * Empty construct, since all the methods are static, you don't have to make an object of this class,
     * and thus I hide the construtor in private.
     */
    public WildcardMatcher() {}

    /**
     * ㄧ计

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -