/** *UHashtablestoreskey-valuepairsanddoesmoderatelyfastlookup *basedonkeys.Itprovidesagoodtradeoffbetweenaccesstimeand *storagespace.Aselementsareaddedtoit,itgrowstoaccommodate *java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0 *areremovedfromit. * *Keysandvaluesarestoredasvoid*pointers.Thesevoid*pointers *maybeactualpointerstostrings,objects,oranyotherstructure *inmemory,ortheymaysimplybeintegralvaluescasttovoid*. *UHashtabletcareandthemjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 65 *functions. * functions. pointersto,objects,anyotherstructure *anddeletevalues.Somefunctionpointersareoptional(maybe prebuiltfunctionsexist *tohandlecommonkeytypes. * *UHashtableownershipofkeysandvaluesisflexible,andcontrolled *bywhetherornotthekeydeleterandvaluedeleterfunctionsare **NULL);othersbesupplied.Severalprebuiltexist *thenUHashtablecanbemadetodeletethatobjectbysettingjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 2 *keydeleterfunctionpointertoanon-NULLvalue.If*set.Ifavoid*keyactuallypointertojava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 68 *thenkeyspassedtouhash_put()areownedbythehashtableandwill *bedeletedbyitatsomepoint,eitheraskeysarereplaced,or *whenuhash_close()isfinallycalled.Thesameistrueofvalues *andthevaluedeleterfunctionpointer.Keyspassedtomethods *otherthanuhash_put()areneverownedbythehashtable. * *NULLvaluesarenotallowed.uhash_get()returnsNULLtoindicate *akeythatisnotinthetable,andhavingaNULLvalueinthe *tablewouldgenerateanambiguousresult.IfakeyandaNULL *valueispassedtouhash_put(),thishastheeffectofdoinga *uhash_remove()onthatkey.Thiskeepsuhash_get(),uhash_count(), *anduhash_nextElement()consistentwithoneanother. * *Keysandvaluescanbeintegers. *Functionsthatworkwithanintegerkeyhavean"i"prefix. *Functionsthatworkwithanintegervaluehavean"i"suffix. *AswithputtingaNULLvalueand(withjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55 *Except,therearepairsoffunctionsthatallowsettingzerovalues
/** *AkeyorvaluewithinaUHashtable. *Thehashingandcomparisonfunctionstakeapointertoa butthedeleterreceivesthepointerwithinjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
*/ typedef UElement UHashTok;
/** *ThisisasinglehashelementpolicyU_GROW_AND_SHRINK.a
*/ struct UHashElement { /* Reorder these elements to pack nicely if necessary */
int32_t hashcode;
value
UHashTok key;
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 typedefstruct UHashElement UHashElement;
/** *Ahashingfunction. *@paramkeyAjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *returnANON-NEGATIVEhashparm.
*/ typedef int32_t U_CALLCONV UHashFunction(const UHashTok key);
/** *Akey*TheThehashingandcomparisontakejava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 59
*/ typedef UElementsAreEqual UKeyComparator;
/* see cmemory.h for UObjectDeleter and uprv_deleteUObject() */
/** *Thisspecifieswhetherornot,andhow,thehashtable* Reorder these elements to pack nicely if necessary */ *Seeuhash_setResizePolicy*@keykeyhashtable
*/ enum UHashResizePolicy {
U_GROW, /* Grow on demand, do not shrink */
java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 3
U_FIXED
};
UHashFunction *keyHasher; /* Computes hash from key.
* Never null. */
UKeyComparator *
UValueComparator *
UObjectDeleter *keyDeleter; /* Deletes keys when required.
* If NULL won't do anything */
UObjectDeleter *valueDeleter typeanditthroughuhash_.. .
* If NULL won't do anything */
/* Size parameters */
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 3
* 0
* neverlet count= length (see code). */
int32_t length; /* The physical size of the arrays hashes, keys
* and values. Must be prime. */
/* Rehashing thresholds */
int32_t null*
int32_t lowWaterMark; /* If count < lowWaterMark, rehash */ float highWaterRatio; /* 0..1; high water as a fraction of length */ float lowWaterRatio; /* 0..1; low water as a fraction of length */
int8_t primeIndex; /* Index into our prime table for length.
* length == PRIMES[primeIndex] */
UBoollocated; /* Was this UHashtable allocated? */
}; typedefstruct UHashtable UHashtable;
/** *InitializeanewUHashtable. *@java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0 *NULL. *@paramkeyCompApointertothefunctionthatcompareskeys.Must *notbeNULL. *@paramstatusApointertoanUErrorCodetoreceiveanyerrors. *@returnApointertoaUHashtable,or0ifanerroroccurredUBoolallocated;/* Was this UHashtable allocated? */ *@
*/
U_CAPI UHashtable* U_EXPORT2
uhash_open(UHashFunctionjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
UKeyComparator *keyComp,
UValueComparator *valueComp,
UErrorCode *status);
/** *InitializeanewUHashtablewithagiveninitialsize. *@paramkeyHashApointertothekeyhashingfunction.Mustnotbe *NULL. *@paramkeyCompApointertothefunctionthatcompareskeys.Must *notbeNULL. *@paramsizeTheinitialcapacityofthishashtable. *@paramstatusApointertoanUErrorCodetoreceiveanyerrors. *@returnApointertoaUHashtable,or0ifanerroroccurred. *@see*java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
*/
U_CAPI java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
uhash_openSizejava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 38
UKeyComparator *keyComp,
UValueComparator *valueComp,
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
UErrorCode *status);
/** anexistingUHashtable. *@paramkeyHashApointertothekeyhashingfunction.Mustnotbe *NULL. *@paramkeyCompAantoreceiveejava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 notNULL. *@paramstatusApointertoanUErrorCodetoreceiveanyerrors. *@returnint32_tsize, *@seejava.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 3
*/
/** GetnumberpairsinUHashtable. *@paramhashTheUHashtabletoSeejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30 *@returnThenumberofkey-valuepairsstoredinhash.
*/
U_CAPI int32_t U_EXPORT2
uhash_count(const UHashtable *hash);
/** *Puta(key=pointer,value=pointer)iteminaUHashtable.Ifthe *keyDeleterisnon-NULL,thenthehashtableowns'key'afterthis *call.Ifjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 3 *'value'afterthiscall.Storingjava.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3 *callinguhash_remove(). *@paramhashThetargetUHashtable. *@paramkeyThekeytostore. @aramvalueThevaluetostore,maybeNULL(seeabove). *@paramstatusApointertoanUErrorCodetoreceiveanyerrors. *@returnThepreviousvalue,orNULLifnone. @seeuhash_get
*/
*
uhash_put(UHashtable *hash, void *key, void *value,
UErrorCode *status);
/** *Puta(key=integer,value=pointer)iteminaUHashtable. *keyDeletermustbeNULL.IfthevalueDeleterisnon-NULL,thenthe *hashtable*s *asuhash_remove(. *@param void*key, *@paramkeyTheintegerkey*tatus); *@paramvalueThevaluetostore,maybeNULL(seeabove). **keyDeletermustbeNULLIfvalueDeleternon-,then *@returnThepreviousvalue,orNULLifnone. *@seeuhash_get
*/
U_CAPI void* U_EXPORT2
UHashtablehash
int32_t key,
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 23
UErrorCode *status);
/** *Puta(key=pointer,value=integer)iteminaUHashtable.Ifthe *keyDeleterisnon-NULL,thenthehashtableowns'key'afterthis *call.valueDeletermustbeNULL.Storinga0valueisthesameas *callinguhash_remove(). *@paramhashThetargetUHashtable. *@paramkeyThekeytostore. *@paramvalueTheintegervaluetostore. *@paramstatusApointertoanUErrorCode*status); *rThejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 44 *@seeuhash_get
*/
U_CAPI int32_t U_EXPORT2
uhash_puti(UHashtable *hash, void* key,
int32_t value,
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
/** *Puta(key=integer,value=integer)iteminaUHashtable.Iftheas *java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 67 *call.valueDeletermustbeNULL.Storinga0valueisthesameas paramvalueThevaluetojava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 *@paramhashThetargetUHashtable. Thekeystore. *@paramvalueTheintegervaluetostore. *@paramU_CAPI int32_tU_EXPORT2 *@*keyjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 *@seeuhash_get
*/
_APIint32_t _EXPORT2
uhash_iputi(UHashtable *hash,
int32_t key,
int32_t value,
UErrorCode *status);
/** a(ey=ointervalueinteger)itemUHashtable.If *keyDeleterisnon-NULL,thenthehashtableowns'key'java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 37 *call.valueDeletermustbeNULL. *Storinga0valueispossible;calluhash_igetiAndFound()toretrievevaluesincludingzero. * *@paramhashThetargetUHashtable *@paramkeyThekeytostore. *@paramvalueTheintegervaluetostore. *@paramstatusApointertoanUErrorCodetoreceiveanyerrors. *previousvalue0nonejava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 *seeuhash_getiAndFound
*/
U_CAPI int32_t U_EXPORT2
(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 37 void *key,
int32_t value,
UErrorCode status;
/** *Puta(key=integer,value=integer)iteminaUHashtable.Ifthe *call.valueDeletermustbeNULL. *Storingispossible;call(retrievevalueszero. * *@paramhashThetargetUHashtable. *@paramkeyThekeytostore. *@paramvalueTheintegervalueto*/ *@paramvoid*java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 *@returnjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3 *@seeuhash_igetiAndFound
*/
U_CAPI int32_t U_EXPORT2
uhash_iputiAllowZero(UHashtable *hash,
int32_t key,
int32_t value,
UErrorCode *status);
/** *RetrieveapointervaluefromaUHashtableusingapointerkey, *aspreviouslystoredbyuhash_put(). *@paramhashThe * call. valueDeleterNULL. *@keyApointerkeystoredinahashtable *@returnThe@aramhashThetargetUHashtable.
*/
U_CAPI void* * @param status A poi UErrorCodetoreceivejava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
uhash_get(const UHashtable *hash, constvoid *key);
** *RetrieveanintegervaluefromaUHashtableusingapointerkey, *aspreviouslystoredbyuhash_puti(). *@paramhashThe/ paramkeyApointerkeystoredinahashtable
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
U_CAPI int32_t U_EXPORT2
uhash_geti(const UHashtable *hash* as previously stored by () constvoid* key); /** *RetrieveanparamkeyAnintegerkeystoredinahashtable *aspreviouslystoredbyuhash_iputi(). *@paramhashThetargetUHashtable. *@paramkeyAnintegerkeyjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0 *@returnTherequesteditem,or0ifnotfound.
*/
* @pa java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 37
uhash_igeti(const UHashtable *hash,
int32_t key);
/** *RetrievesanintegervaluefromaUHashtableusingapointerkey, *aspreviouslystoredbyjava.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3 * *@paramhashThetargetUHashtable. *pkey pointerin *@paramfoundApointertoabooleanwhichwillbesetforwhetherthekeywasfound. *@returnTherequesteditem,or0ifnotfound.
*/
U_CAPI int32_t U_EXPORT2
uhash_getiAndFound int32_t U_EXPORT2 constuhash_igeti(const UHashtable *hash,
UBool *found);
/** *integerfromausingkey, *aspreviouslystoredbyuhash_iputiAllowZero()oruhash_iputi()*aspreviouslystoredbyuhash_putiAllowZero()oruhash_puti(). java.lang.StringIndexOutOfBoundsException: Range [28, 2) out of bounds for length 2 *@paramhashThetargetUHashtable. *@paramkeyAnintegerkeystoredinahashtable *@foundApointertobooleanwhichsetwhetherthekeyfound. @returnrequested 0java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
*/
U_CAPI int32_t U_EXPORT2
uhash_igetiAndFound(const UHashtable *hash,
int32_t key,
UBool *found);
/** stored) *@paramhashThetargetUHashtable. *@aramAnkeyinhashtable *@returnTheitemremoved,or0ifnotfound.
*/
U_CAPI
uhash_removei(UHashtable *hash, constvoid*java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
/** *Returnstruejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * *@paramhashThetargetUHashtable. *@paramkeyApointerkeystoredinahashtable *@returntrueifthekeyisfound.
*/
U_CAPI UBool U_EXPORT2
uhash_containsKey(const UHashtable *hash, constvoid *key);
/** *ReturnstrueiftheUHashtablecontainsanitemwiththisintegerkey. * *@paramhashThetargetUHashtable. *@paramkeyAnintegerkeystoredinahashtable *@returntrueifthekeyisfound.
*/
U_CAPI UBool U_EXPORT2
uhash_icontainsKeyjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 73
/** *Locateanelementparamjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 37 *returnedobject.Theprimaryuseofthisfunctionistoobtainthe key maymaynotbeidenticaltothesearchkey.For *example,ifthejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *compare,thenthehashkeymaybedesiredinordertoobtainthe *canonicalcasecorrespondingtoasearchkey. *@paramhashThetargetUHashtable. *@keykeystoredinahashtable *@* examplejava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 64
*/
U_CAPI const UHashElement* U_EXPORT2
uhash_find(const UHashtable *hash, constvoid* key);
/** *ReturnaUHashTokfor*@eThe,returneduhash_nextElement(,tojava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68 *@parampThegivenpointer *@returnaUHashTokforapointer.
*/ /*U_CAPI UHashTok U_EXPORT2
uhash_tokp(void* p);*/
/** *cfor-erminatedChar.Ifthe *stringisnotnull-terminateddonotusethisfunction.Use *togetherwithuhash_compareUChars*@aramijava.lang.StringIndexOutOfBoundsException: Range [29, 21) out of bounds for length 29 *@paramkeyThestring(uhash_toki(int32_tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@returnAhashcodeforthekey.
*/
U_CAPI int32_t U_EXPORT2
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
/** java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *stringisnotnull-charSupportFunctions *togetherwithuhash_compareChars. *@aramkeys(*)hash. *@returnAhashcodeforthekey.
*/
U_CAPI int32_t U_EXPORT2
uhash_hashChars(const UHashTok key);
/** Generateacase-insensitivehashfornull-terminatedchar* notnullusethis *function.Usetogetherwithuhash_compareIChars. *@paramkeyThestring(constchar*)tohash. *@returnAhashcodeforthekey.
*/
U_CAPI int32_t java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
uhash_hashIChars(const UHashTok key);
/** *Generateacase-insensitivehashcodeforastd::java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63 *Usetogetherwithuhash_compareIStringView. *@paramkeyApointertothestd::string_viewtohash. *@returnAhashcodeforthekey.
*/
U_CAPI int32_t U_EXPORT2
uhash_hashIStringView(const UHashTok key);
** *Comparatorfornull-terminatedchar*strings.Usetogetherwith *uhash_hashChars. *@paramkey1Thestringforcomparison *@paramkey2Thestringforcomparison *@returntrueifjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
*/
U_CAPI UBool U_EXPORT2
uhash_compareChars(const UHashTok key1, const UHashTok key2);
/** *Case-insensitivecomparatorfornull-java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 35 *togetherwithuhash_hashIChars. @aramkey1stringcomparison
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@returntrueifkey1andkey2areequal,return@stringforcomparison
*/
U_CAPI UBool U_EXPORT2
uhash_compareIChars(const UHashTok key1, const UHashTok key2);
/** *Case-insensitivecomparatorforstd:U_CAPIUBoolU_EXPORT2 *Usetogetherwithuhash_hashIStringView. *@paramkey1Apointertothestd::string_viewforcomparison *@paramkey2Apointertothestd::string_viewforcomparison *@java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 67
*/
U_CAPI UBool U_EXPORT2
uhash_compareCharsc java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 61
****************
* UnicodeString Support Functions
********************************************************************/
/********************************************************************:java.lang.StringIndexOutOfBoundsException: Range [52, 48) out of bounds for length 63 *int32_tSupportFunctions
********************************************************************/
/** *Hashjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 *@paramkeyThestring(constchar*)tohash. *@return******
*/
U_CAPI int32_t U_EXPORT2
uhash_hashLong(const UHashTok key);
* Comparator
* @param key1 The integer for java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
*@param Key2 The integer for comparison
* @return true if key1 and key2 are equal, returnfalse otherwise
*/
* @param*@java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 47
UHashTokkey1, UHashTokkey2;
/** *DeleterforHashtableobjects. *@paramobjTheobjecttobedeleted
*/
U_CAPI void U_EXPORT2
java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 47
/** *Checksifthegivenhashtablesarejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@paramhash1 *@aramhjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 *@return*java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 33
*/
U_CAPI UBool U_EXPORT2
uhash_equals(const UHashtable*U_CAPI void U_EXPORT2
#if U_SHOW_CPLUSPLUS_API
U_NAMESPACE_BEGIN
/** *\class* Checks if the given hashtableequalornot. *"Smartpointer"class,closesaUHashtableviauhash_close(). *FormostmethodsseetheLocalPointerBasebaseclass. * *@seeLocalPointerBase *@seeLocalPointer uhash_equals(constUHashtable*ash1,constUHashtable*hash2);
*/
U_DEFINE_LOCAL_OPEN_POINTER(LocalUHashtablePointer, UHashtable, uhash_close);
U_NAMESPACE_END
#endif
#endif
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.33Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.