Lines Matching refs:profile

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