Home | History | Annotate | Download | only in common

Lines Matching refs:profile

53 /* Profile names must be aligned to UStringPrepProfileType */
134 UStringPrepProfile *profile = NULL;
153 profile = (UStringPrepProfile *) e->value.pointer;
156 if ((noRefCount== FALSE && profile->refCount == 0) ||
162 usprep_unload(profile);
172 uprv_free(profile);
233 loadData(UStringPrepProfile* profile,
270 if(profile->sprepData==NULL) {
271 profile->sprepData=dataMemory;
273 uprv_memcpy(&profile->indexes, p, sizeof(profile->indexes));
274 uprv_memcpy(&profile->sprepTrie, &_sprepTrie, sizeof(UTrie));
276 p=(const int32_t *)udata_getMemory(profile->sprepData);
280 profile->mappingData=(uint16_t *)((uint8_t *)(p+_SPREP_INDEX_TOP)+profile->indexes[_SPREP_INDEX_TRIE_SIZE]);
287 normCorrVer = profile->indexes[_SPREP_NORM_CORRECTNS_LAST_UNI_VERSION];
295 ((profile->indexes[_SPREP_OPTIONS] & _SPREP_NORMALIZATION_ON) > 0) /* normalization turned on*/
301 profile->isDataLoaded = TRUE;
309 return profile->isDataLoaded;
317 UStringPrepProfile* profile = NULL;
336 profile = (UStringPrepProfile*) (uhash_get(SHARED_DATA_HASHTABLE,&stackKey));
339 if(profile == NULL){
346 profile = (UStringPrepProfile*) uprv_malloc(sizeof(UStringPrepProfile));
347 if(profile == NULL){
354 uprv_memset(profile->indexes,0,sizeof(profile->indexes));
355 profile->mappingData = NULL;
356 profile->sprepData = NULL;
357 profile->refCount = 0;
364 uprv_free(profile);
378 uprv_free(profile);
385 if(!loadData(profile, path, name, _SPREP_DATA_TYPE, status) || U_FAILURE(*status) ){
389 uprv_free(profile);
394 profile->doNFKC = (UBool)((profile->indexes[_SPREP_OPTIONS] & _SPREP_NORMALIZATION_ON) > 0);
395 profile->checkBiDi = (UBool)((profile->indexes[_SPREP_OPTIONS] & _SPREP_CHECK_BIDI_ON) > 0);
397 if(profile->checkBiDi) {
398 profile->bdp = ubidi_getSingleton(status);
400 usprep_unload(profile);
404 uprv_free(profile);
408 profile->bdp = NULL;
413 uhash_put(SHARED_DATA_HASHTABLE, key, profile, status);
418 profile->refCount++;
421 return profile;
435 /* initialize the profile struct members */
454 usprep_close(UStringPrepProfile* profile){
455 if(profile==NULL){
461 if(profile->refCount > 0){
462 profile->refCount--;
543 profile,
557 const int32_t* indexes = profile->indexes;
569 UTRIE_GET16(&profile->sprepTrie,ch,result);
596 length = profile->mappingData[index++];
603 dest[destIndex] = profile->mappingData[index+i];
686 In any profile that specifies bidirectional character handling, all
703 usprep_prepare( const UStringPrepProfile* profile,
716 if(profile==NULL || src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) {
737 b1Len = usprep_map(profile, src, srcLength, b1, b1Capacity, options, parseError, status);
750 b1Len = usprep_map(profile, src, srcLength, b1, b1Len, options, parseError, status);
755 if(profile->doNFKC == TRUE){
795 UTRIE_GET16(&profile->sprepTrie,ch,result);
807 if(profile->checkBiDi) {
808 direction = ubidi_getClass(profile->bdp, ch);
822 if(profile->checkBiDi == TRUE){