intl/icu/source/i18n/uspoof_wsconf.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 /*
     2 ******************************************************************************
     3 *
     4 *   Copyright (C) 2008-2012, International Business Machines
     5 *   Corporation and others.  All Rights Reserved.
     6 *
     7 ******************************************************************************
     8 *   file name:  uspoof_buildwsconf.h
     9 *   encoding:   US-ASCII
    10 *   tab size:   8 (not used)
    11 *   indentation:4
    12 *
    13 *   created on: 2009Jan19
    14 *   created by: Andy Heninger
    15 *
    16 *   Internal classes and functions
    17 *   for compiling whole script confusable data into its binary (runtime) form.
    18 */
    20 #ifndef __USPOOF_BUILDWSCONF_H__
    21 #define __USPOOF_BUILDWSCONF_H__
    23 #include "unicode/utypes.h"
    25 #if !UCONFIG_NO_NORMALIZATION
    27 #if !UCONFIG_NO_REGULAR_EXPRESSIONS 
    29 #include "uspoof_impl.h"
    30 #include "utrie2.h"
    33 U_NAMESPACE_BEGIN
    35 //
    36 // class BuilderScriptSet.   Represents the set of scripts (Script Codes)
    37 //             containing characters that are confusable with one specific
    38 //             code point.
    39 //
    41 class BuilderScriptSet: public UMemory {
    42   public:
    43     UChar32      codePoint;       // The source code point.
    44     UTrie2      *trie;            // Any-case or Lower-case Trie.
    45                                   //   These Trie tables are the final result of the
    46                                   //   build.  This flag indicates which of the two
    47                                   //   this set of data is for.
    48     ScriptSet   *sset;            // The set of scripts itself.
    50                                   // Vectors of all B
    51     uint32_t     index;           // Index of this set in the Build Time vector
    52                                   //   of script sets.
    53     uint32_t     rindex;          // Index of this set in the final (runtime)
    54                                   //   array of sets.
    55     UBool        scriptSetOwned;  // True if this BuilderScriptSet owns (should delete)
    56                                   //   its underlying sset.
    58     BuilderScriptSet();
    59     ~BuilderScriptSet();
    60 };
    63 void buildWSConfusableData(SpoofImpl *spImpl, const char * confusablesWS,
    64           int32_t confusablesWSLen, UParseError *pe, UErrorCode &status); 
    66 U_NAMESPACE_END
    68 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS 
    69 #endif // !UCONFIG_NO_NORMALIZATION 
    70 #endif

mercurial