Skip to main content

java_hash_code

Function java_hash_code 

Source
const fn java_hash_code(s: &str) -> i32
Expand description

Java String.hashCode() for ASCII strings.

Vanilla uses UTF-16 code units, but for ASCII strings each byte maps 1:1.