亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? re.java

?? java寫的多功能文件編輯器
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* *  gnu/regexp/RE.java *  Copyright (C) 1998-2001 Wes Biggs * *  This library is free software; you can redistribute it and/or modify *  it under the terms of the GNU Lesser General Public License as published *  by the Free Software Foundation; either version 2.1 of the License, or *  (at your option) any later version. * *  This library is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU Lesser General Public License for more details. * *  You should have received a copy of the GNU Lesser General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */package gnu.regexp;import java.io.InputStream;import java.io.Reader;import java.io.Serializable;import java.util.Locale;import java.util.PropertyResourceBundle;import java.util.ResourceBundle;import java.util.Vector;class IntPair implements Serializable {  public int first, second;}class CharUnit implements Serializable {  public char ch;  public boolean bk;}/** * RE provides the user interface for compiling and matching regular * expressions. * <P> * A regular expression object (class RE) is compiled by constructing it * from a String, StringBuffer or character array, with optional  * compilation flags (below) * and an optional syntax specification (see RESyntax; if not specified, * <code>RESyntax.RE_SYNTAX_PERL5</code> is used). * <P> * Various methods attempt to match input text against a compiled * regular expression.  These methods are: * <LI><code>isMatch</code>: returns true if the input text in its entirety * matches the regular expression pattern. * <LI><code>getMatch</code>: returns the first match found in the input text, * or null if no match is found. * <LI><code>getAllMatches</code>: returns an array of all non-overlapping  * matches found in the input text.  If no matches are found, the array is * zero-length. * <LI><code>substitute</code>: substitute the first occurence of the pattern * in the input text with a replacement string (which may include * metacharacters $0-$9, see REMatch.substituteInto). * <LI><code>substituteAll</code>: same as above, but repeat for each match * before returning. * <LI><code>getMatchEnumeration</code>: returns an REMatchEnumeration object * that allows iteration over the matches (see REMatchEnumeration for some * reasons why you may want to do this instead of using <code>getAllMatches</code>. * <P> * * These methods all have similar argument lists.  The input can be a * String, a character array, a StringBuffer, a Reader or an * InputStream of some sort.  Note that when using a Reader or * InputStream, the stream read position cannot be guaranteed after * attempting a match (this is not a bug, but a consequence of the way * regular expressions work).  Using an REMatchEnumeration can * eliminate most positioning problems. * * <P> * * The optional index argument specifies the offset from the beginning * of the text at which the search should start (see the descriptions * of some of the execution flags for how this can affect positional * pattern operators).  For a Reader or InputStream, this means an * offset from the current read position, so subsequent calls with the * same index argument on a Reader or an InputStream will not * necessarily access the same position on the stream, whereas * repeated searches at a given index in a fixed string will return * consistent results. * * <P> * You can optionally affect the execution environment by using a * combination of execution flags (constants listed below). *  * <P> * All operations on a regular expression are performed in a * thread-safe manner. * * @author <A HREF="mailto:wes@cacas.org">Wes Biggs</A> * @version 1.1.4-dev, to be released */public class RE extends REToken {  // This String will be returned by getVersion()  private static final String VERSION = "1.1.4-dev";  // The localized strings are kept in a separate file  private static ResourceBundle messages = PropertyResourceBundle.getBundle("gnu/regexp/MessagesBundle", Locale.getDefault());  // These are, respectively, the first and last tokens in our linked list  // If there is only one token, firstToken == lastToken  private REToken firstToken, lastToken;  // This is the number of subexpressions in this regular expression,  // with a minimum value of zero.  Returned by getNumSubs()  private int numSubs;    /** Minimum length, in characters, of any possible match. */    private int minimumLength;  /**   * Compilation flag. Do  not  differentiate  case.   Subsequent   * searches  using  this  RE will be case insensitive.   */  public static final int REG_ICASE = 2;  /**   * Compilation flag. The match-any-character operator (dot)   * will match a newline character.  When set this overrides the syntax   * bit RE_DOT_NEWLINE (see RESyntax for details).  This is equivalent to   * the "/s" operator in Perl.   */  public static final int REG_DOT_NEWLINE = 4;  /**   * Compilation flag. Use multiline mode.  In this mode, the ^ and $   * anchors will match based on newlines within the input. This is   * equivalent to the "/m" operator in Perl.   */  public static final int REG_MULTILINE = 8;  /**   * Execution flag.   * The match-beginning operator (^) will not match at the beginning   * of the input string. Useful for matching on a substring when you   * know the context of the input is such that position zero of the   * input to the match test is not actually position zero of the text.   * <P>   * This example demonstrates the results of various ways of matching on   * a substring.   * <P>   * <CODE>   * String s = "food bar fool";<BR>   * RE exp = new RE("^foo.");<BR>   * REMatch m0 = exp.getMatch(s);<BR>   * REMatch m1 = exp.getMatch(s.substring(8));<BR>   * REMatch m2 = exp.getMatch(s.substring(8),0,RE.REG_NOTBOL); <BR>   * REMatch m3 = exp.getMatch(s,8);                            <BR>   * REMatch m4 = exp.getMatch(s,8,RE.REG_ANCHORINDEX);         <BR>   * <P>   * // Results:<BR>   * //  m0 = "food"<BR>   * //  m1 = "fool"<BR>   * //  m2 = null<BR>   * //  m3 = null<BR>   * //  m4 = "fool"<BR>   * </CODE>   */  public static final int REG_NOTBOL = 16;  /**   * Execution flag.   * The match-end operator ($) does not match at the end   * of the input string. Useful for matching on substrings.   */  public static final int REG_NOTEOL = 32;  /**   * Execution flag.   * When a match method is invoked that starts matching at a non-zero   * index into the input, treat the input as if it begins at the index   * given.  The effect of this flag is that the engine does not "see"   * any text in the input before the given index.  This is useful so   * that the match-beginning operator (^) matches not at position 0   * in the input string, but at the position the search started at   * (based on the index input given to the getMatch function).  See   * the example under REG_NOTBOL.  It also affects the use of the \&lt;   * and \b operators.   */  public static final int REG_ANCHORINDEX = 64;  /**   * Execution flag.   * The substitute and substituteAll methods will not attempt to   * interpolate occurrences of $1-$9 in the replacement text with   * the corresponding subexpressions.  For example, you may want to   * replace all matches of "one dollar" with "$1".   */  public static final int REG_NO_INTERPOLATE = 128;  /** Returns a string representing the version of the gnu.regexp package. */  public static final String version() {    return VERSION;  }  // Retrieves a message from the ResourceBundle  static final String getLocalizedMessage(String key) {    return messages.getString(key);  }  /**   * Constructs a regular expression pattern buffer without any compilation   * flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).   *   * @param pattern A regular expression pattern, in the form of a String,   *   StringBuffer or char[].  Other input types will be converted to   *   strings using the toString() method.   * @exception REException The input pattern could not be parsed.   * @exception NullPointerException The pattern was null.   */  public RE(Object pattern) throws REException {    this(pattern,0,RESyntax.RE_SYNTAX_PERL5,0,0);  }  /**   * Constructs a regular expression pattern buffer using the specified   * compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).   *   * @param pattern A regular expression pattern, in the form of a String,   *   StringBuffer, or char[].  Other input types will be converted to   *   strings using the toString() method.   * @param cflags The logical OR of any combination of the compilation flags listed above.   * @exception REException The input pattern could not be parsed.   * @exception NullPointerException The pattern was null.   */  public RE(Object pattern, int cflags) throws REException {    this(pattern,cflags,RESyntax.RE_SYNTAX_PERL5,0,0);  }  /**   * Constructs a regular expression pattern buffer using the specified   * compilation flags and regular expression syntax.   *   * @param pattern A regular expression pattern, in the form of a String,   *   StringBuffer, or char[].  Other input types will be converted to   *   strings using the toString() method.   * @param cflags The logical OR of any combination of the compilation flags listed above.   * @param syntax The type of regular expression syntax to use.   * @exception REException The input pattern could not be parsed.   * @exception NullPointerException The pattern was null.   */  public RE(Object pattern, int cflags, RESyntax syntax) throws REException {    this(pattern,cflags,syntax,0,0);  }  // internal constructor used for alternation  private RE(REToken first, REToken last,int subs, int subIndex, int minLength) {    super(subIndex);    firstToken = first;    lastToken = last;    numSubs = subs;    minimumLength = minLength;    addToken(new RETokenEndSub(subIndex));  }  private RE(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {    super(myIndex); // Subexpression index of this token.    initialize(patternObj, cflags, syntax, myIndex, nextSub);  }    // For use by subclasses    protected RE() { super(0); }    // The meat of construction  protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {      char[] pattern;    if (patternObj instanceof String) {      pattern = ((String) patternObj).toCharArray();    } else if (patternObj instanceof char[]) {      pattern = (char[]) patternObj;    } else if (patternObj instanceof StringBuffer) {      pattern = new char [((StringBuffer) patternObj).length()];      ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0);    } else {	pattern = patternObj.toString().toCharArray();    }    int pLength = pattern.length;    numSubs = 0; // Number of subexpressions in this token.    Vector branches = null;    // linked list of tokens (sort of -- some closed loops can exist)    firstToken = lastToken = null;    // Precalculate these so we don't pay for the math every time we    // need to access them.    boolean insens = ((cflags & REG_ICASE) > 0);    // Parse pattern into tokens.  Does anyone know if it's more efficient    // to use char[] than a String.charAt()?  I'm assuming so.    // index tracks the position in the char array    int index = 0;    // this will be the current parse character (pattern[index])    CharUnit unit = new CharUnit();    // This is used for {x,y} calculations    IntPair minMax = new IntPair();    // Buffer a token so we can create a TokenRepeated, etc.    REToken currentToken = null;    char ch;    while (index < pLength) {      // read the next character unit (including backslash escapes)      index = getCharUnit(pattern,index,unit);      // ALTERNATION OPERATOR      //  \| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT)      //  not available if RE_LIMITED_OPS is set      // TODO: the '\n' literal here should be a test against REToken.newline,      // which unfortunately may be more than a single character.      if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk))	     || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !unit.bk) )	   && !syntax.get(RESyntax.RE_LIMITED_OPS)) {	// make everything up to here be a branch. create vector if nec.	addToken(currentToken);	RE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength);	minimumLength = 0;	if (branches == null) {	    branches = new Vector();	}	branches.addElement(theBranch);	firstToken = lastToken = currentToken = null;      }            // INTERVAL OPERATOR:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
337p日本欧洲亚洲大胆色噜噜| 日韩午夜在线影院| 午夜久久久久久| 久久青草欧美一区二区三区| 在线免费不卡电影| 国产91色综合久久免费分享| 性做久久久久久免费观看| 国产清纯白嫩初高生在线观看91 | 在线亚洲免费视频| 美腿丝袜在线亚洲一区| 亚洲精品菠萝久久久久久久| 国产亚洲精品久| 欧美一区二区在线观看| 91原创在线视频| 国产在线一区二区综合免费视频| 一区二区欧美国产| 中文字幕亚洲精品在线观看| 欧美精品一区二区三区视频| 欧美另类久久久品| 91麻豆国产精品久久| 国产成人午夜高潮毛片| 久久成人久久爱| 日日骚欧美日韩| 亚洲综合一区在线| 中文字幕一区日韩精品欧美| 久久精品免费在线观看| 日韩欧美一级精品久久| 欧美日韩国产色站一区二区三区| 99麻豆久久久国产精品免费| 国产成a人亚洲| 激情欧美一区二区三区在线观看| 男女男精品视频网| 日韩主播视频在线| 亚欧色一区w666天堂| 亚洲国产中文字幕| 亚洲免费成人av| 亚洲欧美日韩一区二区三区在线观看 | 国产精品原创巨作av| 久久国产精品72免费观看| 青青草91视频| 日韩av中文在线观看| 日韩不卡一区二区三区| 天天影视网天天综合色在线播放| 一区2区3区在线看| 亚洲国产欧美日韩另类综合| 亚洲午夜羞羞片| 亚洲国产乱码最新视频 | 国产成人精品免费| 国产精品系列在线播放| 国产在线播放一区| 国产.欧美.日韩| 成人激情校园春色| 97se亚洲国产综合自在线不卡 | 国产精品123区| 国产91对白在线观看九色| 国产sm精品调教视频网站| 成人做爰69片免费看网站| av电影在线观看一区| 99国产精品视频免费观看| 色一情一乱一乱一91av| 欧美天天综合网| 日韩欧美国产一区在线观看| 精品国精品国产| 中文字幕成人av| 亚洲精品水蜜桃| 日韩在线a电影| 国产在线日韩欧美| www.亚洲激情.com| 欧美亚洲一区二区在线| 日韩欧美美女一区二区三区| 久久久久久久久久久99999| 1024成人网色www| 亚洲制服丝袜在线| 久久99热99| hitomi一区二区三区精品| 欧美亚洲国产一区二区三区va| 日韩视频在线你懂得| 国产人成亚洲第一网站在线播放| 亚洲综合在线观看视频| 开心九九激情九九欧美日韩精美视频电影| 国产馆精品极品| 欧美色网一区二区| 国产日韩欧美一区二区三区综合 | 亚洲一区二区三区美女| 九一九一国产精品| 91网站视频在线观看| 91精品黄色片免费大全| 国产精品网站导航| 日日摸夜夜添夜夜添精品视频| 国产露脸91国语对白| 欧美中文一区二区三区| 久久久www成人免费毛片麻豆| 亚洲国产精品天堂| 国产成人在线网站| 欧美精品欧美精品系列| 国产精品麻豆久久久| 奇米888四色在线精品| 97精品国产97久久久久久久久久久久| 欧美一区二区高清| 亚洲免费av网站| 国产成人自拍网| 欧美高清视频不卡网| 国产精品久久久久久户外露出| 热久久国产精品| 在线观看免费亚洲| 欧美国产视频在线| 精品一区二区三区免费播放 | 日韩一区二区三区免费观看| 中文字幕字幕中文在线中不卡视频| 男女男精品视频网| 欧美私人免费视频| 综合网在线视频| 福利一区在线观看| 精品美女被调教视频大全网站| 亚洲午夜日本在线观看| 成人av免费在线播放| 久久久久久夜精品精品免费| 美女视频黄免费的久久 | 国产欧美精品日韩区二区麻豆天美| 亚洲超丰满肉感bbw| 色婷婷精品久久二区二区蜜臂av | 亚洲成人黄色影院| 91久久线看在观草草青青| 18涩涩午夜精品.www| 国产精品影视网| 久久―日本道色综合久久| 久久99精品国产| 日韩欧美资源站| 日韩黄色在线观看| 91精品国产全国免费观看| 日韩中文字幕区一区有砖一区 | 色94色欧美sute亚洲13| 中文字幕一区av| av亚洲精华国产精华| 国产精品对白交换视频| 成人视屏免费看| 国产精品色在线观看| 成人白浆超碰人人人人| 日韩一区有码在线| 91在线播放网址| 亚洲一区二区三区三| 欧美三级在线播放| 日韩在线一二三区| 精品久久国产字幕高潮| 精品一区二区免费在线观看| 精品99一区二区| 粉嫩aⅴ一区二区三区四区| 国产精品久久久久一区二区三区| 波多野结衣在线aⅴ中文字幕不卡| 国产精品久久久久久久久免费桃花 | 久久精品999| 久久久.com| 丁香亚洲综合激情啪啪综合| 欧美韩日一区二区三区| 99久久精品免费精品国产| 一区二区三区在线播放| 69久久99精品久久久久婷婷| 久久电影网站中文字幕| 国产女人18毛片水真多成人如厕| 大桥未久av一区二区三区中文| 亚洲三级在线看| 6080午夜不卡| 国产乱码精品一品二品| 日韩美女啊v在线免费观看| 欧美伊人久久大香线蕉综合69| 奇米影视在线99精品| 国产视频在线观看一区二区三区 | 美美哒免费高清在线观看视频一区二区| 日韩午夜av电影| 成人精品gif动图一区| 亚洲综合一区在线| 欧美成va人片在线观看| 成人一区二区三区在线观看| 玉米视频成人免费看| 日韩欧美综合一区| 91在线观看免费视频| 青草av.久久免费一区| 日本一区二区电影| 欧美日韩免费在线视频| 国内精品国产成人国产三级粉色| 国产精品久久久久国产精品日日| 欧美在线视频全部完| 国产一区不卡精品| 一区二区三区国产豹纹内裤在线| 日韩精品中文字幕在线一区| 成人久久18免费网站麻豆| 亚洲成国产人片在线观看| 久久久久久麻豆| 欧美三级视频在线| 成人av资源在线观看| 蜜桃免费网站一区二区三区| 国产精品麻豆网站| 精品免费国产二区三区| 欧美色涩在线第一页| 国产成人精品1024| 麻豆精品一区二区| 亚洲一二三四久久| 国产欧美精品一区二区三区四区| 欧美一卡二卡三卡| 欧美在线观看视频在线|