Skip to main content

java_string_hash

Function java_string_hash 

Source
pub fn java_string_hash(s: &str) -> u32
Expand description

Java-compatible String.hashCode(): a 32-bit, base-31 polynomial hash over UTF-16 code units. All identifiers this is used for are ASCII, so iterating chars is equivalent.