Example #1
0
        void BuildWord(StTxtPara stp, string sContents, int ichMin, int ichLim)
        {
            string stWord = sContents.Substring(ichMin, ichLim - ichMin);

            MultiLevelConc.ContextInfo ci =
                new MultiLevelConc.ContextInfo(
                    stp.Hvo,
                    (int)BaseStTxtPara.StTxtParaTags.kflidContents,
                    ichMin,
                    stWord.Length,
                    false);                     // no editing for now.
            ArrayList alOccurrences = (ArrayList)m_hmStrList[stWord];

            if (alOccurrences == null)
            {
                alOccurrences       = new ArrayList();
                m_hmStrList[stWord] = alOccurrences;
                MultiLevelConc.SummaryInfo si = new MultiLevelConc.SummaryInfo(
                    GetSubString(stp.Contents.UnderlyingTsString, ichMin, ichLim),
                    alOccurrences);
                m_alSummaries.Add(si);
            }
            alOccurrences.Add(ci);
        }
Example #2
0
		void BuildWord(StTxtPara stp, string sContents, int ichMin, int ichLim)
		{
			string stWord = sContents.Substring(ichMin, ichLim - ichMin);
			MultiLevelConc.ContextInfo ci =
				new MultiLevelConc.ContextInfo(
					stp.Hvo,
					(int)BaseStTxtPara.StTxtParaTags.kflidContents,
					ichMin,
					stWord.Length,
					false); // no editing for now.
			ArrayList alOccurrences = (ArrayList)m_hmStrList[stWord];
			if (alOccurrences == null)
			{
				alOccurrences = new ArrayList();
				m_hmStrList[stWord] = alOccurrences;
				MultiLevelConc.SummaryInfo si = new MultiLevelConc.SummaryInfo(
					GetSubString(stp.Contents.UnderlyingTsString, ichMin, ichLim),
					alOccurrences);
				m_alSummaries.Add(si);
			}
			alOccurrences.Add(ci);
		}