Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb667cbe

Browse files
committed
Fehlermeldung eingebaut.
1 parent35af54d commitb667cbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎pcre2.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ int main()
3636

3737
pcre2_match_data* match_data =pcre2_match_data_create_from_pattern(re,nullptr);
3838

39+
if (!match_data) {
40+
std::cout <<"PCRE2 unable to create match data" << std::endl;
41+
return2;
42+
}
43+
3944
for (auto line : lines) {
4045
const PCRE2_SPTR subject = (PCRE2_SPTR) line.c_str();
4146
constint rc =pcre2_match(re, subject, line.size(),0,0, match_data,nullptr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp