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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? affixmgr.cxx

?? 管理項(xiàng)目進(jìn)度工具的原代碼
?? CXX
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
         }

         // now clean up by adding smart search termination strings:
         // if you are already a superset of the previous prefix
         // but not a subset of the next, search can end here
         // so set NextNE properly

         ptr = (PfxEntry *) pStart[i];
         for (; ptr != NULL; ptr = ptr->getNext()) {
	     PfxEntry * nptr = ptr->getNext();
             PfxEntry * mptr = NULL;
             for (; nptr != NULL; nptr = nptr->getNext()) {
	         if (! isSubset(ptr->getKey(),nptr->getKey())) break;
                 mptr = nptr;
             }
             if (mptr) mptr->setNextNE(NULL);
         }
    }
    return 0;
}



// reinitialize the SfxEntry links NextEQ and NextNE to speed searching
// using the idea of leading subsets this time
int AffixMgr::process_sfx_order()
{
    SfxEntry* ptr;

    // loop through each prefix list starting point
    for (int i=1; i < SETSIZE; i++) {

         ptr = (SfxEntry *) sStart[i];

         // look through the remainder of the list
         //  and find next entry with affix that 
         // the current one is not a subset of
         // mark that as destination for NextNE
         // use next in list that you are a subset
         // of as NextEQ

         for (; ptr != NULL; ptr = ptr->getNext()) {
	     SfxEntry * nptr = ptr->getNext();
             for (; nptr != NULL; nptr = nptr->getNext()) {
	         if (! isSubset(ptr->getKey(),nptr->getKey())) break;
             }
             ptr->setNextNE(nptr);
             ptr->setNextEQ(NULL);
             if ((ptr->getNext()) && isSubset(ptr->getKey(),(ptr->getNext())->getKey())) 
                 ptr->setNextEQ(ptr->getNext());
         }


         // now clean up by adding smart search termination strings:
         // if you are already a superset of the previous suffix
         // but not a subset of the next, search can end here
         // so set NextNE properly

         ptr = (SfxEntry *) sStart[i];
         for (; ptr != NULL; ptr = ptr->getNext()) {
	     SfxEntry * nptr = ptr->getNext();
             SfxEntry * mptr = NULL;
             for (; nptr != NULL; nptr = nptr->getNext()) {
	         if (! isSubset(ptr->getKey(),nptr->getKey())) break;
                 mptr = nptr;
             }
             if (mptr) mptr->setNextNE(NULL);
         }
    }
    return 0;
}



// takes aff file condition string and creates the
// conds array - please see the appendix at the end of the
// file affentry.cxx which describes what is going on here
// in much more detail

void AffixMgr::encodeit(struct affentry * ptr, char * cs)
{
  unsigned char c;
  int i, j, k;
  unsigned char mbr[MAXLNLEN];

  // now clear the conditions array */
  for (i=0;i<SETSIZE;i++) ptr->conds[i] = (unsigned char) 0;

  // now parse the string to create the conds array */
  int nc = strlen(cs);
  int neg = 0;   // complement indicator
  int grp = 0;   // group indicator
  int n = 0;     // number of conditions
  int ec = 0;    // end condition indicator
  int nm = 0;    // number of member in group

  // if no condition just return
  if (strcmp(cs,".")==0) {
    ptr->numconds = 0;
    return;
  }

  i = 0;
  while (i < nc) {
    c = *((unsigned char *)(cs + i));

    // start group indicator
    if (c == '[') {
       grp = 1;
       c = 0;
    }

    // complement flag
    if ((grp == 1) && (c == '^')) {
       neg = 1;
       c = 0;
    }

    // end goup indicator
    if (c == ']') {
       ec = 1;
       c = 0;
    }

    // add character of group to list
    if ((grp == 1) && (c != 0)) {
      *(mbr + nm) = c;
      nm++;
      c = 0;
    }

    // end of condition 
    if (c != 0) {
       ec = 1;
    }

    
    if (ec) {
      if (grp == 1) {
        if (neg == 0) {
          // set the proper bits in the condition array vals for those chars
	  for (j=0;j<nm;j++) {
	     k = (unsigned int) mbr[j];
             ptr->conds[k] = ptr->conds[k] | (1 << n);
          }
	} else {
	  // complement so set all of them and then unset indicated ones
	   for (j=0;j<SETSIZE;j++) ptr->conds[j] = ptr->conds[j] | (1 << n);
	   for (j=0;j<nm;j++) {
	     k = (unsigned int) mbr[j];
             ptr->conds[k] = ptr->conds[k] & ~(1 << n);
	   }
        }
        neg = 0;
        grp = 0;   
        nm = 0;
      } else {
         // not a group so just set the proper bit for this char
         // but first handle special case of . inside condition
         if (c == '.') {
	    // wild card character so set them all
            for (j=0;j<SETSIZE;j++) ptr->conds[j] = ptr->conds[j] | (1 << n);
         } else {  
	    ptr->conds[(unsigned int) c] = ptr->conds[(unsigned int)c] | (1 << n);
         }
      }
      n++;
      ec = 0;
    }


    i++;
  }
  ptr->numconds = n;
  return;
}


// check word for prefixes
struct hentry * AffixMgr::prefix_check (const char * word, int len)
{
    struct hentry * rv= NULL;
 
    // first handle the special case of 0 length prefixes
    PfxEntry * pe = (PfxEntry *) pStart[0];
    while (pe) {
       rv = pe->check(word,len);
       if (rv) return rv;
       pe = pe->getNext();
    }
  
    // now handle the general case
    unsigned char sp = *((const unsigned char *)word);
    PfxEntry * pptr = (PfxEntry *)pStart[sp];

    while (pptr) {
        if (isSubset(pptr->getKey(),word)) {
	     rv = pptr->check(word,len);
             if (rv) return rv;
             pptr = pptr->getNextEQ();
        } else {
	     pptr = pptr->getNextNE();
        }
    }
    
    return NULL;
}

// check if compound word is correctly spelled
struct hentry * AffixMgr::compound_check (const char * word, int len, char compound_flag)
{
    int i;
    struct hentry * rv= NULL;
    char * st;
    char ch;
    
    // handle case of string too short to be a piece of a compound word 
    if (len < cpdmin) return NULL;

    st = mystrdup(word);
    
    for (i=cpdmin; i < (len - (cpdmin-1)); i++) {

        ch = st[i];
	st[i] = '\0';

	rv = lookup(st);
        if (!rv) rv = affix_check(st,i);

	if ((rv) && (TESTAFF(rv->astr, compound_flag, rv->alen))) {
	    rv = lookup((word+i));
	    if ((rv) && (TESTAFF(rv->astr, compound_flag, rv->alen))) {
		free(st);
		return rv;
	    }
	    rv = affix_check((word+i),strlen(word+i));
	    if ((rv) && (TESTAFF(rv->astr, compound_flag, rv->alen))) {
		free(st);
		return rv;
	    }
	    rv = compound_check((word+i),strlen(word+i),compound_flag); 
	    if (rv) {
		free(st);
		return rv;
	    }
	    
	}
        st[i] = ch;
    }
    free(st);
    return NULL;
}    



// check word for suffixes
struct hentry * AffixMgr::suffix_check (const char * word, int len, 
                       int sfxopts, AffEntry * ppfx)
{
    struct hentry * rv = NULL;

    // first handle the special case of 0 length suffixes
    SfxEntry * se = (SfxEntry *) sStart[0];
    while (se) {
       rv = se->check(word,len, sfxopts, ppfx);
       if (rv) return rv;
       se = se->getNext();
    }
  
    // now handle the general case
    unsigned char sp = *((const unsigned char *)(word + len - 1));


    SfxEntry * sptr = (SfxEntry *) sStart[sp];

    while (sptr) {
        if (isRevSubset(sptr->getKey(),(word+len-1), len)) {
	     rv = sptr->check(word,len, sfxopts, ppfx);
             if (rv) {
                  return rv;
             }
             sptr = sptr->getNextEQ();
        } else {
	     sptr = sptr->getNextNE();
        }
    }
    return NULL;
}



// check if word with affixes is correctly spelled
struct hentry * AffixMgr::affix_check (const char * word, int len)
{
    struct hentry * rv= NULL;

    // check all prefixes (also crossed with suffixes if allowed) 
    rv = prefix_check(word, len);
    if (rv) return rv;

    // if still not found check all suffixes
    rv = suffix_check(word, len, 0, NULL);
    return rv;
}


int AffixMgr::expand_rootword(struct guessword * wlst, int maxn, 
                       const char * ts, int wl, const char * ap, int al)
{

    int nh=0;

    // first add root word to list

    if (nh < maxn) {
       wlst[nh].word = mystrdup(ts);
       wlst[nh].allow = (1 == 0);
       nh++;
    }

    // handle suffixes
    for (int i = 0; i < al; i++) {
       unsigned char c = (unsigned char) ap[i];
       SfxEntry * sptr = (SfxEntry *)sFlag[c];
       while (sptr) {
	 char * newword = sptr->add(ts, wl);
         if (newword) {
           if (nh < maxn) {
	      wlst[nh].word = newword;
              wlst[nh].allow = sptr->allowCross();
              nh++;
	   } else {
	      free(newword);
           }
	 }
         sptr = (SfxEntry *)sptr ->getFlgNxt();
       }
    }

    int n = nh;

    // handle cross products of prefixes and suffixes
    for (int j=1;j<n ;j++)
       if (wlst[j].allow) {
          for (int k = 0; k < al; k++) {
             unsigned char c = (unsigned char) ap[k];
             PfxEntry * cptr = (PfxEntry *) pFlag[c];
             while (cptr) {
                if (cptr->allowCross()) {
	            int l1 = strlen(wlst[j].word);
	            char * newword = cptr->add(wlst[j].word, l1);
                    if (newword) {
		       if (nh < maxn) {
	                  wlst[nh].word = newword;
                          wlst[nh].allow = cptr->allowCross();
                          nh++;
		       } else {
			  free(newword);
                       }
	            }
                }
                cptr = (PfxEntry *)cptr ->getFlgNxt();
             }
	  }
       }


    // now handle pure prefixes
    for (int m = 0; m < al; m ++) {
       unsigned char c = (unsigned char) ap[m];
       PfxEntry * ptr = (PfxEntry *) pFlag[c];
       while (ptr) {
	 char * newword = ptr->add(ts, wl);
         if (newword) {
	     if (nh < maxn) {
	        wlst[nh].word = newword;
                wlst[nh].allow = ptr->allowCross();
                nh++;
             } else {
	        free(newword);
	     } 
	 }
         ptr = (PfxEntry *)ptr ->getFlgNxt();
       }
    }

    return nh;
}


// return length of replacing table
int AffixMgr::get_numrep()
{
  return numrep;
}

// return replacing table
struct replentry * AffixMgr::get_reptable()
{
  if (! reptable ) return NULL;
  return reptable;
}


// return length of character map table
int AffixMgr::get_nummap()
{
  return nummap;
}

// return character map table
struct mapentry * AffixMgr::get_maptable()
{
  if (! maptable ) return NULL;
  return maptable;
}

// return text encoding of dictionary
char * AffixMgr::get_encoding()
{
  if (! encoding ) {
      encoding = mystrdup("ISO8859-1");
  }
  return mystrdup(encoding);
}


// return the preferred try string for suggestions
char * AffixMgr::get_try_string()
{
  if (! trystring ) return NULL;
  return mystrdup(trystring);
}

// return the compound words control flag
char * AffixMgr::get_compound()

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲人成网站| 激情综合一区二区三区| 欧美片网站yy| 日韩精品乱码av一区二区| 色婷婷久久综合| 日韩精品一二区| 日韩一区二区不卡| 日本aⅴ亚洲精品中文乱码| 国产乱码字幕精品高清av| 欧美色图免费看| 韩国女主播成人在线| 欧美精品一区二区久久婷婷| 国产精品888| 亚洲专区一二三| 国产精品毛片a∨一区二区三区| www.欧美亚洲| 日韩黄色免费电影| 欧美韩国日本不卡| 日韩欧美美女一区二区三区| 本田岬高潮一区二区三区| 午夜精品久久久久久久久久| 久久久美女毛片| 国产日韩精品一区二区浪潮av | 岛国精品在线观看| 国产色产综合色产在线视频| 91女厕偷拍女厕偷拍高清| 亚洲电影一级片| 自拍偷拍欧美精品| 亚洲欧洲一区二区在线播放| 国产日韩欧美精品一区| 欧美日韩精品一区二区在线播放| 97久久久精品综合88久久| 大尺度一区二区| 国产尤物一区二区| 亚洲成年人网站在线观看| 精品不卡在线视频| 欧美成人精品3d动漫h| 国产精品白丝jk黑袜喷水| 日韩福利电影在线| 日韩和欧美的一区| 精品无人码麻豆乱码1区2区 | 欧美日韩成人高清| 欧美日韩色一区| 日韩欧美自拍偷拍| 欧美极品另类videosde| 欧美一级二级三级蜜桃| 欧美吻胸吃奶大尺度电影| 欧美日韩一区在线| 久久久99精品久久| 亚洲成a人片综合在线| 男女激情视频一区| 99精品久久免费看蜜臀剧情介绍| 色一情一乱一乱一91av| 日韩午夜中文字幕| 一区二区中文视频| 日本亚洲天堂网| 风间由美中文字幕在线看视频国产欧美| 久久成人久久爱| 成人av网址在线| 日韩视频免费观看高清在线视频| 日韩视频一区二区| 久久久久久亚洲综合| 综合自拍亚洲综合图不卡区| 另类小说综合欧美亚洲| 成人精品小蝌蚪| 7777精品伊人久久久大香线蕉| 欧美精品一卡二卡| 亚洲欧洲成人精品av97| 久久99国产精品免费网站| eeuss影院一区二区三区| 欧洲另类一二三四区| 久久综合色天天久久综合图片| 18涩涩午夜精品.www| 国产乱国产乱300精品| 欧美日韩成人综合天天影院| 亚洲欧美色一区| 国产.欧美.日韩| 亚洲你懂的在线视频| 国产ts人妖一区二区| 中文字幕高清不卡| 午夜av区久久| 欧美人与z0zoxxxx视频| 亚洲成av人片在线观看| 91精品综合久久久久久| 麻豆精品精品国产自在97香蕉| 精品国产百合女同互慰| 成人精品电影在线观看| 亚洲视频在线一区观看| 色综合夜色一区| 一区二区三区电影在线播| 国产91露脸合集magnet| 综合久久综合久久| 在线播放中文一区| 国产一区二区三区四| 国产精品拍天天在线| 91黄色激情网站| 亚洲狠狠爱一区二区三区| 日韩精品专区在线影院重磅| 国产一区二区三区四区在线观看| 久久精品夜色噜噜亚洲a∨| 91农村精品一区二区在线| 日本中文一区二区三区| 亚洲欧洲韩国日本视频| 日韩美女视频一区二区在线观看| www.99精品| 福利一区在线观看| 福利一区二区在线观看| 亚洲午夜国产一区99re久久| 欧美一级片在线看| 极品尤物av久久免费看| 亚洲国产成人porn| 亚洲国产精品嫩草影院| 亚洲乱码国产乱码精品精小说| 欧美精品一区二区精品网| 欧美日韩久久久一区| 欧美在线不卡一区| 成人av网站大全| 亚洲欧美成aⅴ人在线观看| 国产欧美日韩精品一区| 国产色综合久久| 国产精品久久综合| 中文字幕字幕中文在线中不卡视频| 中文字幕日韩一区| 亚洲精品欧美激情| 天堂在线一区二区| 日本伊人午夜精品| 国产一区视频导航| 高清不卡一区二区| 国产在线精品一区二区不卡了 | 激情都市一区二区| 91丨porny丨首页| 丁香激情综合五月| 制服丝袜亚洲精品中文字幕| 91精品蜜臀在线一区尤物| 久久精品网站免费观看| 综合电影一区二区三区 | 成人美女在线观看| 欧美系列日韩一区| 日韩欧美国产综合在线一区二区三区| 国产成人综合在线观看| 欧美亚洲综合在线| 91精品国产综合久久久蜜臀图片| 久久这里只有精品6| 一区二区三区精品| 国产在线国偷精品免费看| 欧美性一区二区| 国产精品免费久久久久| 日本欧美肥老太交大片| 一本久久综合亚洲鲁鲁五月天| 亚洲精品在线观看视频| 天天操天天干天天综合网| 丁香婷婷深情五月亚洲| 91精品国产欧美日韩| 一区二区三区免费在线观看| 精品一区二区免费在线观看| 欧美日韩高清一区| 亚洲精选视频免费看| 丁香婷婷综合色啪| 国产精品国产三级国产aⅴ中文| 国产一区二区三区| 久久久久青草大香线综合精品| 激情五月婷婷综合| 国产精品美女视频| 99re热视频精品| 国产精品久久久久影院| 国内成人精品2018免费看| 欧美色欧美亚洲另类二区| 亚洲成人自拍网| 精品久久一区二区三区| 国产精品一区二区91| 亚洲精品成人悠悠色影视| 欧美日韩国产影片| 成人视屏免费看| 婷婷六月综合亚洲| 久久综合色婷婷| 色香色香欲天天天影视综合网| 亚洲情趣在线观看| 欧美一级二级在线观看| 91蝌蚪porny| 欧美aⅴ一区二区三区视频| 国产精品国产三级国产专播品爱网 | 国产精品久久久久影院老司 | 亚洲国产综合在线| 中文字幕亚洲不卡| 欧美日韩一级片网站| 精品在线播放免费| 亚洲福中文字幕伊人影院| 久久久青草青青国产亚洲免观| 欧美色偷偷大香| 精品亚洲国内自在自线福利| 亚洲免费在线播放| 国产亚洲一二三区| 欧美一区二区三区不卡| 欧美亚洲国产bt| av在线这里只有精品| 国产激情视频一区二区在线观看| 日韩电影网1区2区| 中文字幕乱码久久午夜不卡| 在线观看91精品国产麻豆| 欧美色偷偷大香|