| 12 | namespace EE { namespace UI { namespace Doc { |
| 13 | |
| 14 | static constexpr String::HashType toLowerAndHash( const char* str, Int64 len ) { |
| 15 | String::HashType hash = 5381; |
| 16 | while ( --len >= 0 ) |
| 17 | hash = ( ( hash << 5 ) + hash ) + std::tolower( *str++ ); |
| 18 | return hash; |
| 19 | } |
| 20 | |
| 21 | static constexpr String::HashType toLowerAndHash( std::string_view str ) { |
| 22 | return toLowerAndHash( str.data(), str.size() ); |
no test coverage detected