pub fn hash_code(s: &str) -> i32
Computes 32-bit Java-compatible string hash code using UTF-16 code units.
Matches Remotion’s hashCode(str) exactly: hash = ((hash << 5) - hash + charCode) | 0
hashCode(str)
hash = ((hash << 5) - hash + charCode) | 0