mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Merge pull request #5013 from wilzbach/fix-16191
Fix 16191 - std/digest/digest.d should be renamed to package.d merged-on-behalf-of: unknown
This commit is contained in:
commit
cd94d23565
13 changed files with 1253 additions and 1223 deletions
|
@ -114,16 +114,16 @@ asm_style_check="-std.math"
|
|||
; Checks for assignment to auto-ref function parameters
|
||||
auto_ref_assignment_check="-std.algorithm.mutation,-std.format,-std.typecons"
|
||||
; Checks for variables that could be declared immutable
|
||||
could_be_immutable_check="-std.algorithm.comparison,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.base64,-std.bigint,-std.bitmanip,-std.complex,-std.concurrency,-std.container,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.container.util,-std.conv,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.digest.crc,-std.digest.digest,-std.digest.hmac,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.logger.multilogger,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.biguintx86,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.json,-std.math,-std.mathspecial,-std.meta,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.generator,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.tests,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.windows.registry,-std.xml,-std.zip,-std.zlib"
|
||||
could_be_immutable_check="-std.algorithm.comparison,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.base64,-std.bigint,-std.bitmanip,-std.complex,-std.concurrency,-std.container,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.container.util,-std.conv,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.digest.crc,-std.digest,-std.digest.hmac,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.logger.multilogger,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.biguintx86,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.json,-std.math,-std.mathspecial,-std.meta,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.generator,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.tests,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.windows.registry,-std.xml,-std.zip,-std.zlib"
|
||||
; Check for poor exception handling practices
|
||||
exception_check="-std.concurrency,-std.net.curl,-std.parallelism,-std.range,-std.socket,-std.typecons"
|
||||
; Checks for poor placement of function attributes
|
||||
function_attribute_check="-std.algorithm.iteration,-std.concurrency,-std.conv,-std.datetime.interval,-std.exception,-std.functional,-std.net.curl,-std.numeric,-std.parallelism,-std.random,-std.range,-std.range.primitives,-std.socket,-std.traits,-std.typecons,-std.uni"
|
||||
; Check for public declarations without a documented unittest
|
||||
has_public_example="-etc.c.curl,-etc.c.sqlite3,-etc.c.zlib,-std.bitmanip,-std.complex,-std.concurrency,-std.container.array,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.conv,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.demangle,-std.digest.digest,-std.digest.hmac,-std.digest.murmurhash,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.null_allocator,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.common,-std.experimental.allocator.mmap_allocator,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.logger.filelogger,-std.experimental.logger.multilogger,-std.experimental.typecons,-std.file,-std.format,-std.getopt,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.json,-std.math,-std.mathspecial,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.ir,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.xml,-std.zip,-std.zlib"
|
||||
has_public_example="-etc.c.curl,-etc.c.sqlite3,-etc.c.zlib,-std.bitmanip,-std.complex,-std.concurrency,-std.container.array,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.conv,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.demangle,-std.digest,-std.digest.hmac,-std.digest.murmurhash,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.null_allocator,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.common,-std.experimental.allocator.mmap_allocator,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.logger.filelogger,-std.experimental.logger.multilogger,-std.experimental.typecons,-std.file,-std.format,-std.getopt,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.json,-std.math,-std.mathspecial,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.ir,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.xml,-std.zip,-std.zlib"
|
||||
; Check for sortedness of imports
|
||||
imports_sortedness="+disabled"
|
||||
;imports_sortedness="-etc.c.curl,-std.algorithm.comparison,-std.algorithm.internal,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.c.freebsd.socket,-std.c.linux.pthread,-std.c.process,-std.complex,-std.concurrency,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.container.util,-std.conv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.systime,-std.datetime.timezone,-std.digest.digest,-std.digest.hmac,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.common,-std.experimental.allocator.mallocator,-std.experimental.allocator.mmap_allocator,-std.experimental.allocator.showcase,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.math.biguintcore,-std.internal.test.dummyrange,-std.json,-std.math,-std.meta,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.generator,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.tests,-std.signals,-std.socket,-std.stdio,-std.string,-std.uni,-std.utf,-std.uuid,-std.variant,-std.windows.charset,-std.windows.registry,-std.windows.syserror,-std.zip"
|
||||
;imports_sortedness="-etc.c.curl,-std.algorithm.comparison,-std.algorithm.internal,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.c.freebsd.socket,-std.c.linux.pthread,-std.c.process,-std.complex,-std.concurrency,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.container.util,-std.conv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.systime,-std.datetime.timezone,-std.digest,-std.digest.hmac,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.common,-std.experimental.allocator.mallocator,-std.experimental.allocator.mmap_allocator,-std.experimental.allocator.showcase,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.math.biguintcore,-std.internal.test.dummyrange,-std.json,-std.math,-std.meta,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.generator,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.tests,-std.signals,-std.socket,-std.stdio,-std.string,-std.uni,-std.utf,-std.uuid,-std.variant,-std.windows.charset,-std.windows.registry,-std.windows.syserror,-std.zip"
|
||||
; Checks for labels with the same name as variables
|
||||
label_var_same_name_check="-std.algorithm.iteration,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.conv,-std.encoding,-std.experimental.allocator.building_blocks.segregator,-std.experimental.typecons,-std.format,-std.internal.digest.sha_SSSE3,-std.parallelism,-std.process,-std.typecons,-std.utf"
|
||||
; Checks for subtraction from .length properties
|
||||
|
@ -138,26 +138,26 @@ long_line_check="-std.datetime.timezone"
|
|||
mismatched_args_check="-std.container.dlist,-std.encoding,-std.internal.math.biguintcore,-std.math,-std.net.curl,-std.numeric,-std.range.primitives,-std.uni"
|
||||
; Check number literals for readability
|
||||
number_style_check="+disabled"
|
||||
;number_style_check="-std.algorithm.iteration,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.container.array,-std.conv,-std.datetime.date,-std.datetime.systime,-std.datetime.timezone,-std.digest.crc,-std.digest.digest,-std.digest.md,-std.digest.ripemd,-std.digest.sha,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.checkedint,-std.file,-std.format,-std.functional,-std.internal.math.biguintcore,-std.internal.math.gammafunction,-std.json,-std.math,-std.outbuffer,-std.parallelism,-std.random,-std.range,-std.regex.internal.generator,-std.utf,-std.zip,-std.zlib"
|
||||
;number_style_check="-std.algorithm.iteration,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.container.array,-std.conv,-std.datetime.date,-std.datetime.systime,-std.datetime.timezone,-std.digest.crc,-std.digest,-std.digest.md,-std.digest.ripemd,-std.digest.sha,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.checkedint,-std.file,-std.format,-std.functional,-std.internal.math.biguintcore,-std.internal.math.gammafunction,-std.json,-std.math,-std.outbuffer,-std.parallelism,-std.random,-std.range,-std.regex.internal.generator,-std.utf,-std.zip,-std.zlib"
|
||||
; Checks that opEquals, opCmp, toHash, and toString are either const, immutable
|
||||
; , or inout.
|
||||
object_const_check="-std.algorithm.searching,-std.array,-std.bitmanip,-std.concurrency,-std.container.rbtree,-std.conv,-std.datetime.interval,-std.encoding,-std.exception,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.format,-std.functional,-std.meta,-std.numeric,-std.range,-std.regex,-std.stdio,-std.typecons,-std.variant,-std.xml"
|
||||
; Checks that opEquals and toHash are both defined or neither are defined
|
||||
opequals_tohash_check="-std.algorithm.searching,-std.array,-std.complex,-std.container.array,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.datetime,-std.datetime.date,-std.experimental.checkedint,-std.functional,-std.internal.test.dummyrange,-std.json,-std.numeric,-std.random,-std.range,-std.socket,-std.traits,-std.typecons,-std.uni"
|
||||
; Check for properly documented public functions (Returns, Params)
|
||||
properly_documented_public_functions="-etc.c.odbc.sql,-etc.c.odbc.sqlext,-etc.c.zlib,-std.algorithm.comparison,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.ascii,-std.base64,-std.bigint,-std.bitmanip,-std.complex,-std.container,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.container.util,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.demangle,-std.digest.crc,-std.digest.digest,-std.digest.hmac,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.null_allocator,-std.experimental.allocator.building_blocks.quantizer,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.scoped_allocator,-std.experimental.allocator.building_blocks.segregator,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.common,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.showcase,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.logger.filelogger,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.internal.unicode_tables,-std.json,-std.math,-std.mathspecial,-std.meta,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.xml,-std.zip,-std.zlib"
|
||||
properly_documented_public_functions="-etc.c.odbc.sql,-etc.c.odbc.sqlext,-etc.c.zlib,-std.algorithm.comparison,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.ascii,-std.base64,-std.bigint,-std.bitmanip,-std.complex,-std.container,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.container.util,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.demangle,-std.digest.crc,-std.digest,-std.digest.hmac,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.null_allocator,-std.experimental.allocator.building_blocks.quantizer,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.scoped_allocator,-std.experimental.allocator.building_blocks.segregator,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.common,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.showcase,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.logger.filelogger,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.internal.unicode_tables,-std.json,-std.math,-std.mathspecial,-std.meta,-std.mmfile,-std.net.curl,-std.net.isemail,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.xml,-std.zip,-std.zlib"
|
||||
; Check for redundant attributes
|
||||
redundant_attributes_check="-std.concurrency,-std.digest.md,-std.digest.ripemd,-std.digest.sha,-std.internal.math.biguintcore,-std.math,-std.meta,-std.range,-std.regex.internal.ir,-std.uni,-std.windows.registry"
|
||||
; Check variable, class, struct, interface, union, and function names against
|
||||
; the Phobos style guide
|
||||
style_check="+disabled"
|
||||
;style_check="-etc.c.curl,-etc.c.odbc.sqlext,-etc.c.odbc.sqltypes,-etc.c.odbc.sqlucode,-etc.c.sqlite3,-etc.c.zlib,-std.algorithm.comparison,-std.algorithm.internal,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.sorting,-std.array,-std.base64,-std.bitmanip,-std.c.linux.linux,-std.compiler,-std.container.array,-std.conv,-std.datetime.date,-std.datetime.interval,-std.datetime.systime,-std.digest.digest,-std.digest.murmurhash,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.null_allocator,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.segregator,-std.experimental.allocator.common,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.mmap_allocator,-std.experimental.checkedint,-std.experimental.typecons,-std.format,-std.functional,-std.getopt,-std.internal.digest.sha_SSSE3,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.test.dummyrange,-std.internal.unicode_tables,-std.json,-std.math,-std.meta,-std.numeric,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.primitives,-std.regex,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.signals,-std.socket,-std.stdio,-std.string,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.zlib"
|
||||
;style_check="-etc.c.curl,-etc.c.odbc.sqlext,-etc.c.odbc.sqltypes,-etc.c.odbc.sqlucode,-etc.c.sqlite3,-etc.c.zlib,-std.algorithm.comparison,-std.algorithm.internal,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.sorting,-std.array,-std.base64,-std.bitmanip,-std.c.linux.linux,-std.compiler,-std.container.array,-std.conv,-std.datetime.date,-std.datetime.interval,-std.datetime.systime,-std.digest,-std.digest.murmurhash,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.null_allocator,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.segregator,-std.experimental.allocator.common,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.mmap_allocator,-std.experimental.checkedint,-std.experimental.typecons,-std.format,-std.functional,-std.getopt,-std.internal.digest.sha_SSSE3,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.test.dummyrange,-std.internal.unicode_tables,-std.json,-std.math,-std.meta,-std.numeric,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.primitives,-std.regex,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.signals,-std.socket,-std.stdio,-std.string,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.zlib"
|
||||
; Checks for undocumented public declarations
|
||||
undocumented_declaration_check="-etc.c.curl,-etc.c.odbc.sql,-etc.c.odbc.sqlext,-etc.c.odbc.sqltypes,-etc.c.odbc.sqlucode,-etc.c.sqlite3,-etc.c.zlib,-std.algorithm.sorting,-std.array,-std.ascii,-std.base64,-std.bitmanip,-std.c.linux.linux,-std.c.linux.socket,-std.c.osx.socket,-std.c.process,-std.compiler,-std.complex,-std.concurrency,-std.container,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.conv,-std.csv,-std.datetime.date,-std.digest.digest,-std.digest.hmac,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.quantizer,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.segregator,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.biguintx86,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.test.dummyrange,-std.internal.test.uda,-std.internal.windows.advapi32,-std.json,-std.math,-std.mmfile,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.regex,-std.regex.internal.parser,-std.signals,-std.socket,-std.stdio,-std.string,-std.system,-std.traits,-std.uni,-std.utf,-std.variant,-std.windows.charset,-std.windows.registry,-std.windows.syserror,-std.xml,-std.zip,-std.zlib"
|
||||
undocumented_declaration_check="-etc.c.curl,-etc.c.odbc.sql,-etc.c.odbc.sqlext,-etc.c.odbc.sqltypes,-etc.c.odbc.sqlucode,-etc.c.sqlite3,-etc.c.zlib,-std.algorithm.sorting,-std.array,-std.ascii,-std.base64,-std.bitmanip,-std.c.linux.linux,-std.c.linux.socket,-std.c.osx.socket,-std.c.process,-std.compiler,-std.complex,-std.concurrency,-std.container,-std.container.array,-std.container.binaryheap,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.conv,-std.csv,-std.datetime.date,-std.digest,-std.digest.hmac,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.allocator_list,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.fallback_allocator,-std.experimental.allocator.building_blocks.free_list,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.quantizer,-std.experimental.allocator.building_blocks.region,-std.experimental.allocator.building_blocks.segregator,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.biguintx86,-std.internal.math.errorfunction,-std.internal.math.gammafunction,-std.internal.test.dummyrange,-std.internal.test.uda,-std.internal.windows.advapi32,-std.json,-std.math,-std.mmfile,-std.numeric,-std.outbuffer,-std.parallelism,-std.path,-std.process,-std.regex,-std.regex.internal.parser,-std.signals,-std.socket,-std.stdio,-std.string,-std.system,-std.traits,-std.uni,-std.utf,-std.variant,-std.windows.charset,-std.windows.registry,-std.windows.syserror,-std.xml,-std.zip,-std.zlib"
|
||||
; Checks for unused labels
|
||||
unused_label_check="-std.conv,-std.format,-std.internal.math.biguintx86,-std.regex.internal.thompson,-std.signals,-std.uni"
|
||||
; Checks for unused variables and function parameters
|
||||
unused_variable_check="-std.algorithm.comparison,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.complex,-std.concurrency,-std.container,-std.container.array,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.conv,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.digest.crc,-std.digest.digest,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.common,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintx86,-std.internal.math.errorfunction,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.json,-std.math,-std.meta,-std.mmfile,-std.net.curl,-std.numeric,-std.parallelism,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex.internal.backtracking,-std.regex.internal.tests,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.windows.registry,-std.xml,-std.zip,-std.zlib"
|
||||
unused_variable_check="-std.algorithm.comparison,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.complex,-std.concurrency,-std.container,-std.container.array,-std.container.dlist,-std.container.rbtree,-std.container.slist,-std.conv,-std.csv,-std.datetime,-std.datetime.date,-std.datetime.interval,-std.datetime.stopwatch,-std.datetime.systime,-std.datetime.timezone,-std.digest.crc,-std.digest,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.digest.sha,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.affix_allocator,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.bucketizer,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.building_blocks.stats_collector,-std.experimental.allocator.common,-std.experimental.allocator.gc_allocator,-std.experimental.allocator.mallocator,-std.experimental.allocator.typed,-std.experimental.checkedint,-std.experimental.logger.core,-std.experimental.typecons,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintx86,-std.internal.math.errorfunction,-std.internal.scopebuffer,-std.internal.test.dummyrange,-std.json,-std.math,-std.meta,-std.mmfile,-std.net.curl,-std.numeric,-std.parallelism,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex.internal.backtracking,-std.regex.internal.tests,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.traits,-std.typecons,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.windows.registry,-std.xml,-std.zip,-std.zlib"
|
||||
; Check for useless user defined initializers
|
||||
useless_initializer="+disabled"
|
||||
;useless_initializer="-etc.c.odbc.sqlext,-etc.c.zlib,-std.algorithm.iteration,-std.algorithm.mutation,-std.algorithm.searching,-std.algorithm.setops,-std.algorithm.sorting,-std.array,-std.bigint,-std.bitmanip,-std.compiler,-std.container.array,-std.container.dlist,-std.container.rbtree,-std.conv,-std.csv,-std.datetime.systime,-std.digest.md,-std.digest.murmurhash,-std.digest.ripemd,-std.encoding,-std.exception,-std.experimental.allocator,-std.experimental.allocator.building_blocks.bitmapped_block,-std.experimental.allocator.building_blocks.free_tree,-std.experimental.allocator.building_blocks.kernighan_ritchie,-std.experimental.allocator.common,-std.experimental.allocator.mallocator,-std.experimental.logger.core,-std.experimental.logger.multilogger,-std.file,-std.format,-std.functional,-std.getopt,-std.internal.cstring,-std.internal.digest.sha_SSSE3,-std.internal.math.biguintcore,-std.internal.math.biguintnoasm,-std.internal.math.biguintx86,-std.internal.math.gammafunction,-std.internal.test.dummyrange,-std.json,-std.math,-std.net.curl,-std.numeric,-std.parallelism,-std.path,-std.process,-std.random,-std.range,-std.range.interfaces,-std.range.primitives,-std.regex,-std.regex.internal.backtracking,-std.regex.internal.generator,-std.regex.internal.ir,-std.regex.internal.kickstart,-std.regex.internal.parser,-std.regex.internal.tests,-std.regex.internal.thompson,-std.signals,-std.socket,-std.stdio,-std.string,-std.uni,-std.uri,-std.utf,-std.uuid,-std.variant,-std.windows.registry,-std.windows.syserror,-std.xml,-std.zip,-std.zlib"
|
||||
|
|
8
changelog/std-digest-package.dd
Normal file
8
changelog/std-digest-package.dd
Normal file
|
@ -0,0 +1,8 @@
|
|||
`std.digest.digest` was renamed to `std.digest`.
|
||||
|
||||
$(B Motivation):
|
||||
|
||||
The fully qualified name of the digest function template was `std.digest.digest.digest`.
|
||||
This is because `std.digest` is a package, with a module named `digest` in it, and the function `digest` inside that.
|
||||
|
||||
$(MREF std, digest) contains the former `std.digest.digest` package.
|
|
@ -189,7 +189,7 @@ PACKAGE_std_algorithm = comparison iteration mutation package searching setops \
|
|||
sorting
|
||||
PACKAGE_std_container = array binaryheap dlist package rbtree slist util
|
||||
PACKAGE_std_datetime = date interval package stopwatch systime timezone
|
||||
PACKAGE_std_digest = crc digest hmac md murmurhash ripemd sha
|
||||
PACKAGE_std_digest = crc digest hmac md murmurhash package ripemd sha
|
||||
PACKAGE_std_experimental_logger = core filelogger \
|
||||
nulllogger multilogger package
|
||||
PACKAGE_std_experimental_allocator = \
|
||||
|
|
|
@ -18,16 +18,16 @@ $(TR $(TDNW Helpers) $(TD $(MYREF crcHexString) $(MYREF crc32Of))
|
|||
)
|
||||
|
||||
*
|
||||
* This module conforms to the APIs defined in $(D std.digest.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest.digest).
|
||||
* This module conforms to the APIs defined in $(D std.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest).
|
||||
*
|
||||
* This module publicly imports $(D std.digest.digest) and can be used as a stand-alone
|
||||
* This module publicly imports $(D std.digest) and can be used as a stand-alone
|
||||
* module.
|
||||
*
|
||||
* Note:
|
||||
* CRCs are usually printed with the MSB first. When using
|
||||
* $(REF toHexString, std,digest,digest) the result will be in an unexpected
|
||||
* order. Use $(REF toHexString, std,digest,digest)'s optional order parameter
|
||||
* $(REF toHexString, std,digest) the result will be in an unexpected
|
||||
* order. Use $(REF toHexString, std,digest)'s optional order parameter
|
||||
* to specify decreasing order for the correct result. The $(LREF crcHexString)
|
||||
* alias can also be used for this purpose.
|
||||
*
|
||||
|
@ -58,7 +58,7 @@ $(TR $(TDNW Helpers) $(TD $(MYREF crcHexString) $(MYREF crc32Of))
|
|||
*/
|
||||
module std.digest.crc;
|
||||
|
||||
public import std.digest.digest;
|
||||
public import std.digest;
|
||||
|
||||
version(unittest)
|
||||
import std.exception;
|
||||
|
@ -133,7 +133,7 @@ private T[256][8] genTables(T)(T polynomial)
|
|||
|
||||
/**
|
||||
* Template API CRC32 implementation.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*/
|
||||
alias CRC32 = CRC!(32, 0xEDB88320);
|
||||
|
||||
|
@ -461,7 +461,7 @@ struct CRC(uint N, ulong P) if (N == 32 || N == 64)
|
|||
}
|
||||
|
||||
/**
|
||||
* This is a convenience alias for $(REF digest, std,digest,digest) using the
|
||||
* This is a convenience alias for $(REF digest, std,digest) using the
|
||||
* CRC32 implementation.
|
||||
*
|
||||
* Params:
|
||||
|
@ -496,7 +496,7 @@ ubyte[4] crc32Of(T...)(T data)
|
|||
}
|
||||
|
||||
/**
|
||||
* This is a convenience alias for $(REF digest, std,digest,digest) using the
|
||||
* This is a convenience alias for $(REF digest, std,digest) using the
|
||||
* CRC64-ECMA implementation.
|
||||
*
|
||||
* Params:
|
||||
|
@ -569,7 +569,6 @@ ubyte[8] crc64ISOOf(T...)(T data)
|
|||
}
|
||||
|
||||
/**
|
||||
* This is a convenience alias for $(REF toHexString, std,digest,digest)
|
||||
* producing the usual CRC32 string output.
|
||||
*/
|
||||
public alias crcHexString = toHexString!(Order.decreasing);
|
||||
|
@ -578,9 +577,9 @@ public alias crcHexString = toHexString!(Order.decreasing, 16);
|
|||
|
||||
/**
|
||||
* OOP API CRC32 implementation.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!CRC32), see
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest)!CRC32), see
|
||||
* there for more information.
|
||||
*/
|
||||
alias CRC32Digest = WrapperDigest!CRC32;
|
||||
|
|
1188
std/digest/digest.d
1188
std/digest/digest.d
File diff suppressed because it is too large
Load diff
|
@ -16,7 +16,7 @@ Source: $(PHOBOSSRC std/digest/_hmac.d)
|
|||
|
||||
module std.digest.hmac;
|
||||
|
||||
import std.digest.digest : isDigest, hasBlockSize, isDigestibleRange, DigestType;
|
||||
import std.digest : isDigest, hasBlockSize, isDigestibleRange, DigestType;
|
||||
import std.meta : allSatisfy;
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,7 @@ import std.meta : allSatisfy;
|
|||
* information about the block size, it can be supplied explicitly using
|
||||
* the second overload.
|
||||
*
|
||||
* This type conforms to $(REF isDigest, std,digest,digest).
|
||||
* This type conforms to $(REF isDigest, std,digest).
|
||||
*/
|
||||
|
||||
version(StdDdoc)
|
||||
|
@ -286,7 +286,7 @@ if (isDigest!H)
|
|||
|
||||
version(unittest)
|
||||
{
|
||||
import std.digest.digest : toHexString, LetterCase;
|
||||
import std.digest : toHexString, LetterCase;
|
||||
alias hex = toHexString!(LetterCase.lower);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@ $(TR $(TDNW Helpers) $(TD $(MYREF md5Of))
|
|||
)
|
||||
)
|
||||
|
||||
* This module conforms to the APIs defined in $(D std.digest.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest.digest).
|
||||
* This module conforms to the APIs defined in $(D std.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest).
|
||||
*
|
||||
* This module publicly imports $(D std.digest.digest) and can be used as a stand-alone
|
||||
* This module publicly imports $(D std.digest) and can be used as a stand-alone
|
||||
* module.
|
||||
*
|
||||
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
|
||||
|
@ -45,7 +45,7 @@ $(TR $(TDNW Helpers) $(TD $(MYREF md5Of))
|
|||
*/
|
||||
module std.digest.md;
|
||||
|
||||
public import std.digest.digest;
|
||||
public import std.digest;
|
||||
|
||||
///
|
||||
@safe unittest
|
||||
|
@ -91,7 +91,7 @@ private uint rotateLeft(uint x, uint n) @safe pure nothrow @nogc
|
|||
|
||||
/**
|
||||
* Template API MD5 implementation.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*/
|
||||
struct MD5
|
||||
{
|
||||
|
@ -493,7 +493,7 @@ struct MD5
|
|||
}
|
||||
|
||||
/**
|
||||
* This is a convenience alias for $(REF digest, std,digest,digest) using the
|
||||
* This is a convenience alias for $(REF digest, std,digest) using the
|
||||
* MD5 implementation.
|
||||
*/
|
||||
//simple alias doesn't work here, hope this gets inlined...
|
||||
|
@ -511,9 +511,9 @@ auto md5Of(T...)(T data)
|
|||
|
||||
/**
|
||||
* OOP API MD5 implementation.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!MD5), see
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest)!MD5), see
|
||||
* there for more information.
|
||||
*/
|
||||
alias MD5Digest = WrapperDigest!MD5;
|
||||
|
|
|
@ -22,9 +22,9 @@ $(LI The current implementation is optimized for little endian architectures.
|
|||
less uniform distribution.)
|
||||
)
|
||||
|
||||
This module conforms to the APIs defined in $(D std.digest.digest).
|
||||
This module conforms to the APIs defined in $(D std.digest).
|
||||
|
||||
This module publicly imports $(D std.digest.digest) and can be used as a stand-alone module.
|
||||
This module publicly imports $(D std.digest) and can be used as a stand-alone module.
|
||||
|
||||
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
|
||||
Authors: Guillaume Chatelet
|
||||
|
@ -41,7 +41,7 @@ module std.digest.murmurhash;
|
|||
@safe unittest
|
||||
{
|
||||
// MurmurHash3!32, MurmurHash3!(128, 32) and MurmurHash3!(128, 64) implement
|
||||
// the std.digest.digest Template API.
|
||||
// the std.digest Template API.
|
||||
static assert(isDigest!(MurmurHash3!32));
|
||||
// The convenient digest template allows for quick hashing of any data.
|
||||
ubyte[4] hashed = digest!(MurmurHash3!32)([1, 2, 3, 4]);
|
||||
|
@ -88,7 +88,7 @@ module std.digest.murmurhash;
|
|||
auto hashed = hasher.getBytes();
|
||||
}
|
||||
|
||||
public import std.digest.digest;
|
||||
public import std.digest;
|
||||
|
||||
@safe:
|
||||
|
||||
|
|
1171
std/digest/package.d
Normal file
1171
std/digest/package.d
Normal file
File diff suppressed because it is too large
Load diff
|
@ -18,10 +18,10 @@ $(TR $(TDNW Helpers) $(TD $(MYREF ripemd160Of))
|
|||
)
|
||||
)
|
||||
|
||||
* This module conforms to the APIs defined in $(D std.digest.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest.digest).
|
||||
* This module conforms to the APIs defined in $(D std.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest).
|
||||
*
|
||||
* This module publicly imports $(D std.digest.digest) and can be used as a stand-alone
|
||||
* This module publicly imports $(D std.digest) and can be used as a stand-alone
|
||||
* module.
|
||||
*
|
||||
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
|
||||
|
@ -46,7 +46,7 @@ $(TR $(TDNW Helpers) $(TD $(MYREF ripemd160Of))
|
|||
|
||||
module std.digest.ripemd;
|
||||
|
||||
public import std.digest.digest;
|
||||
public import std.digest;
|
||||
|
||||
///
|
||||
@safe unittest
|
||||
|
@ -95,7 +95,7 @@ private uint rotateLeft(uint x, uint n) @safe pure nothrow @nogc
|
|||
|
||||
/**
|
||||
* Template API RIPEMD160 implementation.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*/
|
||||
struct RIPEMD160
|
||||
{
|
||||
|
@ -662,7 +662,7 @@ struct RIPEMD160
|
|||
}
|
||||
|
||||
/**
|
||||
* This is a convenience alias for $(REF digest, std,digest,digest) using the
|
||||
* This is a convenience alias for $(REF digest, std,digest) using the
|
||||
* RIPEMD160 implementation.
|
||||
*/
|
||||
//simple alias doesn't work here, hope this gets inlined...
|
||||
|
@ -680,9 +680,9 @@ auto ripemd160Of(T...)(T data)
|
|||
|
||||
/**
|
||||
* OOP API RIPEMD160 implementation.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!RIPEMD160),
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest)!RIPEMD160),
|
||||
* see there for more information.
|
||||
*/
|
||||
alias RIPEMD160Digest = WrapperDigest!RIPEMD160;
|
||||
|
|
|
@ -23,10 +23,10 @@ $(TR $(TDNW Helpers) $(TD $(MYREF sha1Of))
|
|||
* SHA2 comes in several different versions, all supported by this module:
|
||||
* SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256.
|
||||
*
|
||||
* This module conforms to the APIs defined in $(D std.digest.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest.digest).
|
||||
* This module conforms to the APIs defined in $(D std.digest). To understand the
|
||||
* differences between the template and the OOP API, see $(D std.digest).
|
||||
*
|
||||
* This module publicly imports $(D std.digest.digest) and can be used as a stand-alone
|
||||
* This module publicly imports $(D std.digest) and can be used as a stand-alone
|
||||
* module.
|
||||
*
|
||||
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
|
||||
|
@ -124,7 +124,7 @@ version(unittest)
|
|||
}
|
||||
|
||||
|
||||
public import std.digest.digest;
|
||||
public import std.digest;
|
||||
|
||||
/*
|
||||
* Helper methods for encoding the buffer.
|
||||
|
@ -193,7 +193,7 @@ private ulong rotateRight(ulong x, uint n) @safe pure nothrow @nogc
|
|||
* simply use the convenience aliases: SHA1, SHA224, SHA256, SHA384, SHA512,
|
||||
* SHA512_224 and SHA512_256.
|
||||
*
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*/
|
||||
struct SHA(uint hashBlockSize, uint digestSize)
|
||||
{
|
||||
|
@ -1122,7 +1122,7 @@ alias SHA512_256 = SHA!(1024, 256); /// SHA alias for SHA-512/256, hash is ubyte
|
|||
}
|
||||
|
||||
/**
|
||||
* These are convenience aliases for $(REF digest, std,digest,digest) using the
|
||||
* These are convenience aliases for $(REF digest, std,digest) using the
|
||||
* SHA implementation.
|
||||
*/
|
||||
//simple alias doesn't work here, hope this gets inlined...
|
||||
|
@ -1199,9 +1199,9 @@ auto sha512_256Of(T...)(T data)
|
|||
|
||||
/**
|
||||
* OOP API SHA1 and SHA2 implementations.
|
||||
* See $(D std.digest.digest) for differences between template and OOP API.
|
||||
* See $(D std.digest) for differences between template and OOP API.
|
||||
*
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!SHA1), see
|
||||
* This is an alias for $(D $(REF WrapperDigest, std,digest)!SHA1), see
|
||||
* there for more information.
|
||||
*/
|
||||
alias SHA1Digest = WrapperDigest!SHA1;
|
||||
|
|
|
@ -208,7 +208,8 @@ SRC_STD_DIGEST= \
|
|||
std\digest\ripemd.d \
|
||||
std\digest\digest.d \
|
||||
std\digest\hmac.d \
|
||||
std\digest\murmurhash.d
|
||||
std\digest\murmurhash.d \
|
||||
std\digest\package.d
|
||||
|
||||
SRC_STD_NET= \
|
||||
std\net\isemail.d \
|
||||
|
|
|
@ -233,7 +233,8 @@ SRC_STD_DIGEST= \
|
|||
std\digest\ripemd.d \
|
||||
std\digest\digest.d \
|
||||
std\digest\hmac.d \
|
||||
std\digest\murmurhash.d
|
||||
std\digest\murmurhash.d \
|
||||
std\digest\package.d
|
||||
|
||||
SRC_STD_NET= \
|
||||
std\net\isemail.d \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue