mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: get rid of ToUpper/ToLower mutations on arguments (#3950)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
84e22aa658
commit
14220a6a20
7 changed files with 18 additions and 48 deletions
|
@ -109,18 +109,6 @@ std::ostream& operator<<(std::ostream& os, const GlobalState& state);
|
|||
|
||||
enum class TimeUnit : uint8_t { SEC, MSEC };
|
||||
|
||||
inline void ToUpper(const MutableSlice* val) {
|
||||
for (auto& c : *val) {
|
||||
c = absl::ascii_toupper(c);
|
||||
}
|
||||
}
|
||||
|
||||
inline void ToLower(const MutableSlice* val) {
|
||||
for (auto& c : *val) {
|
||||
c = absl::ascii_tolower(c);
|
||||
}
|
||||
}
|
||||
|
||||
bool ParseHumanReadableBytes(std::string_view str, int64_t* num_bytes);
|
||||
bool ParseDouble(std::string_view src, double* value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue