.Modelica_Noise.Utilities.Strings.hashString

Information

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

Interface

function hashString
  input String string "The string to create a hash from";
  output Integer hash "The hash value of string";
end hashString;

Revisions

Date Description
June 22, 2015
Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos