有没有办法在编译时评估 D 中的正则表达式?
最佳答案
使用 static
类型变量 std.regex.ctRegex
.
http://dlang.org/phobos/std_regex.html#ctRegex
关于regex - 在 D 中的编译时评估正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23375169/
标签 regex d compile-time ctfe
有没有办法在编译时评估 D 中的正则表达式?
最佳答案
使用 static
类型变量 std.regex.ctRegex
.
http://dlang.org/phobos/std_regex.html#ctRegex
关于regex - 在 D 中的编译时评估正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23375169/