GCC 4.9支持regex的哪一部分? [英] What part of regex is supported by GCC 4.9?

查看:203
本文介绍了GCC 4.9支持regex的哪一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白这一点。 GCC应该支持但根据其
http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1

I don't get this. GCC is supposed to support but accoriding to their http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1

状态页 7正则表达式不支持。

Status page "7 Regular Expressions are not supported".

,然后在 28个正则表达式中检查它们是否受支持

But then at "28 Regular expressions" - they are checked as supported

< a href = http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2011 rel = nofollow> http://gcc.gnu.org/onlinedocs/libstdc++/ manual / status.html#status.iso.2011

请您说明什么是标准,什么不是标准?

Could you please explain what is actually the standard and what is not?

推荐答案

GCC 4.9确实支持C ++ 11 < regex> 功能,但不支持tr1版本。注意,区别在于后者的部分(全部?)存在于 tr1 :: 名称空间中,而C ++ 11 ® 在命名空间 std 中。 C ++ 11发布已经有一段时间了,倒退并添加tr1支持没有什么意义。

GCC 4.9 does indeed support the C++11 <regex> functionality but not the tr1 version. Note that the difference is that parts (all?) of the latter exist within a tr1:: namespace while the C++11 <regex> is within namespace std. There's not much point to going backwards and adding in tr1 support when C++11 has been published for some time now.

这篇关于GCC 4.9支持regex的哪一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆