C:使用MinGW正则表达式库 [英] C: Regex library with MinGW

查看:152
本文介绍了C:使用MinGW正则表达式库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何安装一个C正则表达式到MinGW的?我使用的是海湾合作委员会...
我运行Windows XP。
我preFER一个更新的。
谢谢你。

How do I install a C regex into MinGW? I'm using it's gcc... I'm running Windows XP. I prefer a updated one. Thank you.

推荐答案

您有几种选择:

  • mingw-libgnurx from the user-contributed area of MinGW; from README:

正则表达式的功能提取到一个单独的库,为Win32

regex functionality from glibc 2.5 extracted into a separate library, for Win32

MSYS正则表达式 ;
从包装说明:

  • msys-regex; from the package description:

    当前版本派生
                从GNULIB实现正则表达式的模块,但旧的
                从古老的GNU正则表达式得到的运行时版本
                库中,具有稍微不同的界面,可用于
                传统MSYS应用

    Current versions are derived from the GNULIB implementation of the regex module, but an older version of the runtime derived from the venerable GNU regex library, with a slightly different interface, is available for legacy MSYS applications

    PCRE 可以使用MinGW编译

  • pcre can be compiled with MinGW

    如果您想在Fedora上运行的MinGW交叉编译器,libgnurx和PCRE是在资源库中​​,的准备与MinGW的来使用。

    If you'd run MinGW cross-compiler on Fedora, libgnurx and pcre are in the repository, ready to use with MinGW.

    对于那些谁使用C ++ 升压正则表达式(其中钻进TR1)和 QRegExp (从QT)也选择。

    For those who use C++ Boost RegEx (which got into TR1) and QRegExp (from Qt) are also options.

    这篇关于C:使用MinGW正则表达式库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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