コード例 #1
0
        unsafe internal CultureTable(String fileName, bool fromAssembly) : base(fileName, fromAssembly)
        {
            if (!IsValid)   // intialized in SetDataItemPointers
                return;
                
            hashByName = new Hashtable();
            hashByLcid = new Hashtable();
            hashByRegionName = new Hashtable();

            // Set up index table for finding data item from culture or region name.
            m_pCultureNameIndex = (CultureNameOffsetItem*)(m_pDataFileStart + m_pCultureHeader->cultureNameTableOffset);
            m_pRegionNameIndex = (RegionNameOffsetItem*)(m_pDataFileStart + m_pCultureHeader->regionNameTableOffset);
            m_pIetfNameIndex = (IetfNameOffsetItem*)(m_pDataFileStart + m_pCultureHeader->ietfNameTableOffset);

            // Set up index table for finding data item from LCID.
            m_pCultureIDIndex = (IDOffsetItem*)(m_pDataFileStart + m_pCultureHeader->cultureIDTableOffset);
        }
コード例 #2
0
        unsafe internal CultureTable(String fileName, bool fromAssembly) : base(fileName, fromAssembly)
        {
            if (!IsValid)   // intialized in SetDataItemPointers
            {
                return;
            }

            hashByName       = new Hashtable();
            hashByLcid       = new Hashtable();
            hashByRegionName = new Hashtable();

            // Set up index table for finding data item from culture or region name.
            m_pCultureNameIndex = (CultureNameOffsetItem *)(m_pDataFileStart + m_pCultureHeader->cultureNameTableOffset);
            m_pRegionNameIndex  = (RegionNameOffsetItem *)(m_pDataFileStart + m_pCultureHeader->regionNameTableOffset);
            m_pIetfNameIndex    = (IetfNameOffsetItem *)(m_pDataFileStart + m_pCultureHeader->ietfNameTableOffset);

            // Set up index table for finding data item from LCID.
            m_pCultureIDIndex = (IDOffsetItem *)(m_pDataFileStart + m_pCultureHeader->cultureIDTableOffset);
        }