private static CharInfo mutableCopyOf ( CharInfo charInfo ) { CharInfo copy = new CharInfo ( ) ; int max = charInfo . array_of_bits . length ; System . arraycopy ( charInfo . array_of_bits , 0 , copy . array_of_bits , 0 , max ) ; copy . firstWordNotUsed = charInfo . firstWordNotUsed ; max = charInfo . shouldMapAttrChar_ASCII . length ; System . arraycopy ( charInfo . shouldMapAttrChar_ASCII , 0 , copy . shouldMapAttrChar_ASCII , 0 , max ) ; max = charInfo . shouldMapTextChar_ASCII . length ; System . arraycopy ( charInfo . shouldMapTextChar_ASCII , 0 , copy . shouldMapTextChar_ASCII , 0 , max ) ; // utility field copy.m_charKey is already created in the default constructor copy . m_charToString = ( HashMap ) charInfo . m_charToString . clone ( ) ; copy . onlyQuotAmpLtGt = charInfo . onlyQuotAmpLtGt ; return copy ; }
Create a mutable copy of the cached one .