mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Rename fromSRI to parseSRI for constistency
This commit is contained in:
parent
f61bc45d19
commit
9462d8a50b
4 changed files with 5 additions and 5 deletions
|
@ -132,7 +132,7 @@ std::string Hash::to_string(Base base, bool includeType) const
|
|||
return s;
|
||||
}
|
||||
|
||||
Hash Hash::fromSRI(std::string_view original) {
|
||||
Hash Hash::parseSRI(std::string_view original) {
|
||||
auto rest = original;
|
||||
|
||||
// Parse the has type before the separater, if there was one.
|
||||
|
|
|
@ -45,7 +45,7 @@ struct Hash
|
|||
// prefix parsed separately; non SRI hash
|
||||
static Hash parseAnyUnprefixed(std::string_view s, HashType type);
|
||||
|
||||
static Hash fromSRI(std::string_view original);
|
||||
static Hash parseSRI(std::string_view original);
|
||||
|
||||
private:
|
||||
// type must be provided, s must not include <type> prefix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue