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

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

?? rbtablebuilder.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* *  * %W% %E% *  * Portions Copyright  2000-2008 Sun Microsystems, Inc. All Rights * Reserved.  Use is subject to license terms. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER *  * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 only, as published by the Free Software Foundation. *  * 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 version 2 for more details (a copy is * included at /legal/license.txt). *  * You should have received a copy of the GNU General Public License * version 2 along with this work; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA *  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa * Clara, CA 95054 or visit www.sun.com if you need additional * information or have any questions. *//* * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved * (C) Copyright IBM Corp. 1996-1998 - All Rights Reserved * *   The original version of this source code and documentation is copyrighted * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These * materials are provided under terms of a License Agreement between Taligent * and Sun. This technology is protected by multiple US and International * patents. This notice and attribution to Taligent may not be removed. *   Taligent is a registered trademark of Taligent, Inc. * */package java.text;import java.util.Vector;import sun.text.CompactIntArray;import sun.text.IntHashtable;import sun.text.Normalizer;import sun.text.ComposedCharIter;import sun.text.NormalizerUtilities;/** * This class contains all the code to parse a RuleBasedCollator pattern * and build a RBCollationTables object from it.  A particular instance * of tis class exists only during the actual build process-- once an * RBCollationTables object has been built, the RBTableBuilder object * goes away.  This object carries all of the state which is only needed * during the build process, plus a "shadow" copy of all of the state * that will go into the tables object itself.  This object communicates * with RBCollationTables through a separate class, RBCollationTables.BuildAPI, * this is an inner class of RBCollationTables and provides a separate * private API for communication with RBTableBuilder. * This class isn't just an inner class of RBCollationTables itself because * of its large size.  For source-code readability, it seemed better for the * builder to have its own source file. */final class RBTableBuilder {    public RBTableBuilder(RBCollationTables.BuildAPI tables) {        this.tables = tables;    }    /**     * Create a table-based collation object with the given rules.     * This is the main function that actually builds the tables and     * stores them back in the RBCollationTables object.  It is called     * ONLY by the RBCollationTables constructor.     * @see java.util.RuleBasedCollator#RuleBasedCollator     * @exception ParseException If the rules format is incorrect.     */    public void build(String pattern, int decmp) throws ParseException    {        boolean isSource = true;        int i = 0;        String expChars;        String groupChars;        if (pattern.length() == 0)            throw new ParseException("Build rules empty.", 0);        // This array maps Unicode characters to their collation ordering        mapping = new CompactIntArray((int)RBCollationTables.UNMAPPED);        // Normalize the build rules.  Find occurances of all decomposed characters        // and normalize the rules before feeding into the builder.  By "normalize",        // we mean that all precomposed Unicode characters must be converted into        // a base character and one or more combining characters (such as accents).        // When there are multiple combining characters attached to a base character,        // the combining characters must be in their canonical order        //        Normalizer.Mode mode = NormalizerUtilities.toNormalizerMode(decmp);        pattern = Normalizer.normalize(pattern, mode, 0, true);        // Build the merged collation entries        // Since rules can be specified in any order in the string        // (e.g. "c , C < d , D < e , E .... C < CH")        // this splits all of the rules in the string out into separate        // objects and then sorts them.  In the above example, it merges the        // "C < CH" rule in just before the "C < D" rule.        //        mPattern = new MergeCollation(pattern);        int order = 0;        // Now walk though each entry and add it to my own tables        for (i = 0; i < mPattern.getCount(); ++i)        {            PatternEntry entry = mPattern.getItemAt(i);            if (entry != null) {                groupChars = entry.getChars();                if (groupChars.length() > 1) {		    switch(groupChars.charAt(groupChars.length()-1)) {		    case '@':			frenchSec = true;			groupChars = groupChars.substring(0, groupChars.length()-1);			break;		    case '!':			seAsianSwapping = true;			groupChars = groupChars.substring(0, groupChars.length()-1);			break;		    }                }                order = increment(entry.getStrength(), order);                expChars = entry.getExtension();                if (expChars.length() != 0) {                    addExpandOrder(groupChars, expChars, order);                } else if (groupChars.length() > 1) {                    addContractOrder(groupChars, order);                } else {                    char ch = groupChars.charAt(0);                    addOrder(ch, order);                }            }        }        addComposedChars();        commit();        mapping.compact();        tables.fillInTables(frenchSec, seAsianSwapping, mapping, contractTable, expandTable,                    contractFlags, maxSecOrder, maxTerOrder);    }    /** Add expanding entries for pre-composed unicode characters so that this     * collator can be used reasonably well with decomposition turned off.     */    private void addComposedChars() throws ParseException {        StringBuffer buf = new StringBuffer(1);        // Iterate through all of the pre-composed characters in Unicode        ComposedCharIter iter = new ComposedCharIter(false, Normalizer.IGNORE_HANGUL);        while (iter.hasNext()) {            char c = iter.next();            if (getCharOrder(c) == RBCollationTables.UNMAPPED) {                //                // We don't already have an ordering for this pre-composed character.                //                // First, see if the decomposed string is already in our                // tables as a single contracting-string ordering.                // If so, just map the precomposed character to that order.                //                // TODO: What we should really be doing here is trying to find the                // longest initial substring of the decomposition that is present                // in the tables as a contracting character sequence, and find its                // ordering.  Then do this recursively with the remaining chars                // so that we build a list of orderings, and add that list to                // the expansion table.                // That would be more correct but also significantly slower, so                // I'm not totally sure it's worth doing.                //                String s = iter.decomposition();                int contractOrder = getContractOrder(s);                if (contractOrder != RBCollationTables.UNMAPPED) {                    addOrder(c, contractOrder);                } else {                    //                    // We don't have a contracting ordering for the entire string                    // that results from the decomposition, but if we have orders                    // for each individual character, we can add an expanding                    // table entry for the pre-composed character                    //                    boolean allThere = true;                    for (int i = 0; i < s.length(); i++) {                        if (getCharOrder(s.charAt(i)) == RBCollationTables.UNMAPPED) {                            allThere = false;                            break;                        }                    }                    if (allThere) {                        buf.setLength(0);                        buf.append(c);                        addExpandOrder(buf.toString(), s, RBCollationTables.UNMAPPED);                    }                }            }        }    }    /**     * Look up for unmapped values in the expanded character table.     *     * When the expanding character tables are built by addExpandOrder,     * it doesn't know what the final ordering of each character     * in the expansion will be.  Instead, it just puts the raw character     * code into the table, adding CHARINDEX as a flag.  Now that we've     * finished building the mapping table, we can go back and look up     * that character to see what its real collation order is and     * stick that into the expansion table.  That lets us avoid doing     * a two-stage lookup later.     */    private final void commit()    {        if (expandTable != null) {            for (int i = 0; i < expandTable.size(); i++) {                int[] valueList = (int [])expandTable.elementAt(i);                for (int j = 0; j < valueList.length; j++) {                    int order = valueList[j];                    if (order < RBCollationTables.EXPANDCHARINDEX && order > CHARINDEX) {                        // found a expanding character that isn't filled in yet                        char ch = (char)(order - CHARINDEX);                        // Get the real values for the non-filled entry                        int realValue = getCharOrder(ch);                        if (realValue == RBCollationTables.UNMAPPED) {                            // The real value is still unmapped, maybe it's ignorable                            valueList[j] = IGNORABLEMASK & ch;                        } else {                            // just fill in the value                            valueList[j] = realValue;                        }                    }                }            }        }    }    /**     *  Increment of the last order based on the comparison level.     */    private final int increment(int aStrength, int lastValue)    {        switch(aStrength)        {        case Collator.PRIMARY:            // increment priamry order  and mask off secondary and tertiary difference            lastValue += PRIMARYORDERINCREMENT;            lastValue &= RBCollationTables.PRIMARYORDERMASK;            isOverIgnore = true;            break;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久99久精品视频免费观看| 欧美片在线播放| 成人av影视在线观看| 99久久久无码国产精品| 日本久久电影网| 欧美一级专区免费大片| 国产精品无人区| 亚洲一区二区不卡免费| 久久99精品国产.久久久久久| av亚洲产国偷v产偷v自拍| 欧美日韩在线播放三区四区| 日韩欧美国产综合一区| 中文字幕免费一区| 天天综合网 天天综合色| 国产精品白丝jk黑袜喷水| 91官网在线观看| 精品粉嫩超白一线天av| 亚洲精品日产精品乱码不卡| 免费成人在线观看| 色综合天天综合在线视频| 日韩午夜在线观看| 亚洲欧洲另类国产综合| 午夜精品一区二区三区三上悠亚 | 国产精品羞羞答答xxdd| 色婷婷国产精品综合在线观看| 91精品国产综合久久精品麻豆| 国产欧美日韩另类一区| 天堂久久一区二区三区| 成人动漫视频在线| 777久久久精品| 综合分类小说区另类春色亚洲小说欧美| 丝袜亚洲另类欧美| 色综合欧美在线视频区| 久久精品综合网| 三级欧美在线一区| 国产 欧美在线| 欧美一区二区三区婷婷月色| 中文字幕一区二区三区在线不卡 | 欧洲激情一区二区| 久久久久久亚洲综合影院红桃| 亚洲成人资源在线| av高清不卡在线| 久久女同精品一区二区| 日韩成人一区二区| 欧美亚洲综合网| 中文字幕在线观看不卡| 日本午夜一区二区| 在线亚洲一区二区| 中文字幕中文字幕在线一区| 激情都市一区二区| 欧美日韩国产美| 一区二区三区在线免费视频 | 国产精品不卡一区| 国产成人av一区| 精品国产91乱码一区二区三区| 亚洲va欧美va天堂v国产综合| 一本久道中文字幕精品亚洲嫩| 26uuu亚洲综合色欧美 | 久久久久九九视频| 日本不卡一区二区三区 | 久久国产福利国产秒拍| 91精品国产一区二区| 亚洲国产欧美一区二区三区丁香婷| 99热精品一区二区| 国产精品欧美久久久久无广告 | 中文字幕亚洲视频| 韩日av一区二区| 日韩西西人体444www| 天天综合色天天综合色h| 欧美精品一二三四| 天堂一区二区在线| 欧美一区二区三区免费视频| 天天综合网天天综合色| 欧美日韩国产综合久久| 午夜视频在线观看一区二区三区| 欧美视频在线观看一区| 亚洲电影欧美电影有声小说| 在线免费观看一区| 亚洲va欧美va人人爽午夜| 在线观看91精品国产入口| 综合久久综合久久| 91丨porny丨国产入口| 亚洲黄色免费电影| 色狠狠桃花综合| 亚洲成国产人片在线观看| 欧美精品亚洲一区二区在线播放| 日本网站在线观看一区二区三区| 欧美一区2区视频在线观看| 精品在线播放午夜| 国产色产综合产在线视频| 成人午夜av电影| 亚洲女人****多毛耸耸8| 在线亚洲免费视频| 亚洲色图欧美在线| 欧美吻胸吃奶大尺度电影| 亚洲大片精品永久免费| 日韩三级av在线播放| 韩国成人精品a∨在线观看| 精品国产91亚洲一区二区三区婷婷| 国产高清亚洲一区| 国产精品女同一区二区三区| 高清成人免费视频| 一区二区欧美精品| 日韩一级高清毛片| 懂色中文一区二区在线播放| 亚洲欧洲综合另类| 欧美欧美午夜aⅴ在线观看| 久久99精品久久久久婷婷| 中文字幕不卡三区| 99免费精品在线观看| 亚洲成人在线免费| 久久人人超碰精品| 色综合久久久久网| 日韩综合小视频| 久久精品一区二区三区四区| 92国产精品观看| 免费观看在线综合色| 久久久久99精品一区| 日本韩国欧美一区二区三区| 美腿丝袜亚洲综合| 国产精品国产三级国产有无不卡| 欧美日韩国产一区二区三区地区| 国产最新精品免费| 亚洲一区二区影院| 日韩三级免费观看| 99久久精品国产导航| 天堂成人免费av电影一区| 国产精品美女一区二区三区| 欧美裸体一区二区三区| 国产成人亚洲综合a∨婷婷图片| 亚洲福利国产精品| 久久伊人蜜桃av一区二区| 在线看不卡av| 粉嫩在线一区二区三区视频| 亚洲va韩国va欧美va| 中文字幕精品三区| 5566中文字幕一区二区电影| av资源站一区| 狠狠色狠狠色综合| 亚洲精品大片www| 日韩欧美二区三区| 色一情一伦一子一伦一区| 国产麻豆成人精品| 亚洲一区二区三区小说| 亚洲国产精品成人久久综合一区| 911精品国产一区二区在线| 成人av网址在线| 国产精品99久久久久久有的能看 | 欧美日韩国产综合久久| a4yy欧美一区二区三区| 狠狠色2019综合网| 夜夜嗨av一区二区三区四季av| 久久嫩草精品久久久精品一| 欧美精品欧美精品系列| 色欧美片视频在线观看在线视频| 国产91露脸合集magnet| 久久se精品一区精品二区| 性久久久久久久久| 一区二区三区四区五区视频在线观看| 国产欧美一区二区精品忘忧草 | 国产精品一二三四| 天堂av在线一区| 香蕉加勒比综合久久| 亚洲精品免费播放| 中文字幕中文字幕一区| 欧美激情一区三区| 26uuu亚洲综合色| 精品国产乱码久久久久久闺蜜| 在线播放91灌醉迷j高跟美女 | 亚洲成人在线网站| 亚洲电影一区二区三区| 亚洲精品视频在线观看网站| 亚洲免费视频中文字幕| 国产精品国产三级国产普通话三级| 久久久精品国产免大香伊 | 波多野结衣中文字幕一区二区三区| 国产一区二区三区电影在线观看| 精品一区二区三区的国产在线播放| 午夜精品久久久久久久| 亚洲一区二区视频在线观看| 成人免费小视频| 中文字幕 久热精品 视频在线| 国产午夜精品理论片a级大结局| 精品剧情在线观看| 欧美精品一区男女天堂| 精品日韩欧美在线| 久久综合国产精品| 国产亚洲成年网址在线观看| 国产性色一区二区| 久久你懂得1024| 欧美韩国日本综合| 国产精品成人免费| 亚洲色图在线播放| 亚洲影院久久精品| 亚洲 欧美综合在线网络| 一区二区三区免费看视频| 亚洲精品成人在线| 午夜一区二区三区在线观看| 五月激情综合婷婷| 视频一区视频二区在线观看|