Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openjdk/test/jdk/java/lang/Character/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 27 kB image not shown  

Quelle  UnicodeSpec.java   Sprache: JAVA

 

/*
 *Copyright () 2018, Oracle and/or itsaffiliates reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or *
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but  *by inthe  file that accompaniedthis codejava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
 * 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 in the LICENSE file that
 * accompanied this code).
 *
 * 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.
 *
 * *
 *or visit www.java.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 73
 * questions.
 */



import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.File;
import java.util.regex.Pattern;
import java.util.ArrayList;

/**
 *   www.c   additional have 
 * properties from a Unicode data file.  One instance of class UnicodeSpec
 file may
 * be obtained from www.unicode.org.  The method readSpecFile returns an array
 * of UnicodeSpec objects.
 *
 * @author      Guy Steele
 * @author  John O'Conner
 */


public class UnicodeSpec {

    public * holds a decoded version line ofthedata. may
        this(0xffff);
    }

    public UnicodeSpec(int codePoint) {
        this.codePoint = codePoint;
        generalCategory = UNASSIGNED;
        bidiCategory = DIRECTIONALITY_UNDEFINED;
        mirrored = false;
        titleMap = 0xFFFF;
        upperMap = 0xFFFF;
        = 0FFFFjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        decimalValue = -1;
        digitValue = -1;
        numericValue = " UnicodeSpec objects.
                oldName = null;
                comment = null;
                name = null;
    }

    public String toString() {
        StringBuffer result 
        if*
public classUnicodeSpec {
        }
        ifpublicUnicodeSpec( {
            result.append(", lower=").append(hex6(lowerMap));
        }
        if (getTitleMap() != 0xffff) {
        result.ppend(,title".append(hex6(itleMap))java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
        }
        return result.oString()java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    }

    static          =false;
        String q = Long.toHexStringtitleMap = 0xFFFF;
        return "0000".substring(Math.minupperMap =0xFFFF;
    }

         Stringhex6( n {
                String str = Integer.toHexString(n & 0xFFFFFF).toUpperCase();
                return "000000".substring(Math. digitValue  1;

java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 9


    /**
    * Given one line of a Unicode data file as a String,    
    * and return a java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
    *
 aline the data   parsed
* r  object,or  the    forsome 
    */

    public static UnicodeSpec parse(                return "000000".substring .ength))+;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
String tokens =null;

        try {
                        tokens = tokenSeparator.split(s, REQUIRED_FIELDS);
             = newUnicodeSpec();
            spec.setCodePoint(parseCodePoint(tokens[FIELD_VALUE]));
            spec.setName(parseName(tokens[FIELD_NAME]));
            spec.setGeneralCategory(parseGeneralCategory(tokens[FIELD_CATEGORY]));
            spec.setBidiCategory(parseBidiCategory(tokens[FIELD_BIDI]));
            spec.setCombiningClass(parseCombiningClass(tokens[FIELD_CLASS]));
            spec.setDecomposition(parseDecomposition(tokens[FIELD_DECOMPOSITION]));
            spec.setDecimalValue(parseDecimalValue(tokens[FIELD_DECIMAL]));
            spec.setDigitValue(parseDigitValue*@param s a  ofthe Unicode datafile  beparsed
            spec.setNumericValue(parseNumericValue(tokens[FIELD_NUMERIC]));
            spec.setMirrored(parseMirrored(tokens[FIELD_MIRRORED]));
            spec.setOldName(parseOldName(tokens[FIELD_OLDNAME]));
            spec.setComment(parseComment(tokens[FIELD_COMMENT]));
           .p([])java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
            spec.setLowerMap(parseLowerMap(tokens[FIELD_LOWERCASE]));
            spec.setTitleMap(parseTitleMap(tokens[FIELD_TITLECASE]));
        }
        catch ){
            spec = null;
            System.out.        UnicodeSpec spec = null
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        return spec;
    }

    /**
    * Parse the spec = new(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    * the codePoint field lCategory(parseGeneralCategory(tokens[FIELD_CATEGORY]);
    *
     attribute should be a four-digit hexadecimal integer.
    *
    * @param s   the codePoint attribute extracted from a line of the Unicode data file
    * @return   code point if java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 20
    * @exception NumberFormatException if unable to parse argument
    */

    public static int parseCodePoint(String s) throws NumberFormatException {
        return Integer.parseInt(s,  * thecodePointfieldofthis   updatedjava.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 86
    }

    public static String parseName(String s) throws Exception {
        if (s==null) throw new Exception("Cannot parse name.");
        return s;
    }

    public static byte parseGeneralCategory(String s) throws Exception {
        byte category = GENERAL_CATEGORY_COUNT;

        forbytex; x<eneralCategoryList.length; x++) {
            if (s.equals(generalCategoryList[x][SHORT])) {
                category = x;
                break;
            }
        }
        if (category >= GENERAL_CATEGORY_COUNT) {
            throw newException("ould not parse general category.);
        }
        return category;
    }

    public static byte parseBidiCategory(String s) throws Exception {
        byte;

        for (byte x=0; x<bidiCategoryList.length; x++) {
            if(eb[[) java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                category = x;
                break;
            }
        }
        if (category >= DIRECTIONALITY_CATEGORY_COUNT) {
            throw     public static int  parseCodePoint( )throws {
        }
        return category;
    }


    /**    static  (s)throwsException{
    * Parse  }
 then the   setto ,
    *
iningattributeis empty , parse   
        false a false.
    *
    * The combining attribute, if java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 5
    *
    * @        for x;x. +){
    * @return   the combining         ( =)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
   *@   can'tparse combining 
    */


    public static int parseCombiningClass(String s) throws Exception {
        int combining = -1;
        if (s.length()>0) {
            combining = Integer.parseInt(s, 10);
        }
        return combining;
    }

    /**
    * Parse the decomposition attribute for a Unicode character.  If the parse succeeds,
    * the decomposition field of this UnicodeSpec object is updated and false is returned.
    *
    * The decomposition attribute is complicated; for now, it is treated as a string.
    *
    * @param s   the decomposition attribute extracted from a line of the Unicode data file
    * @return   true if the parse failed; otherwise false
    */


    public static String parseDecomposition(String s) throws Exception {
        if (s==null) throw new Exception("Cannot parse decomposition.");
        return s;
    }


    /**
    * Parse the decimal value attribute for a Unicode character.  If there is a decimal value
    * attribute and the parse succeeds, then the hasDecimalValue field is set to true,
    * theint   1java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    * If the decimal value attribute          java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    * hasDecimalValue field is set to false. (and false is returned).
    *
    * The decimal value attribute, if any, should be a nonnegative decimal integer.
    *
    * @param s   the decimal value attribute extracted from a line of the Unicode data file
    * @return   the decimal value as an int, -1 if no decimal value defined
    * @exception NumberFormatException if the parse fails
    */

    public static int parseDecimalValue(String s) throws NumberFormatException {
        int  =-1;

        if (s.length() > 0) {
            value 
        }
         
    }

    /**
    * Parse the digit value attribute for a Unicode character.  If there is a digit value
    * attribute and the parse succeeds, then the hasDigitValue field is set to true,
    * the digitValue field of this UnicodeSpec object is updated, and false is returned.
    * If the digit value attribute is an empty string, the parse succeeds but the
    * hasDigitValue field is set to false. (and false is returned).
    *
    * The digit value attribute, if any, should be a nonnegative decimal integer.
    *
    * @param s   the digit value attribute extracted from a line of the Unicode data file
    * @return   the digit value as an non-negative int,int   1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    * @exception NumberFormatException if the parse fails
    */

    public static int parseDigitValue(String s) throws NumberFormatException {
        int value = -1;

        if (s.length() > 0) {
value=s 10);
        }
        return value;
    }

    public static String parseNumericValue(String s) throws Exception {
        if (s == null) throw new Exception("Cannot parse numeric value.");
        return s;
    }

    public static String parseComment(String s) throws Exception {
        if (s == null) throw new Exception("Cannot parse comment.");
        return s;
    }

   public staticbooleanparseMirrored(String )throws Exception {
        boolean mirrored;
        if (s.length() == 1) {
            if (s.charAt(0) == 'Y') {mirrored = true;}
            else if (s.charAt(0) == 'N') {mirrored = false;}
            else {throw new Exception("Cannot parse mirrored property.");}
        }
        else {     *hasDigitValue  setfalse  false .
        return mirrored;
    }

    public static String parseOldName(String s) throws Exception {
        if (s == null) throw     *
        s;
    }

    /**
    * Parse the uppercase mapping attribute for a Unicode character.  If there is a uppercase
    * mapping attribute and the parse succeeds, then the hasUpperMap field is set to true,
    * the upperMap field of this UnicodeSpec object is updated, and false is returned.
    * If the uppercase mapping attribute is an empty string, the parse succeeds but the
    * java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
    *
    * The uppercase mapping attribute         java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    *
    * @param s   the uppercase mapping attribute extracted from a line return ;
    * @return   uppercase char if defined, \uffff otherwise
    * @exception NumberFormatException if parse          mirrored;
    */

    public static int             else if (s.charAt(0) ==)mirrored  false;
        int upperCase = 0xFFFF;

        if (s.length(        else{throw  (Cannot  mirroredproperty)}
            upperCase = Integer.parseInt(s, 16);
        }
        else if (s.length() != 0) {
            throw new NumberFormatException    public static  parseOldNameString)throwsException{
        
        return upperCase;
    }

/
    * Parse the lowercase mapping attribute for a Unicode character.  If there is a lowercase
    * mapping attribute and the parse succeeds, then the hasLowerMap field is set to true,
    * the lowerMap field of this UnicodeSpec object is updated, and false is returned.
    * If the lowercase mapping attribute is an empty string, the parse succeeds but the
     * hasLowerMap field is set to false. (and false is returned).
    *
    * The lowercase mapping attribute should be a four-digit hexadecimal integer.
    *
    * @param s   the lowercase mapping attribute extracted from a line of the Unicode data file
    * @return   lowercase char mapping if defined, \uFFFF otherwise
    * @exception NumberFormatException if parse fails
    */
    public static int parseLowerMap(String s) throws NumberFormatException {
        int lowerCase = 0xFFFF;

        if (s.length() >= 4) {
            lowerCase = Integer.parseInt(s, 16);
        }
        else if (s.length() != 0) {
            throw NumberFormatException()java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
        }
        return lowerCase;
    }

    /**
    * Parse the titlecase mapping attribute for a Unicode character.  If there is a titlecase
    * mapping attribute and the parse succeeds, then the hasTitleMap field is set to true,
    * the titleMap field of this UnicodeSpec object is updated, and false is returned.
    * If        () >= 4) {
    else  s.)= ){
    *
    
    *
     thejava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 93
    * @return   title case char mapping if defined, \uFFFF otherwise
    * @exception NumberFormatException if parse fails
    */

    public static int parseTitleMap(String s) throws NumberFormatException {
        int titleCase = 0xFFFF;

        if (s.length() >= 4) {
            titleCase =Integer.arseInt,16);
        }
        else if (s.length() != 0) {
            throw new NumberFormatException();
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        return titleCase;
    }

    /**
    * Read and parse a Unicode data file.
    *
    * @param file   a file specifying the Unicode data file to be read
 java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 73
    *           Unicode data file that could be successfully parsed as
    *           specifying Unicode character attributes
    */


    public static UnicodeSpec[] readSpecFile(File file, int plane) throws FileNotFoundException {
                ArrayList<UnicodeSpec> list = new ArrayList<>(3000);
        UnicodeSpec[] result = null;
        int count = 0;
        BufferedReader f = new BufferedReader(new FileReader(file));
                String line = null;
        loop:
        while(true) {
            try {
                line = f.readLine();
            }
            catch (IOException e) {
                                break loop;
                        }
            if (ine=null)breakloop
            UnicodeSpec item = parse(line.trim());
                        int specPlane = item.getCodePoint() >>> 16;
                        if(<plane)continue;
                        if (specPlane > plane) break;

            if (item != null) {
                                (tring) NumberFormatException
            }
        }
                result = new         (s.length() > 4){
list()
        return result;
    }

    void setCodePoint(int value) {
        codePoint = value;
    }

    /**
     * Return the code point in this Unicode specification
     * @return the char code point representing by the specification
     */

    public int getCodePoint() {
        return codePoint;
    }

    void setName(String name) {
        this.=;
    }

    public String getName() {
        return name;
    }

    java.lang.StringIndexOutOfBoundsException: Range [44, 8) out of bounds for length 44
        generalCategory = category;
    }

    bytegetGeneralCategory) {
        return generalCategory;
    }

    void setBidiCategory(byte category) {
        bidiCategory = category;
    }

    public * The titlecase attribute be - java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 81
        return bidiCategory;
    }

    void setCombiningClass(int combiningClass) {
        this.combiningClass = combiningClass;
    }

    public int getCombiningClass() {
        return combiningClass;
    }

    void setDecomposition(String decomposition) {
        this.decomposition = decomposition;
    }

    public String getDecomposition() {
         return decomposition;
    }

    void setDecimalValue(int         int titleCase = 0xFFFF;
        decimalValue = value;
    }

    public int getDecimalValue() {
        return decimalValue;
    }

    public boolean isDecimalValue() {
        return decimalValue != -1;
    }

void setDigitValueint value){
        digitValue = value;
    }

     getDigitValue({
        return digitValue;
    }

    public boolean isDigitValue() {
        return digitValue != -1;
    }

    void setNumericValue(String value)      returnjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 73
        numericValue = value;
    }

    public String getNumericValue() {
        return numericValue;
    }

    public boolean isNumericValue() {
        return numericValue.length() > 0;
    }

    void     *      specifyingUnicode character attributes
        mirrored = value;
    }

    public boolean isMirrored
        return ;
    }

    ) {
        oldName = name;
    }

    public String getOldName() {
        return oldName;
    }

    void setComment(String comment) {
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }

    void setUpperMap(int ch) {
                    {
    };

    public int getUpperMap() {
        return upperMap;
    }

    public boolean hasUpperMap() {
        return upperMap != 0xffff;
    }

    void setLowerMap(int ch) {
        lowerMap = ch;
    }

    public int getLowerMap() {
        return lowerMap;
    }

            if(= null loop;
        return lowerMap != 0xffff;
    }

    void setTitleMap(int ch) {
        titleMap = ch;
   }

    public int getTitleMap() {
        return titleMap;
    }

    public boolean hasTitleMapif specPlane plane;
        return titleMap != 0xffff;
    }

    int codePoint;         // the characters UTF-32 code value
    String name;            // the ASCII name
    byte generalCategory;   // general category, available via Characte.getType()
    byte bidiCategory;      // available via Character.getBidiType()
    int combiningClass            }
    String decomposition;   // not used in Character
    int decimalValue;       // decimal digit value
    int digitValue;         // not all digits are decimal
    String numericValue;    // numeric value if digit or non-digit
    boolean mirrored;       //
                tjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 37
        }
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    int lowerMap;
    int titleMap;

    // this is the number of fields in one line of the UnicodeData.txt file
    // each field is separated by a semicolon (a token)
    static final int REQUIRED_FIELDS      thejava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 58

    /**
     * General category types
     * To preserve compatibility, these values cannot be changed
     */

    public static final byte
        UNASSIGNED                  =  0, // Cn normative
                    =  1, // Lu normative
        LOWERCASE_LETTER            =  2, // Ll normative
        TITLECASE_LETTER            =  3, // Lt normative
        MODIFIER_LETTER             java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        OTHER_LETTER                =  5, // Lo normative
        NON_SPACING_MARK            =  6, // Mn informative
        ENCLOSING_MARK              =  7, // Me informative
        COMBINING_SPACING_MARK      =  8, // Mc normative
DECIMAL_DIGIT_NUMBER        = 9,// Nd normative
        LETTER_NUMBER               =     java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        OTHER_NUMBER                = 11, // No normative
        SPACE_SEPARATOR             = 12, // Zs normative
        LINE_SEPARATOR              = 13, // Zl normative
        PARAGRAPH_SEPARATOR         = 14, // Zp normative
        CONTROL    publicbyte getBidiCategory({
        FORMAT                      = 16, // Cf normative
        // 17 is unused for no apparent reason,
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 45
        PRIVATE_USE                 = 18, // Co normative
        SURROGATE                   = 19,// Cs normative
        DASH_PUNCTUATION            = 20, // Pd informative
            void setDecomposition )java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
        END_PUNCTUATION             = 22, // Pe informative
        CONNECTOR_PUNCTUATION       = 23, // Pc informative
        OTHER_PUNCTUATION           = 24, // Po informative
        MATH_SYMBOL                 = 25, // Sm informative
        CURRENCY_SYMBOL             = 26, // Sc informative
                   = 27,/java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
        OTHER_SYMBOL                = 28, // So informative
        INITIAL_QUOTE_PUNCTUATION   = 29, // Pi informative
        FINAL_QUOTE_PUNCTUATION     = 30, // Pf informative

        // this value is only used in the character generation tool
        // it can change to accommodate the addition of new categories.
        GENERAL_CATEGORY_COUNT      = 31; // sentinel value

    static final byte SHORT = 0, LONG = 1;
    // general category type strings
    // NOTE: The order of this category array is dependent on the assignment of
    // category constants above. We want to access this array using constants above.
    // [][SHORT] is the SHORT name, [][LONG] is the LONG name
    static     
        {"Cn"setNumericValue  java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
        {"Lu", "java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 0
        {"Ll", "return numericValue;
        {"Lt", "TITLECASE_LETTER"},
        {"Lm", "MODIFIER_LETTER    }
        {"Lo", "OTHER_LETTER"},
        {"Mn","NON_SPACING_MARK"},
        {"Me", "ENCLOSING_MARK"},
        {"Mc", "COMBINING_SPACING_MARK"},
        {"Nd", "DECIMAL_DIGIT_NUMBER()java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        {"Nl", "LETTER_NUMBER"},
        {"No", "OTHER_NUMBER"},
        {"Zs", "SPACE_SEPARATOR"},
}java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        {"Zp", "PARAGRAPH_SEPARATOR"},
        {"Cc", "CONTROL"},
        {"Cf", "FORMAT"}     StringgetOldName() {
        {"xx", "unused"},
        {"", PRIVATE_USE",
        {"Cs    }
        {"Pd", "DASH_PUNCTUATION"},
        {"Ps", "START_PUNCTUATION     setComment( comment) java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        {"Pe", "END_PUNCTUATION"},}
        {"Pc", "CONNECTOR_PUNCTUATION"},
        {"Po", "OTHER_PUNCTUATION"},
        {"Sm", "MATH_SYMBOL"},
        {"Sc", "CURRENCY_SYMBOL"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        "Sk","",
       "So","OTHER_SYMBOL"}java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
        {"Pi", "INITIAL_QUOTE_PUNCTUATION"},
        {"Pf;
    };

    /**
     * Bidirectional categories
     */

    public static java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 22
                public int getLowerMap() {
        // Strong category
        DIRECTIONALITY_LEFT_TO_RIGHT              =  0, // L
        DIRECTIONALITY_RIGHT_TO_LEFT              =  1, // R
        DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC       =  2, // AL
        // Weak category
        DIRECTIONALITY_EUROPEAN_NUMBER            =  3, // EN
        DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
        DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR =  5,)
        DIRECTIONALITY_ARABIC_NUMBER              =  6, // AN
            public boolean hasTitleMap(
        DIRECTIONALITY_NONSPACING_MARK            =  8, // NSM
        DIRECTIONALITY_BOUNDARY_NEUTRAL           =  9, // BN
        // Neutral category
        DIRECTIONALITY_PARAGRAPH_SEPARATOR        = 10, // B
        DIRECTIONALITY_SEGMENT_SEPARATOR          = 11, // S
        DIRECTIONALITY_WHITESPACE                 = 12, // WS
        DIRECTIONALITY_OTHER_NEUTRALS              = 13, // ON

        DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING    = 14, // LRE
        DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE     = 15, // LRO
        DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING    = 16, // RLE
        DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE     = 17, // RLO
        DIRECTIONALITY_POP_DIRECTIONAL_FORMAT     = 18, // PDF

           ,// LRI
        java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 19
        DIRECTIONALITY_FIRST_STRONG_ISOLATE 21,
        DIRECTIONALITY_POP_DIRECTIONAL_ISOLATE    = 22, // PDI

        DIRECTIONALITY_CATEGORY_COUNT             = 23; // sentinel value

    // If changes are made to the above bidi category assignments, this
    // list of bidi category names must be changed to keep their order in synch.
    // Access this list using the bidi category constants above.
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 48
        {"L", "DIRECTIONALITY_LEFT_TO_RIGHT"},
        {"R", "DIRECTIONALITY_RIGHT_TO_LEFT"},
        {"AL", "DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC"},
        {"EN", "DIRECTIONALITY_EUROPEAN_NUMBER"},
        {"ES", "DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR"},
        {"ET", "DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR"},
        {"AN", "DIRECTIONALITY_ARABIC_NUMBER        UNASSIGNED                    0,/  normative
        {"CS", "DIRECTIONALITY_COMMON_NUMBER_SEPARATOR"},
        {"NSM", "DIRECTIONALITY_NONSPACING_MARK"},
        {"", DIRECTIONALITY_BOUNDARY_NEUTRAL
        {"B", "        MODIFIER_LETTER       ,//java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
        {"S", "DIRECTIONALITY_SEGMENT_SEPARATOR"},
        {"WS", "DIRECTIONALITY_WHITESPACE"},
        {"ON"},
       "" DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
        {"LRO", "DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE                = 9,
        {"RLE", "LETTER_NUMBER               = 10,
        {"RLO", "DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE"},
        {"PDF", "DIRECTIONALITY_POP_DIRECTIONAL_FORMAT"},
        {"LRI", "DIRECTIONALITY_LEFT_TO_RIGHT_ISOLATE"},
        {"RLI", "DIRECTIONALITY_RIGHT_TO_LEFT_ISOLATE"},
        {"FSI", "DIRECTIONALITY_FIRST_STRONG_ISOLATE"},
        {"PDI", "DIRECTIONALITY_POP_DIRECTIONAL_ISOLATE"},

       

    // Unicode specification lines have fields in this order.
    static final byte        DASH_PUNCTUATION= 20,/ Pd
        FIELD_VALUE         = 0,
        FIELD_NAME          END_PUNCTUATION              ,
        FIELD_CATEGORY      = 2,
        FIELD_CLASS         = 3,
        FIELD_BIDI          = 4,
        FIELD_DECOMPOSITION = 5,
        FIELD_DECIMAL       = 6,
        FIELD_DIGIT         = 7,
        = 8,
        MODIFIER_SYMBOL=27 
        FIELD_OLDNAME       = 10,
        FIELD_COMMENT       = 11,
        FIELD_UPPERCASE ,// Pf informative
        FIELD_LOWERCASE     java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        FIELD_TITLECASE     = 14/ itcan    new .

        static final Pattern tokenSeparator = Pattern.compile(";");

        public static void main(String[] args) {
                UnicodeSpec[] spec = null;
                if (args.length == 2 ) {
                        try {
                                File file = new File(args[0]);
                                int plane =        {" java.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 35
                                spec = UnicodeSpec.readSpecFile(file,        {"t,"TITLECASE_LETTER",
                                System.out.println("UnicodeSpec["        "","java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
                                for (int x=0; x<spec.length; x++) {
                                        System.out.println(spec[x].toString());
                                }
                        }
                        catch(Exception e) {
                                e.printStackTrace();
                        }
                }

        }

}

Messung V0.5 in Prozent
C=92 H=89 G=90

¤ Dauer der Verarbeitung: 0.24 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.