hashString

Create a hash value of a string

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

hash = Strings.hashString(string);

Description

Returns an Integer hash value of the provided string (the hash can be any Integer, including zero or a negative number).

Example

hashString("this is a test")     // =  1827717433
hashString("Controller.noise1")  // = -1025762750

Syntax

hash = hashString(string)

Inputs (1)

string

Type: String

Description: The string to create a hash from

Outputs (1)

hash

Type: Integer

Description: The hash value of string