regex_match和char *应该如何工作?

时间:2018-08-17 23:45:17

标签: regex c++11 standard-library

标准库针对简单的char *字符串定义regex_match。此外,仅当 entire 字符串匹配时,regex_match才返回true,但是此函数不为char *字符串采用length参数。 regex_match在这种情况下如何工作?

函数原型:

 bool regex_match (const charT* s, const basic_regex<charT,traits>& rgx,
      regex_constants::match_flag_type flags = regex_constants::match_default);

0 个答案:

没有答案