mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 02:09:05 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			488 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			488 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
PL_HashString
 | 
						|
=============
 | 
						|
 | 
						|
A general-purpose hash function for character strings.
 | 
						|
 | 
						|
 | 
						|
Syntax
 | 
						|
------
 | 
						|
 | 
						|
.. code::
 | 
						|
 | 
						|
   #include <plhash.h>
 | 
						|
 | 
						|
   PLHashNumber PL_HashString(const void *key);
 | 
						|
 | 
						|
 | 
						|
Parameter
 | 
						|
~~~~~~~~~
 | 
						|
 | 
						|
The function has the following parameter:
 | 
						|
 | 
						|
``key``
 | 
						|
   A pointer to a character string.
 | 
						|
 | 
						|
 | 
						|
Returns
 | 
						|
~~~~~~~
 | 
						|
 | 
						|
The hash number for the specified key.
 | 
						|
 | 
						|
 | 
						|
Description
 | 
						|
-----------
 | 
						|
 | 
						|
:ref:`PL_HashString` can be used as the key hash function for a hash table
 | 
						|
if the key is a character string.
 |