Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function StringHash. You can see all the information about this function keyword HERE.

[functions] StringHash No New Posts Jassdoc

Started by

0 Members and 1 Guest are viewing this topic.

[functions] StringHash
on: February 25, 2022, 04:45:19 PM

returns a string hash for the given string.

The hash is supposed to be case-insensitive of the input string: this works for ASCII and some small subset of Unicode (Latin Supplement, Cyrillic...). Also the backslash is the same as forward slash: / and \. A probable explanation for this is the usage of file paths, since the game runs on Windows and Mac OS/OSX. StringHash is also used for variable lookup: string name -> integer index.

The underlying algorithm is subject to change between major versions. The Hive: code for the old algorithm "SStrHash2" via "1997 Dr Dobbs article" and a question about the changed algorithm in Reforged. TODO: In what version was it changed?


Started by moyack

Replies: 3
Views: 3637

Started by Jedi

Replies: 5
Views: 14206
General Jass Discussion

Started by moyack

Replies: 40
Views: 56809
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 261

Started by moyack

Replies: 0
Views: 265
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...