File tree Expand file tree Collapse file tree 5 files changed +37
-1
lines changed Expand file tree Collapse file tree 5 files changed +37
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "type" : " lldb" ,
9
+ "request" : " launch" ,
10
+ "name" : " Debug" ,
11
+ "program" : " ${workspaceFolder}/a.out" ,
12
+ "args" : [],
13
+ "cwd" : " ${workspaceFolder}"
14
+ }
15
+ ]
16
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version =" 1.0" >
4
+ <dict >
5
+ <key >CFBundleDevelopmentRegion </key >
6
+ <string >English </string >
7
+ <key >CFBundleIdentifier </key >
8
+ <string >com.apple.xcode.dsym.a.out </string >
9
+ <key >CFBundleInfoDictionaryVersion </key >
10
+ <string >6.0 </string >
11
+ <key >CFBundlePackageType </key >
12
+ <string >dSYM </string >
13
+ <key >CFBundleSignature </key >
14
+ <string >???? </string >
15
+ <key >CFBundleShortVersionString </key >
16
+ <string >1.0 </string >
17
+ <key >CFBundleVersion </key >
18
+ <string >1 </string >
19
+ </dict >
20
+ </plist >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ struct SearchPattern {
29
29
std::optional<std::size_t > boyer_moore_horspool (SearchPattern pattern, std::string_view haystack) {
30
30
for (std::size_t h = 0 ; h < haystack.length () - pattern.needle .length () + 1 ;) {
31
31
// Search this placement of the needle.
32
- bool found = false ;
32
+ bool found = true ;
33
33
for (std::size_t n = pattern.needle .length () - 1 ; ; n--) {
34
34
// Check the needle in reverse.
35
35
if (haystack[h + n] != pattern.needle [n]) {
You can’t perform that action at this time.
0 commit comments