cldr_utils v2.5.0 Cldr.String View Source
Functions that operate on a String.t
that are not provided
in the standard lib.
Link to this section Summary
Functions
Hash a string using a polynomial rolling hash function.
This is the code of Macro.underscore with modifications
Link to this section Functions
Hash a string using a polynomial rolling hash function.
See https://cp-algorithms.com/string/string-hashing.html for a description of the algoithim.
This is the code of Macro.underscore with modifications:
The change is to cater for strings in the format:
This_That
which in Macro.underscore gets formatted as
this__that (note the double underscore)
when we actually want
that_that