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

Unified Diff: source/i18n/uspoof_conf.h

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months 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 | « source/i18n/uspoof_build.cpp ('k') | source/i18n/uspoof_conf.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/uspoof_conf.h
diff --git a/source/i18n/uspoof_conf.h b/source/i18n/uspoof_conf.h
index b2be5d0388ea07e5fee48b303e19fa30081d605f..bc5e4a909fa0c79692c9d692527ffbc56af9eaf9 100644
--- a/source/i18n/uspoof_conf.h
+++ b/source/i18n/uspoof_conf.h
@@ -1,7 +1,9 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
-* Copyright (C) 2008-2011, International Business Machines
+* Copyright (C) 2008-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@@ -23,6 +25,8 @@
#if !UCONFIG_NO_REGULAR_EXPRESSIONS
+#include "unicode/uregex.h"
+#include "uhash.h"
#include "uspoof_impl.h"
U_NAMESPACE_BEGIN
@@ -34,9 +38,9 @@ U_NAMESPACE_BEGIN
struct SPUString : public UMemory {
UnicodeString *fStr; // The actual string.
- int32_t fStrTableIndex; // Index into the final runtime data for this string.
- // (or, for length 1, the single string char itself,
- // there being no string table entry for it.)
+ int32_t fCharOrStrTableIndex; // Index into the final runtime data for this
+ // string (or, for length 1, the single string char
+ // itself, there being no string table entry for it.)
SPUString(UnicodeString *s);
~SPUString();
};
@@ -84,10 +88,7 @@ class ConfusabledataBuilder : public UMemory {
private:
SpoofImpl *fSpoofImpl;
UChar *fInput;
- UHashtable *fSLTable;
- UHashtable *fSATable;
- UHashtable *fMLTable;
- UHashtable *fMATable;
+ UHashtable *fTable;
UnicodeSet *fKeySet; // A set of all keys (UChar32s) that go into the four mapping tables.
// The binary data is first assembled into the following four collections, then
@@ -95,7 +96,6 @@ class ConfusabledataBuilder : public UMemory {
UVector *fKeyVec;
UVector *fValueVec;
UnicodeString *fStringTable;
- UVector *fStringLengthsTable;
SPUStringPool *stringPool;
URegularExpression *fParseLine;
« no previous file with comments | « source/i18n/uspoof_build.cpp ('k') | source/i18n/uspoof_conf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698