X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/ba6d6ed23dec08b1cd5700a128c0752491c10ac9..51004dcb01e06fef634b61be77ed73dd61cb6db9:/icuSources/i18n/uspoof_wsconf.cpp diff --git a/icuSources/i18n/uspoof_wsconf.cpp b/icuSources/i18n/uspoof_wsconf.cpp index 6ddc9c33..ca232834 100644 --- a/icuSources/i18n/uspoof_wsconf.cpp +++ b/icuSources/i18n/uspoof_wsconf.cpp @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 2008-2012, International Business Machines +* Copyright (C) 2008-2013, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -29,6 +29,7 @@ #include "unicode/uregex.h" #include "unicode/ustring.h" #include "cmemory.h" +#include "scriptset.h" #include "uspoof_impl.h" #include "uhash.h" #include "uvector.h" @@ -244,8 +245,8 @@ void buildWSConfusableData(SpoofImpl *spImpl, const char * confusablesWS, scriptSets->addElement(bsset, status); utrie2_set32(table, cp, setIndex, &status); } - bsset->sset->Union(targScript); - bsset->sset->Union(srcScript); + bsset->sset->set(targScript, status); + bsset->sset->set(srcScript, status); if (U_FAILURE(status)) { goto cleanup;