* 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 */
| 5418 | * Returns an int usable as a hash |
| 5419 | */ |
| 5420 | static unsigned int |
| 5421 | xmlXPathStringHash(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: |
no outgoing calls
no test coverage detected