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

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

?? nfkc.java

?? This a Good IDN Client.
?? JAVA
字號:
/** * Copyright (C) 2004  Free Software Foundation, Inc. * * Author: Oliver Hitz * * This file is part of GNU Libidn. * * 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 library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */package gnu.inet.encoding;public class NFKC{  /**   * Applies NFKC normalization to a string.   *   * @param in The string to normalize.   * @return An NFKC normalized string.   */  public static String normalizeNFKC(String in)  {    StringBuffer out = new StringBuffer();    for (int i = 0; i < in.length(); i++) {      char code = in.charAt(i);      // In Unicode 3.0, Hangul was defined as the block from U+AC00      // to U+D7A3, however, since Unicode 3.2 the block extends until      // U+D7AF. The decomposeHangul function only decomposes until      // U+D7A3. Should this be changed?      if (code >= 0xAC00 && code <= 0xD7AF) {	out.append(decomposeHangul(code));      } else {	int index = decomposeIndex(code);	if (index == -1) {	  out.append(code);	} else {	  out.append(DecompositionMappings.m[index]);	}      }    }    // Bring the stringbuffer into canonical order.    canonicalOrdering(out);    // Do the canonical composition.    int last_cc = 0;    int last_start = 0;    for (int i = 0; i < out.length(); i++) {      int cc = combiningClass(out.charAt(i));      if (i > 0 && (last_cc == 0 || last_cc != cc)) { 	// Try to combine characters 	char a = out.charAt(last_start); 	char b = out.charAt(i); 	int c = compose(a, b); 	if (c != -1) { 	  out.setCharAt(last_start, (char) c); 	  out.deleteCharAt(i); 	  i--;	  if (i == last_start) {	    last_cc = 0;	  } else {	    last_cc = combiningClass(out.charAt(i-1));	  }	  continue;	}      }      if (cc == 0) { 	last_start = i;      }      last_cc = cc;    }    return out.toString();  }  /**   * Returns the index inside the decomposition table, implemented   * using a binary search.   *   * @param c Character to look up.   * @return Index if found, -1 otherwise.   */  static int decomposeIndex(char c)  {    int start = 0;    int end = DecompositionKeys.k.length/2;    while (true) {      int half = (start + end) / 2;      int code = DecompositionKeys.k[half*2];      if (c == code) {	return DecompositionKeys.k[half*2 + 1];      }      if (half == start) {	// Character not found	return -1;      } else if (c > code) {	start = half;      } else {	end = half;      }    }  }  /**   * Returns the combining class of a given character.   *   * @param c The character.   * @return The combining class.   */  static int combiningClass(char c)  {    int h = c >> 8;    int l = c & 0xff;    int i = CombiningClass.i[h];    if (i > -1) {      return CombiningClass.c[i][l];    } else {      return 0;    }  }  /**   * Rearranges characters in a stringbuffer in order to respect the   * canonical ordering properties.   *   * @param The StringBuffer to rearrange.   */  static void canonicalOrdering(StringBuffer in)  {    boolean isOrdered = false;    while (!isOrdered) {      isOrdered = true;      int lastCC = combiningClass(in.charAt(0));      for (int i = 0; i < in.length()-1; i++) {	int nextCC = combiningClass(in.charAt(i+1));	if (nextCC != 0 && lastCC > nextCC) {	  for (int j = i+1; j > 0; j--) {	    if (combiningClass(in.charAt(j-1)) <= nextCC) {	      break;	    }	    char t = in.charAt(j);	    in.setCharAt(j, in.charAt(j-1));	    in.setCharAt(j-1, t);	    isOrdered = false;	  }	  nextCC = lastCC;	}	lastCC = nextCC;      }    }  }  /**   * Returns the index inside the composition table.   *   * @param a Character to look up.   * @return Index if found, -1 otherwise.   */  static int composeIndex(char a)  {    if (a>>8 >= Composition.composePage.length) {      return -1;    }    int ap = Composition.composePage[a>>8];    if (ap == -1) {      return -1;    }    return Composition.composeData[ap][a & 0xff];  }  /**   * Tries to compose two characters canonically.   *   * @param a First character.   * @param b Second character.   * @return The composed character or -1 if no composition could be   * found.   */  static int compose(char a, char b)  {    int h = composeHangul(a, b);    if (h != -1) {      return h;    }    int ai = composeIndex(a);    if (ai >= Composition.singleFirstStart && ai < Composition.singleSecondStart) {      if (b == Composition.singleFirst[ai - Composition.singleFirstStart][0]) {	return Composition.singleFirst[ai - Composition.singleFirstStart][1];      } else {	return -1;      }    }    int bi = composeIndex(b);    if (bi >= Composition.singleSecondStart) {      if (a == Composition.singleSecond[bi - Composition.singleSecondStart][0]) {	return Composition.singleSecond[bi - Composition.singleSecondStart][1];      } else {	return -1;      }    }    if (ai >= 0 && ai < Composition.multiSecondStart &&	bi >= Composition.multiSecondStart && bi < Composition.singleFirstStart) {      char[] f = Composition.multiFirst[ai];      if (bi - Composition.multiSecondStart < f.length) {	char r = f[bi - Composition.multiSecondStart];	if (r == 0) {	  return -1;	} else {	  return r;	}      }    }    return -1;  }  /**   * Entire hangul code copied from:   * http://www.unicode.org/unicode/reports/tr15/   *   * Several hangul specific constants   */  static final int SBase = 0xAC00;  static final int LBase = 0x1100;  static final int VBase = 0x1161;  static final int TBase = 0x11A7;  static final int LCount = 19;  static final int VCount = 21;  static final int TCount = 28;  static final int NCount = VCount * TCount;  static final int SCount = LCount * NCount;  /**   * Decomposes a hangul character.   *   * @param s A character to decompose.   * @return A string containing the hangul decomposition of the input   * character. If no hangul decomposition can be found, a string   * containing the character itself is returned.   */  static String decomposeHangul(char s)  {    int SIndex = s - SBase;    if (SIndex < 0 || SIndex >= SCount) {      return String.valueOf(s);    }    StringBuffer result = new StringBuffer();    int L = LBase + SIndex / NCount;    int V = VBase + (SIndex % NCount) / TCount;    int T = TBase + SIndex % TCount;    result.append((char)L);    result.append((char)V);    if (T != TBase) result.append((char)T);    return result.toString();  }  /**   * Composes two hangul characters.   *   * @param a First character.   * @param b Second character.   * @return Returns the composed character or -1 if the two   * characters cannot be composed.   */  static int composeHangul(char a, char b)  {    // 1. check to see if two current characters are L and V    int LIndex = a - LBase;    if (0 <= LIndex && LIndex < LCount) {      int VIndex = b - VBase;      if (0 <= VIndex && VIndex < VCount) {	// make syllable of form LV	return SBase + (LIndex * VCount + VIndex) * TCount;      }    }        // 2. check to see if two current characters are LV and T    int SIndex = a - SBase;    if (0 <= SIndex && SIndex < SCount && (SIndex % TCount) == 0) {      int TIndex = b - TBase;      if (0 <= TIndex && TIndex <= TCount) {	// make syllable of form LVT	return a+TIndex;      }    }    return -1;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产99久久久国产精品潘金网站| 在线精品视频免费观看| 最新欧美精品一区二区三区| 欧美精品久久99| 一本大道久久a久久综合婷婷 | 国产精品正在播放| 青椒成人免费视频| 久久成人精品无人区| 精品影院一区二区久久久| 久热成人在线视频| 国产激情一区二区三区| 国产精品一区二区男女羞羞无遮挡| 久久精品国产一区二区| 国产一区二区三区不卡在线观看 | 欧美国产一区二区在线观看| 久久女同性恋中文字幕| 亚洲欧美一区二区三区极速播放| 日韩理论在线观看| 亚洲一区二区三区四区不卡| 亚洲观看高清完整版在线观看| 亚洲一级二级三级| 麻豆成人久久精品二区三区红 | eeuss国产一区二区三区| 麻豆一区二区三| 亚洲精品一区在线观看| 日韩精品在线网站| 国产色一区二区| 亚洲区小说区图片区qvod| 亚洲成在线观看| 亚洲黄色性网站| 亚洲福利视频一区| 国产一区二区三区av电影| 99v久久综合狠狠综合久久| 欧美浪妇xxxx高跟鞋交| 久久久久久久综合| 日本va欧美va瓶| 亚洲视频一区二区在线观看| 日韩欧美在线综合网| 国产精品久久久久久久久快鸭 | 天堂精品中文字幕在线| 国产乱码精品一区二区三区av| 色综合天天综合色综合av| 日韩欧美国产一区二区三区 | 色综合久久久久综合体桃花网| 欧美性videosxxxxx| 国产欧美精品在线观看| 一区二区三区.www| 国产一区啦啦啦在线观看| 欧美色倩网站大全免费| 亚洲国产精品av| 极品少妇xxxx偷拍精品少妇| 在线观看欧美黄色| 国产精品久久久久影院色老大| 日本大胆欧美人术艺术动态| 菠萝蜜视频在线观看一区| 26uuu欧美| 亚洲国产日韩a在线播放性色| 麻豆精品在线视频| 亚洲第一二三四区| 日本高清无吗v一区| 国产区在线观看成人精品| 久久精工是国产品牌吗| 欧美日韩欧美一区二区| 亚洲视频精选在线| 成人app在线| 国产日韩亚洲欧美综合| 国产老女人精品毛片久久| 日韩一卡二卡三卡四卡| 石原莉奈一区二区三区在线观看| 色综合色狠狠天天综合色| 国产精品久久久久婷婷| 国产成人午夜电影网| wwwwxxxxx欧美| 国产呦萝稀缺另类资源| 欧美电影免费观看高清完整版在线观看| 亚洲无人区一区| 欧美午夜一区二区三区免费大片| 中文字幕日本乱码精品影院| 99免费精品视频| 成人免费在线视频观看| 成人免费视频一区| 亚洲欧美偷拍三级| 91久久线看在观草草青青| 亚洲一二三区不卡| 欧美三区在线观看| 日本成人在线看| 91麻豆精品国产91久久久资源速度| 曰韩精品一区二区| 欧美在线观看视频一区二区| 亚洲成人免费视频| 日韩精品一区二区三区三区免费 | 欧美日韩国产精选| 日本免费在线视频不卡一不卡二| 制服视频三区第一页精品| 免费人成黄页网站在线一区二区 | 99久久伊人精品| 亚洲欧美日韩国产另类专区| 国产精品免费av| 色久综合一二码| 亚洲一区二区三区美女| 欧美日韩激情在线| 国产真实精品久久二三区| 中文字幕欧美日本乱码一线二线| 91麻豆国产精品久久| 亚洲午夜在线电影| 久久久午夜电影| 色94色欧美sute亚洲线路二 | 欧美tk—视频vk| 国产不卡视频在线观看| 亚洲品质自拍视频| 日韩一级片在线观看| 国产超碰在线一区| 免费一级欧美片在线观看| 日本一区二区三区dvd视频在线 | 制服.丝袜.亚洲.中文.综合| 国产乱子伦一区二区三区国色天香| 亚洲欧洲国产日韩| 日韩写真欧美这视频| 91麻豆国产福利精品| 国产精品资源在线| 日日摸夜夜添夜夜添亚洲女人| 国产农村妇女毛片精品久久麻豆 | 国产精品99久久久久久宅男| 成人免费在线观看入口| 精品粉嫩超白一线天av| 在线视频一区二区免费| 久久精品国产澳门| 国产精品欧美精品| 欧美日韩三级一区二区| 99久久精品免费观看| 美女久久久精品| 舔着乳尖日韩一区| 一区二区三区国产精华| 日韩一区在线免费观看| 久久女同互慰一区二区三区| 色综合天天视频在线观看| 欧美一区二区三区公司| 欧美综合在线视频| 99国产精品国产精品久久| 国模大尺度一区二区三区| 亚洲高清在线精品| 亚洲小说春色综合另类电影| 中文字幕在线一区免费| 久久精品综合网| 久久婷婷国产综合精品青草| 日韩欧美一二三区| 欧美高清dvd| 欧美军同video69gay| 欧美综合久久久| 欧美在线观看一区二区| 在线视频一区二区三| 在线亚洲高清视频| 欧美日韩精品一区二区三区| 一本色道久久综合狠狠躁的推荐| 99精品国产91久久久久久| 99久久免费国产| 91免费视频观看| 欧美在线观看视频一区二区| 欧美日韩午夜精品| 精品视频免费看| 91精品国产综合久久久蜜臀图片 | 亚洲午夜电影在线观看| 亚洲国产成人av| 美女视频黄免费的久久| 国产真实乱偷精品视频免| 国产91富婆露脸刺激对白| 成人黄色网址在线观看| 99re这里只有精品6| 91黄色小视频| 欧美一区二区三区成人| 久久先锋影音av鲁色资源网| 国产日韩欧美一区二区三区综合| 欧美激情艳妇裸体舞| 亚洲欧美视频在线观看| 天天综合网 天天综合色| 奇米四色…亚洲| 国产成人综合视频| 在线看不卡av| 精品国产一区久久| 国产精品福利影院| 偷偷要91色婷婷| 国内外成人在线| 99视频在线观看一区三区| 欧美巨大另类极品videosbest | 国产乱国产乱300精品| 国产黄人亚洲片| 在线视频欧美精品| 91精品国产色综合久久| 中文字幕不卡的av| 亚洲不卡在线观看| 精东粉嫩av免费一区二区三区| 成人av网址在线观看| 欧美一区二区三区免费大片| 国产精品久久午夜夜伦鲁鲁| 亚洲电影激情视频网站| 国产精品69久久久久水密桃| 日本乱人伦aⅴ精品| 国产欧美一区二区三区在线看蜜臀| 亚洲天堂福利av| 国产自产v一区二区三区c|