MCPcopy Create free account
hub / github.com/SpartanJ/eepp / hashToLower

Function hashToLower

include/eepp/core/string.hpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 static constexpr String::HashType hashToLower( const char* str, Int64 len ) {
92 String::HashType hash = 5381;
93 while ( --len >= 0 ) {
94 int c = *str++;
95 hash = ( ( hash << 5 ) + hash ) + ( c >= 'A' && c <= 'Z' ? c + 32 : c );
96 }
97 return hash;
98 }
99
100 /** Escape string sequence */
101 static String escape( const String& str );

Callers 3

hashToLowerMethod · 0.85
fromStringMethod · 0.85
isColorStringTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected