Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: icu46/source/i18n/uspoof_wsconf.h

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/i18n/uspoof_impl.cpp ('k') | icu46/source/i18n/uspoof_wsconf.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/i18n/uspoof_wsconf.h
===================================================================
--- icu46/source/i18n/uspoof_wsconf.h (revision 0)
+++ icu46/source/i18n/uspoof_wsconf.h (revision 0)
@@ -0,0 +1,70 @@
+/*
+******************************************************************************
+*
+* Copyright (C) 2008-2009, International Business Machines
+* Corporation and others. All Rights Reserved.
+*
+******************************************************************************
+* file name: uspoof_buildwsconf.h
+* encoding: US-ASCII
+* tab size: 8 (not used)
+* indentation:4
+*
+* created on: 2009Jan19
+* created by: Andy Heninger
+*
+* Internal classes and functions
+* for compiling whole script confusable data into its binary (runtime) form.
+*/
+
+#ifndef __USPOOF_BUILDWSCONF_H__
+#define __USPOOF_BUILDWSCONF_H__
+
+#include "unicode/utypes.h"
+
+#if !UCONFIG_NO_NORMALIZATION
+
+#if !UCONFIG_NO_REGULAR_EXPRESSIONS
+
+#include "uspoof_impl.h"
+#include "utrie2.h"
+
+
+U_NAMESPACE_BEGIN
+
+//
+// class BuilderScriptSet. Represents the set of scripts (Script Codes)
+// containing characters that are confusable with one specific
+// code point.
+//
+
+class BuilderScriptSet: public UMemory {
+ public:
+ UChar32 codePoint; // The source code point.
+ UTrie2 *trie; // Any-case or Lower-case Trie.
+ // These Trie tables are the final result of the
+ // build. This flag indicates which of the two
+ // this set of data is for.
+ ScriptSet *sset; // The set of scripts itself.
+
+ // Vectors of all B
+ uint32_t index; // Index of this set in the Build Time vector
+ // of script sets.
+ uint32_t rindex; // Index of this set in the final (runtime)
+ // array of sets.
+ UBool scriptSetOwned; // True if this BuilderScriptSet owns (should delete)
+ // its underlying sset.
+
+ BuilderScriptSet();
+ ~BuilderScriptSet();
+};
+
+U_NAMESPACE_END
+
+void buildWSConfusableData(SpoofImpl *spImpl, const char * confusablesWS,
+ int32_t confusablesWSLen, UParseError *pe, UErrorCode &status);
+
+
+#endif // !UCONFIG_NO_REGULAR_EXPRESSIONS
+#endif // !UCONFIG_NO_NORMALIZATION
+#endif
Property changes on: icu46/source/i18n/uspoof_wsconf.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/i18n/uspoof_impl.cpp ('k') | icu46/source/i18n/uspoof_wsconf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698