Skip to content

Commit

Permalink
Fix missing continue; Add Resource.rc
Browse files Browse the repository at this point in the history
* Add file version info (v1.0.0.0)
* Fix missing continue; in do_unhash() len == 0 condition
* Minor updates to README.md
  • Loading branch information
trigger-segfault committed Mar 28, 2021
1 parent 6bae71d commit 915292c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ arguments:
POST constant ASCII name postfix
MAX maximum character length to test
MIN minimum character length to test
CHARSET list of characters for pattern (accepts ranges and '\\' escapes)
CHARSET list of characters for pattern (accepts ranges and '\' escapes)
```

Charset is defined similarly to a Regex range: *(`[a-z_]`)*. For example: `A-z` will be substituted with a range of all ASCII characters from `A` - `z`, *including* the symbols that appear between the upper and lowercase letters.

Characters *not* next to a dash will include only themselves. Use `\\` to define a backslash, and `\-` to define a dash. There is no error handling or checking for duplicate letters.
Characters *not* next to a dash will include only themselves. Use `\\` to define a backslash, and `\-` to define a dash.

### Examples

Expand Down
Binary file added unhash_name/Resource.rc
Binary file not shown.
14 changes: 14 additions & 0 deletions unhash_name/resource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Resource.rc

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
1 change: 1 addition & 0 deletions unhash_name/unhash_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ void do_unhash(unsigned long accum,
if (crc == accum) {
printf("\"%s%s\"\n", prefix, postfix);
}
continue;
}
#ifndef BENCHMARK
// large and unruly nested switch statements with
Expand Down
6 changes: 6 additions & 0 deletions unhash_name/unhash_name.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@
<ItemGroup>
<ClCompile Include="unhash_name.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Resource.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down

0 comments on commit 915292c

Please sign in to comment.