摘要
结合通用函数库的特点和正则表达式的优点设计和实现了一套完善、简单、逻辑结构清晰的转换方法和实现代码,该方法不仅保证了最终结果的绝对完全一致,而且解决了因C语言拥有指针类型而存在的数据类型不一致问题,并通过大量测试用例验证了该方法的正确性、有效性和高效性。
The library function of C is very common used in program design, while the regular expression has the strong power in string query and matching. Analyzed the characteristics of library functions, combined the advantages of regular expressions, design a transformation method to transform library functions of C into Java. The method resolve the inconsistent problem of data type caused by pointer type of C, ensure that the final results is absolutely consistent with before. Pass the test to verify the correctness of the method, effectiveness and efficiency.
出处
《计算机应用》
CSCD
北大核心
2009年第B06期275-278,共4页
journal of Computer Applications
基金
上海市教委基金资助项目(05DZ14)
关键词
正则表达式
C语言库函数
编程语言转换
regular expression
library functions of C
program language transformation