| 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 ); |
no outgoing calls
no test coverage detected