Exemplo n.º 1
0
        /// <summary>
        /// 查找代码中所有中文字符串
        /// </summary>
        /// <param name="strCode">含有中文字符串的代码</param>
        /// <returns>中文字符串列表</returns>
        public static List <string> GetStringList(string strCode)
        {
            List <string> list = new List <string>();

            GameLuaEditor.DFATable dfa = new GameLuaEditor.DFATable();
            Hashtable table            = dfa.getStringList(strCode);

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

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

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

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

            return dfa.getStringList(strCode);
        }