5
Do not call std::string::find_first_of or std::string::find with a string of
6
characters to locate that has the size 1. Use the version of
7
std::string::find that takes a single character to locate instead. Same for
11
error_msg = "Do not use find(\"a\"), use find('a')."
13
regexp = r"""r?find(_(first|last)_of)? *\("([^\]|\\[nt\"])"[,)]"""
20
'find_first_of("\\n")',
21
'find_last_of("\\n")',
24
'find_first_of("\\t")',
25
'find_last_of("\\t")',
28
'find_first_of("\\\\")',
29
'find_last_of("\\\\")',
32
'find_first_of("\\"")',
33
'find_last_of("\\"")',
36
'find_first_of("a", 1)',
37
'find_last_of("a", 1)',