Home | History | Annotate | Download | only in common

Lines Matching refs:baseName

219     if (baseName && baseName != baseNameBuffer) {
220 uprv_free(baseName);
221 baseName = NULL;
226 : UObject(), fullName(fullNameBuffer), baseName(NULL)
237 : UObject(), fullName(fullNameBuffer), baseName(NULL)
247 : UObject(), fullName(fullNameBuffer), baseName(NULL)
382 : UObject(other), fullName(fullNameBuffer), baseName(NULL)
414 /* baseName is the cached result of getBaseName. if 'other' has a
415 baseName and it fits in baseNameBuffer, then copy it. otherwise set
418 if(baseName && baseName != baseNameBuffer) {
419 uprv_free(baseName);
421 baseName = NULL;
423 if(other.baseName == other.baseNameBuffer) {
425 baseName = baseNameBuffer;
462 if(baseName && baseName != baseNameBuffer) {
463 uprv_free(baseName);
464 baseName = NULL;
589 if(baseName && baseName != baseNameBuffer) {
590 uprv_free(baseName);
591 baseName = NULL;
1014 if(baseName == 0) {
1015 ((Locale *)this)->baseName = ((Locale *)this)->baseNameBuffer;
1016 int32_t baseNameSize = uloc_getBaseName(fullName, baseName, ULOC_FULLNAME_CAPACITY, &status);
1018 ((Locale *)this)->baseName = (char *)uprv_malloc(sizeof(char) * baseNameSize + 1);
1019 if (baseName == NULL) {
1020 return baseName;
1022 uloc_getBaseName(fullName, baseName, baseNameSize+1, &status);
1024 baseName[baseNameSize] = 0;
1028 // the length of the baseName. Patch around this for now.
1033 return baseName;