Ignore:
Timestamp:
Dec 14, 2018, 2:28:41 PM (9 months ago)
Author:
nmedfort
Message:

redesign of PopCount? calculation + mem leak fix

Location:
icGREP/icgrep-devel/icgrep/re/Unicode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/Unicode/decomposition.cpp

    r6186 r6228  
    107107canonicalMapped(decompTypeObj->GetCodepointSet(DT_ns::Can)),
    108108cc0Set(cccObj->GetCodepointSet(CCC_ns::NR)),
    109 selfNFKD(decompMappingObj->GetReflexiveSet()),
    110 selfCaseFold(caseFoldObj->GetReflexiveSet()),
     109selfNFKD(std::move(decompMappingObj->GetReflexiveSet())),
     110selfCaseFold(std::move(caseFoldObj->GetReflexiveSet())),
    111111HangulPrecomposed(Hangul_SBase, Hangul_SBase + Hangul_SCount - 1) {
    112112
  • icGREP/icgrep-devel/icgrep/re/Unicode/equivalence.cpp

    r6181 r6228  
    6666const unsigned Hangul_NCount = 588;
    6767const unsigned Hangul_SCount = 11172;
    68 static UnicodeSet HangulPrecomposed = UnicodeSet(Hangul_SBase, Hangul_SBase + Hangul_SCount - 1);
    6968
    7069
     
    8685        sLCobj(cast<StringPropertyObject>(property_object_table[slc])),
    8786        ccc0set(cccObj->GetCodepointSet(CCC_ns::NR)),
    88         selfUC(sUCobj->GetReflexiveSet()),
    89         selfLC(sLCobj->GetReflexiveSet())
     87        selfUC(std::move(sUCobj->GetReflexiveSet())),
     88        selfLC(std::move(sLCobj->GetReflexiveSet()))
    9089        {}
    9190protected:
Note: See TracChangeset for help on using the changeset viewer.