• Home
  • Raw
  • Download

Lines Matching refs:profile

137     UStringPrepProfile *profile = NULL;  in usprep_internal_flushCache()  local
156 profile = (UStringPrepProfile *) e->value.pointer; in usprep_internal_flushCache()
159 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
165 usprep_unload(profile); in usprep_internal_flushCache()
175 uprv_free(profile); in usprep_internal_flushCache()
222 loadData(UStringPrepProfile* profile, in loadData() argument
259 if(profile->sprepData==NULL) { in loadData()
260 profile->sprepData=dataMemory; in loadData()
262 uprv_memcpy(&profile->indexes, p, sizeof(profile->indexes)); in loadData()
263 uprv_memcpy(&profile->sprepTrie, &_sprepTrie, sizeof(UTrie)); in loadData()
265 p=(const int32_t *)udata_getMemory(profile->sprepData); in loadData()
269profile->mappingData=(uint16_t *)((uint8_t *)(p+_SPREP_INDEX_TOP)+profile->indexes[_SPREP_INDEX_TR… in loadData()
276 normCorrVer = profile->indexes[_SPREP_NORM_CORRECTNS_LAST_UNI_VERSION]; in loadData()
284 … ((profile->indexes[_SPREP_OPTIONS] & _SPREP_NORMALIZATION_ON) > 0) /* normalization turned on*/ in loadData()
290 profile->isDataLoaded = TRUE; in loadData()
298 return profile->isDataLoaded; in loadData()
306 UStringPrepProfile* profile = NULL; in usprep_getProfile() local
325 profile = (UStringPrepProfile*) (uhash_get(SHARED_DATA_HASHTABLE,&stackKey)); in usprep_getProfile()
326 if(profile != NULL) { in usprep_getProfile()
327 profile->refCount++; in usprep_getProfile()
331 if(profile == NULL) { in usprep_getProfile()
367 profile = (UStringPrepProfile*) (uhash_get(SHARED_DATA_HASHTABLE,&stackKey)); in usprep_getProfile()
368 if(profile != NULL) { in usprep_getProfile()
369 profile->refCount++; in usprep_getProfile()
380 profile = newProfile.orphan(); in usprep_getProfile()
383 profile->refCount = 1; in usprep_getProfile()
384 uhash_put(SHARED_DATA_HASHTABLE, key.orphan(), profile, status); in usprep_getProfile()
389 return profile; in usprep_getProfile()
420 usprep_close(UStringPrepProfile* profile){ in usprep_close() argument
421 if(profile==NULL){ in usprep_close()
427 if(profile->refCount > 0){ in usprep_close()
428 profile->refCount--; in usprep_close()
508 usprep_map( const UStringPrepProfile* profile, in usprep_map() argument
522 const int32_t* indexes = profile->indexes; in usprep_map()
534 UTRIE_GET16(&profile->sprepTrie,ch,result); in usprep_map()
561 length = profile->mappingData[index++]; in usprep_map()
568 dest[destIndex] = profile->mappingData[index+i]; in usprep_map()
640 usprep_prepare( const UStringPrepProfile* profile, in usprep_prepare() argument
653 if(profile==NULL || in usprep_prepare()
671 int32_t b1Len = usprep_map(profile, src, srcLength, in usprep_prepare()
685 b1Len = usprep_map(profile, src, srcLength, in usprep_prepare()
695 if(profile->doNFKC){ in usprep_prepare()
721 UTRIE_GET16(&profile->sprepTrie,ch,result); in usprep_prepare()
735 if(profile->checkBiDi) { in usprep_prepare()
736 direction = ubidi_getClass(profile->bdp, ch); in usprep_prepare()
750 if(profile->checkBiDi == TRUE){ in usprep_prepare()