MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathStringHash

Function xmlXPathStringHash

ThirdParty/libxml2/vtklibxml2/xpath.c:5420–5427  ·  view source on GitHub ↗

* xmlXPathStringHash: * @string: a string * * Function computing the beginning of the string value of the node, * used to speed up comparisons * * Returns an int usable as a hash */

Source from the content-addressed store, hash-verified

5418 * Returns an int usable as a hash
5419 */
5420static unsigned int
5421xmlXPathStringHash(const xmlChar * string) {
5422 if (string == NULL)
5423 return(0);
5424 if (string[0] == 0)
5425 return(0);
5426 return(string[0] + (string[1] << 8));
5427}
5428
5429/**
5430 * xmlXPathCompareNodeSetFloat:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected