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

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

?? regex.c

?? GNU Sed GNU Sed GNU Sed
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* Extended regular expression matching and search library.
   Copyright (C) 1985, 1989-90 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program 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 General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */


/* To test, compile with -Dtest.  This Dtestable feature turns this into
   a self-contained program which reads a pattern, describes how it
   compiles, then reads a string and searches for it.
   
   On the other hand, if you compile with both -Dtest and -Dcanned you
   can run some tests we've already thought of.  */

/* AIX requires the alloca decl to be the first thing in the file. */
#ifdef __GNUC__
#define alloca __builtin_alloca
#else
#ifdef sparc
#include <alloca.h>
#else
#ifdef _AIX
#pragma alloca
#else
char *alloca ();
#endif
#endif
#endif

#ifdef emacs

/* The `emacs' switch turns on certain special matching commands
  that make sense only in emacs. */

#include "config.h"
#include "lisp.h"
#include "buffer.h"
#include "syntax.h"

#else  /* not emacs */

#if defined (USG) || defined (STDC_HEADERS)
#ifndef BSTRING
#include <string.h>
#define bcopy(s,d,n)	memcpy((d),(s),(n))
#define bcmp(s1,s2,n)	memcmp((s1),(s2),(n))
#define bzero(s,n)	memset((s),0,(n))
#endif
#endif

#ifdef STDC_HEADERS
#include <stdlib.h>
#else
char *malloc ();
char *realloc ();
#endif

/* Define the syntax stuff, so we can do the \<, \>, etc.  */

/* This must be nonzero for the wordchar and notwordchar pattern
   commands in re_match_2.  */
#ifndef Sword 
#define Sword 1
#endif

#define SYNTAX(c) re_syntax_table[c]


#ifdef SYNTAX_TABLE

char *re_syntax_table;

#else /* not SYNTAX_TABLE */

static char re_syntax_table[256];


static void
init_syntax_once ()
{
   register int c;
   static int done = 0;

   if (done)
     return;

   bzero (re_syntax_table, sizeof re_syntax_table);

   for (c = 'a'; c <= 'z'; c++)
     re_syntax_table[c] = Sword;

   for (c = 'A'; c <= 'Z'; c++)
     re_syntax_table[c] = Sword;

   for (c = '0'; c <= '9'; c++)
     re_syntax_table[c] = Sword;

   done = 1;
}

#endif /* SYNTAX_TABLE */
#endif /* emacs */

/* We write fatal error messages on standard error.  */
#include <stdio.h>

/* isalpha(3) etc. are used for the character classes.  */
#include <ctype.h>
/* Sequents are missing isgraph.  */
#ifndef isgraph
#define isgraph(c) (isprint((c)) && !isspace((c)))
#endif

/* Get the interface, including the syntax bits.  */
#include "regex.h"


/* These are the command codes that appear in compiled regular
   expressions, one per byte.  Some command codes are followed by
   argument bytes.  A command code can specify any interpretation
   whatsoever for its arguments.  Zero-bytes may appear in the compiled
   regular expression.
   
   The value of `exactn' is needed in search.c (search_buffer) in emacs.
   So regex.h defines a symbol `RE_EXACTN_VALUE' to be 1; the value of
   `exactn' we use here must also be 1.  */

enum regexpcode
  {
    unused=0,
    exactn=1, /* Followed by one byte giving n, then by n literal bytes.  */
    begline,  /* Fail unless at beginning of line.  */
    endline,  /* Fail unless at end of line.  */
    jump,     /* Followed by two bytes giving relative address to jump to.  */
    on_failure_jump,	 /* Followed by two bytes giving relative address of 
			    place to resume at in case of failure.  */
    finalize_jump,	 /* Throw away latest failure point and then jump to 
			    address.  */
    maybe_finalize_jump, /* Like jump but finalize if safe to do so.
			    This is used to jump back to the beginning
			    of a repeat.  If the command that follows
			    this jump is clearly incompatible with the
			    one at the beginning of the repeat, such that
			    we can be sure that there is no use backtracking
			    out of repetitions already completed,
			    then we finalize.  */
    dummy_failure_jump,  /* Jump, and push a dummy failure point. This 
			    failure point will be thrown away if an attempt 
                            is made to use it for a failure. A + construct 
                            makes this before the first repeat.  Also
                            use it as an intermediary kind of jump when
                            compiling an or construct.  */
    succeed_n,	 /* Used like on_failure_jump except has to succeed n times;
		    then gets turned into an on_failure_jump. The relative
                    address following it is useless until then.  The
                    address is followed by two bytes containing n.  */
    jump_n,	 /* Similar to jump, but jump n times only; also the relative
		    address following is in turn followed by yet two more bytes
                    containing n.  */
    set_number_at,	/* Set the following relative location to the
			   subsequent number.  */
    anychar,	 /* Matches any (more or less) one character.  */
    charset,     /* Matches any one char belonging to specified set.
		    First following byte is number of bitmap bytes.
		    Then come bytes for a bitmap saying which chars are in.
		    Bits in each byte are ordered low-bit-first.
		    A character is in the set if its bit is 1.
		    A character too large to have a bit in the map
		    is automatically not in the set.  */
    charset_not, /* Same parameters as charset, but match any character
                    that is not one of those specified.  */
    start_memory, /* Start remembering the text that is matched, for
		    storing in a memory register.  Followed by one
                    byte containing the register number.  Register numbers
                    must be in the range 0 through RE_NREGS.  */
    stop_memory, /* Stop remembering the text that is matched
		    and store it in a memory register.  Followed by
                    one byte containing the register number. Register
                    numbers must be in the range 0 through RE_NREGS.  */
    duplicate,   /* Match a duplicate of something remembered.
		    Followed by one byte containing the index of the memory 
                    register.  */
    before_dot,	 /* Succeeds if before point.  */
    at_dot,	 /* Succeeds if at point.  */
    after_dot,	 /* Succeeds if after point.  */
    begbuf,      /* Succeeds if at beginning of buffer.  */
    endbuf,      /* Succeeds if at end of buffer.  */
    wordchar,    /* Matches any word-constituent character.  */
    notwordchar, /* Matches any char that is not a word-constituent.  */
    wordbeg,	 /* Succeeds if at word beginning.  */
    wordend,	 /* Succeeds if at word end.  */
    wordbound,   /* Succeeds if at a word boundary.  */
    notwordbound,/* Succeeds if not at a word boundary.  */
    syntaxspec,  /* Matches any character whose syntax is specified.
		    followed by a byte which contains a syntax code,
                    e.g., Sword.  */
    notsyntaxspec /* Matches any character whose syntax differs from
                     that specified.  */
  };

 
/* Number of failure points to allocate space for initially,
   when matching.  If this number is exceeded, more space is allocated,
   so it is not a hard limit.  */

#ifndef NFAILURES
#define NFAILURES 80
#endif

#ifdef CHAR_UNSIGNED
#define SIGN_EXTEND_CHAR(c) ((c)>(char)127?(c)-256:(c)) /* for IBM RT */
#endif
#ifndef SIGN_EXTEND_CHAR
#define SIGN_EXTEND_CHAR(x) (x)
#endif
 

/* Store NUMBER in two contiguous bytes starting at DESTINATION.  */
#define STORE_NUMBER(destination, number)				\
  { (destination)[0] = (number) & 0377;					\
    (destination)[1] = (number) >> 8; }
  
/* Same as STORE_NUMBER, except increment the destination pointer to
   the byte after where the number is stored.  Watch out that values for
   DESTINATION such as p + 1 won't work, whereas p will.  */
#define STORE_NUMBER_AND_INCR(destination, number)			\
  { STORE_NUMBER(destination, number);					\
    (destination) += 2; }


/* Put into DESTINATION a number stored in two contingous bytes starting
   at SOURCE.  */
#define EXTRACT_NUMBER(destination, source)				\
  { (destination) = *(source) & 0377;					\
    (destination) += SIGN_EXTEND_CHAR (*(char *)((source) + 1)) << 8; }

/* Same as EXTRACT_NUMBER, except increment the pointer for source to
   point to second byte of SOURCE.  Note that SOURCE has to be a value
   such as p, not, e.g., p + 1. */
#define EXTRACT_NUMBER_AND_INCR(destination, source)			\
  { EXTRACT_NUMBER (destination, source);				\
    (source) += 2; }


/* Specify the precise syntax of regexps for compilation.  This provides
   for compatibility for various utilities which historically have
   different, incompatible syntaxes.
   
   The argument SYNTAX is a bit-mask comprised of the various bits
   defined in regex.h.  */

int
re_set_syntax (syntax)
  int syntax;
{
  int ret;

  ret = obscure_syntax;
  obscure_syntax = syntax;
  return ret;
}

/* Set by re_set_syntax to the current regexp syntax to recognize.  */
int obscure_syntax = 0;



/* Macros for re_compile_pattern, which is found below these definitions.  */

#define CHAR_CLASS_MAX_LENGTH  6

/* Fetch the next character in the uncompiled pattern, translating it if
   necessary.  */
#define PATFETCH(c)							\
  {if (p == pend) goto end_of_pattern;					\
  c = * (unsigned char *) p++;						\
  if (translate) c = translate[c]; }

/* Fetch the next character in the uncompiled pattern, with no
   translation.  */
#define PATFETCH_RAW(c)							\
 {if (p == pend) goto end_of_pattern;					\
  c = * (unsigned char *) p++; }

#define PATUNFETCH p--


/* If the buffer isn't allocated when it comes in, use this.  */
#define INIT_BUF_SIZE  28

/* Make sure we have at least N more bytes of space in buffer.  */
#define GET_BUFFER_SPACE(n)						\
  {								        \
    while (b - bufp->buffer + (n) >= bufp->allocated)			\
      EXTEND_BUFFER;							\
  }

/* Make sure we have one more byte of buffer space and then add CH to it.  */
#define BUFPUSH(ch)							\
  {									\
    GET_BUFFER_SPACE (1);						\
    *b++ = (char) (ch);							\
  }
  
/* Extend the buffer by twice its current size via reallociation and
   reset the pointers that pointed into the old allocation to point to
   the correct places in the new allocation.  If extending the buffer
   results in it being larger than 1 << 16, then flag memory exhausted.  */
#define EXTEND_BUFFER							\
  { char *old_buffer = bufp->buffer;					\
    if (bufp->allocated == (1L<<16)) goto too_big;			\
    bufp->allocated *= 2;						\
    if (bufp->allocated > (1L<<16)) bufp->allocated = (1L<<16);		\
    bufp->buffer = (char *) realloc (bufp->buffer, bufp->allocated);	\
    if (bufp->buffer == 0)						\
      goto memory_exhausted;						\
    b = (b - old_buffer) + bufp->buffer;				\
    if (fixup_jump)							\
      fixup_jump = (fixup_jump - old_buffer) + bufp->buffer;		\
    if (laststart)							\
      laststart = (laststart - old_buffer) + bufp->buffer;		\
    begalt = (begalt - old_buffer) + bufp->buffer;			\
    if (pending_exact)							\
      pending_exact = (pending_exact - old_buffer) + bufp->buffer;	\
  }

/* Set the bit for character C in a character set list.  */
#define SET_LIST_BIT(c)  (b[(c) / BYTEWIDTH] |= 1 << ((c) % BYTEWIDTH))

/* Get the next unsigned number in the uncompiled pattern.  */
#define GET_UNSIGNED_NUMBER(num) 					\
  { if (p != pend) 							\
      { 								\
        PATFETCH (c); 							\
	while (isdigit (c)) 						\
	  { 								\
	    if (num < 0) 						\
	       num = 0; 						\
            num = num * 10 + c - '0'; 					\
	    if (p == pend) 						\
	       break; 							\
	    PATFETCH (c); 						\
	  } 								\
        } 								\
  }

/* Subroutines for re_compile_pattern.  */
static void store_jump (), insert_jump (), store_jump_n (),
	    insert_jump_n (), insert_op_2 ();


/* re_compile_pattern takes a regular-expression string
   and converts it into a buffer full of byte commands for matching.

   PATTERN   is the address of the pattern string
   SIZE      is the length of it.
   BUFP	    is a  struct re_pattern_buffer *  which points to the info
	     on where to store the byte commands.
	     This structure contains a  char *  which points to the
	     actual space, which should have been obtained with malloc.
	     re_compile_pattern may use realloc to grow the buffer space.

   The number of bytes of commands can be found out by looking in
   the `struct re_pattern_buffer' that bufp pointed to, after
   re_compile_pattern returns. */

char *
re_compile_pattern (pattern, size, bufp)
     char *pattern;
     int size;
     struct re_pattern_buffer *bufp;
{
  register char *b = bufp->buffer;
  register char *p = pattern;
  char *pend = pattern + size;
  register unsigned c, c1;
  char *p1;
  unsigned char *translate = (unsigned char *) bufp->translate;

  /* Address of the count-byte of the most recently inserted `exactn'
     command.  This makes it possible to tell whether a new exact-match
     character can be added to that command or requires a new `exactn'
     command.  */
     
  char *pending_exact = 0;

  /* Address of the place where a forward-jump should go to the end of
     the containing expression.  Each alternative of an `or', except the
     last, ends with a forward-jump of this sort.  */

  char *fixup_jump = 0;

  /* Address of start of the most recently finished expression.
     This tells postfix * where to find the start of its operand.  */

  char *laststart = 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩免费观看高清完整版在线观看| 一区二区日韩av| 一区二区免费在线播放| 久久国产精品无码网站| 欧洲人成人精品| 国产精品视频免费看| 久久99国产精品久久99果冻传媒| 欧美影片第一页| 中文字幕一区三区| 国内精品视频666| 日韩专区欧美专区| 日韩av电影免费观看高清完整版在线观看| 粉嫩av一区二区三区粉嫩| 91精品国产91久久久久久一区二区| 中文字幕亚洲一区二区av在线| 99re66热这里只有精品3直播| 日韩欧美国产一区二区三区| 亚洲一区在线观看免费观看电影高清 | 国产精品白丝av| 日韩欧美123| 日本不卡123| 欧美一区二区三区不卡| 午夜国产精品一区| 欧美日韩亚洲高清一区二区| 亚洲国产一区在线观看| 欧美综合久久久| 夜夜嗨av一区二区三区网页| 色94色欧美sute亚洲线路二| 综合精品久久久| 91在线porny国产在线看| 亚洲欧美激情小说另类| 色老汉av一区二区三区| 亚洲另类春色国产| 欧美日韩三级在线| 日韩av不卡在线观看| 777奇米四色成人影色区| 蜜桃av噜噜一区二区三区小说| 日韩一区二区三区视频在线| 卡一卡二国产精品| 久久综合色天天久久综合图片| 韩国精品主播一区二区在线观看| 久久亚洲精品小早川怜子| 国产99久久久国产精品潘金 | 另类成人小视频在线| 91精品国产综合久久精品图片| 免费精品视频在线| 久久人人97超碰com| 不卡的av中国片| 一区二区三区欧美久久| 91精品中文字幕一区二区三区| 精品一区二区三区在线观看国产| 国产日韩高清在线| 国产日本欧洲亚洲| 秋霞国产午夜精品免费视频| 欧美国产精品专区| 国产精品一区二区三区网站| 一区二区三区91| 国产精品国产三级国产aⅴ入口 | 91福利国产成人精品照片| 国产毛片精品国产一区二区三区| 人人超碰91尤物精品国产| 亚洲一区二区3| 一区二区国产盗摄色噜噜| 国产精品久久久久精k8| 日本一二三不卡| 中文子幕无线码一区tr| 亚洲国产成人在线| 欧美激情综合网| 国产精品久久久久一区二区三区共| 久久午夜色播影院免费高清| 精品久久久久久久人人人人传媒| 日韩午夜在线观看视频| 欧美女孩性生活视频| 欧美日韩1234| 制服丝袜日韩国产| 日韩一区二区视频| 精品蜜桃在线看| 久久久国产综合精品女国产盗摄| 亚洲精品久久久久久国产精华液| 国精产品一区一区三区mba桃花| 日本成人在线视频网站| 亚欧色一区w666天堂| 亚洲一区电影777| 日韩成人dvd| 精品一区二区国语对白| 精品一区二区三区欧美| 国模少妇一区二区三区| 国产成a人无v码亚洲福利| 成人国产精品免费观看视频| 97久久精品人人做人人爽| 在线观看一区不卡| 日韩视频一区二区三区| 2020国产成人综合网| 中文字幕精品综合| 一区二区三区视频在线观看| 日韩成人免费看| 国产精品一卡二卡| 一本大道av伊人久久综合| 欧美日韩在线观看一区二区 | 成人一区二区三区中文字幕| 99久久99久久精品免费看蜜桃| 欧美优质美女网站| 日韩一区二区免费电影| 中文文精品字幕一区二区| 综合久久给合久久狠狠狠97色| 五月激情综合色| 国产一区二区福利| 91久久国产最好的精华液| 日韩午夜av一区| 国产精品传媒在线| 青青草视频一区| 99在线热播精品免费| 欧美一区中文字幕| 国产精品美女久久久久av爽李琼| 一区二区三区四区蜜桃| 久久99精品国产麻豆不卡| 色综合久久中文字幕综合网| 日韩欧美中文字幕制服| 亚洲人123区| 国产真实乱对白精彩久久| 在线视频观看一区| 欧美精品一区二区精品网| 怡红院av一区二区三区| 国内成人精品2018免费看| 在线看一区二区| 国产欧美一区二区三区在线看蜜臀| 亚洲品质自拍视频网站| 国产精品原创巨作av| 欧美肥妇bbw| 亚洲最新视频在线播放| 丁香桃色午夜亚洲一区二区三区| 欧美美女黄视频| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲欧美日韩国产综合在线| 老司机午夜精品99久久| 欧美色视频在线观看| 国产精品国产自产拍高清av| 蜜桃久久久久久久| 一本到高清视频免费精品| 国产午夜亚洲精品不卡| 欧美bbbbb| 在线播放欧美女士性生活| 亚洲精品视频一区| zzijzzij亚洲日本少妇熟睡| 2021国产精品久久精品| 久久国产婷婷国产香蕉| 欧美理论在线播放| 亚洲一区二区三区精品在线| www.欧美亚洲| 中文字幕在线一区二区三区| 国产在线精品免费av| 精品国产一区二区国模嫣然| 石原莉奈一区二区三区在线观看| 在线观看一区不卡| 亚洲黄色小说网站| 在线免费观看一区| 亚洲日本乱码在线观看| av一二三不卡影片| 国产精品久久久久久妇女6080 | 94-欧美-setu| 综合久久一区二区三区| eeuss影院一区二区三区| 国产精品久久久久久久久免费丝袜| 国产精品一区二区三区网站| 国产亚洲精品免费| 国产激情一区二区三区四区| 久久久久久免费网| 国产精品888| 中文av一区特黄| 成人av午夜影院| 亚洲精品国产视频| 欧美丝袜丝交足nylons图片| 亚洲成年人影院| 欧美一区二区三区视频免费| 美女精品自拍一二三四| 26uuu欧美| av亚洲产国偷v产偷v自拍| 一区二区三区四区国产精品| 欧美视频在线观看一区| 日韩不卡一二三区| 久久网站热最新地址| 成人激情免费视频| 亚洲欧美日韩国产手机在线 | 国产精品高潮久久久久无| 色综合久久天天| 亚洲mv大片欧洲mv大片精品| 日韩一区二区三| 国产精品亚洲视频| 亚洲欧美日韩国产中文在线| 7777精品久久久大香线蕉 | 日韩**一区毛片| 久久久久久久久99精品| 92国产精品观看| 水蜜桃久久夜色精品一区的特点| wwww国产精品欧美| 色美美综合视频| 国产在线一区二区| 一区二区在线电影| 精品国产制服丝袜高跟| 99re66热这里只有精品3直播|