Lines Matching refs:profile

140     UStringPrepProfile *profile = NULL;  in usprep_internal_flushCache()  local
159 profile = (UStringPrepProfile *) e->value.pointer; in usprep_internal_flushCache()
162 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
168 usprep_unload(profile); in usprep_internal_flushCache()
178 uprv_free(profile); in usprep_internal_flushCache()
225 loadData(UStringPrepProfile* profile, in loadData() argument
262 if(profile->sprepData==NULL) { in loadData()
263 profile->sprepData=dataMemory; in loadData()
265 uprv_memcpy(&profile->indexes, p, sizeof(profile->indexes)); in loadData()
266 uprv_memcpy(&profile->sprepTrie, &_sprepTrie, sizeof(UTrie)); in loadData()
268 p=(const int32_t *)udata_getMemory(profile->sprepData); in loadData()
272profile->mappingData=(uint16_t *)((uint8_t *)(p+_SPREP_INDEX_TOP)+profile->indexes[_SPREP_INDEX_TR… in loadData()
279 normCorrVer = profile->indexes[_SPREP_NORM_CORRECTNS_LAST_UNI_VERSION]; in loadData()
287 … ((profile->indexes[_SPREP_OPTIONS] & _SPREP_NORMALIZATION_ON) > 0) /* normalization turned on*/ in loadData()
293 profile->isDataLoaded = TRUE; in loadData()
301 return profile->isDataLoaded; in loadData()
309 UStringPrepProfile* profile = NULL; in usprep_getProfile() local
328 profile = (UStringPrepProfile*) (uhash_get(SHARED_DATA_HASHTABLE,&stackKey)); in usprep_getProfile()
329 if(profile != NULL) { in usprep_getProfile()
330 profile->refCount++; in usprep_getProfile()
334 if(profile == NULL) { in usprep_getProfile()
366 profile = (UStringPrepProfile*) (uhash_get(SHARED_DATA_HASHTABLE,&stackKey)); in usprep_getProfile()
367 if(profile != NULL) { in usprep_getProfile()
368 profile->refCount++; in usprep_getProfile()
379 profile = newProfile.orphan(); in usprep_getProfile()
382 profile->refCount = 1; in usprep_getProfile()
383 uhash_put(SHARED_DATA_HASHTABLE, key.orphan(), profile, status); in usprep_getProfile()
388 return profile; in usprep_getProfile()
419 usprep_close(UStringPrepProfile* profile){ in usprep_close() argument
420 if(profile==NULL){ in usprep_close()
426 if(profile->refCount > 0){ in usprep_close()
427 profile->refCount--; in usprep_close()
507 usprep_map( const UStringPrepProfile* profile, in usprep_map() argument
521 const int32_t* indexes = profile->indexes; in usprep_map()
533 UTRIE_GET16(&profile->sprepTrie,ch,result); in usprep_map()
560 length = profile->mappingData[index++]; in usprep_map()
567 dest[destIndex] = profile->mappingData[index+i]; in usprep_map()
639 usprep_prepare( const UStringPrepProfile* profile, in usprep_prepare() argument
652 if(profile==NULL || in usprep_prepare()
670 int32_t b1Len = usprep_map(profile, src, srcLength, in usprep_prepare()
684 b1Len = usprep_map(profile, src, srcLength, in usprep_prepare()
694 if(profile->doNFKC){ in usprep_prepare()
720 UTRIE_GET16(&profile->sprepTrie,ch,result); in usprep_prepare()
734 if(profile->checkBiDi) { in usprep_prepare()
749 if(profile->checkBiDi == TRUE){ in usprep_prepare()