Beispiel #1
0
        /// <summary>
        /// 查找代码中所有中文字符串
        /// </summary>
        /// <param name="strCode">含有中文字符串的代码</param>
        /// <returns>中文字符串列表</returns>
        public List <string> GetStringList(string strCode)
        {
            List <string> list  = new List <string>();
            DFATable      dfa   = new DFATable();
            Hashtable     table = dfa.getStringList(strCode);

            foreach (string s in table.Values)
            {
                list.Add(s);
            }

            return(list);
        }
Beispiel #2
0
        /// <summary>
        /// 获取包含中文字符串信息的hashtable
        /// </summary>
        /// <param name="strCode">原字符串</param>
        /// <returns>包含中文字符串信息的hashtable</returns>
        private Hashtable GetSubstringHashtable(string strCode)
        {
            DFATable dfa = new DFATable();

            return(dfa.getStringList(strCode));
        }
Beispiel #3
0
        /// <summary>
        /// 获取包含中文字符串信息的hashtable
        /// </summary>
        /// <param name="strCode">原字符串</param>
        /// <returns>包含中文字符串信息的hashtable</returns>
        private Hashtable GetSubstringHashtable(string strCode)
        {
            DFATable dfa = new DFATable();

            return dfa.getStringList(strCode);
        }
Beispiel #4
0
        /// <summary>
        /// 查找代码中所有中文字符串
        /// </summary>
        /// <param name="strCode">含有中文字符串的代码</param>
        /// <returns>中文字符串列表</returns>
        public List<string> GetStringList(string strCode)
        {
            List<string> list = new List<string>();
            DFATable dfa = new DFATable();
            Hashtable table = dfa.getStringList(strCode);
            foreach (string s in table.Values)
            {
                list.Add(s);
            }

            return list;
        }