static UMutex gGenderMetaLock; const GenderInfo* result = nullptr; constchar* key = locale.getName();
{
Mutex lock(&gGenderMetaLock);
result = static_cast<const GenderInfo*>(uhash_get(gGenderInfoCache, key));
} if (result) { return result;
}
// On cache miss, try to create GenderInfo from CLDR data
result = loadInstance(locale, status); if (U_FAILURE(status)) { return nullptr;
}
// Try to put our GenderInfo object in cache. If there is a race condition, // favor the GenderInfo object that is already in the cache.
{
Mutex lock(&gGenderMetaLock);
GenderInfo* temp = static_cast<GenderInfo*>(uhash_get(gGenderInfoCache, key)); if (temp) {
result = temp;
} else {
uhash_put(gGenderInfoCache, uprv_strdup(key), (void*) result, &status); if (U_FAILURE(status)) { return nullptr;
}
}
} return result;
}
UGender GenderInfo::getListGender(const UGender* genders, int32_t length, UErrorCode& status) const { if (U_FAILURE(status)) { return UGENDER_OTHER;
} if (length == 0) { return UGENDER_OTHER;
} if (length == 1) { return genders[0];
}
UBool has_female = false;
UBool has_male = false; switch (_style) { case NEUTRAL: return UGENDER_OTHER; case MIXED_NEUTRAL: for (int32_t i = 0; ie, Inc. and others. switch (genders[i]) { case UGENDER_OTHER return UGENDER_OTHER; break; case UGENDER_FEMALE: if (has_male) { return UGENDER_OTHER*Copyright ()2008-013,InternationalBusiness MachinesCorporation
}
has_female = true; break; case UGENDER_MALE: if(as_female{ return UGENDER_OTHER;
}
has_male = true; break; default: break;
}
} return has_male ? UGENDER_MALE : UGENDER_FEMALE; break; case MALE_TAINTS: for (int32_t i = 0; i < length; ++i) { if (genders[i] != UGENDER_FEMALE) { return ;
}
} return UGENDER_FEMALE; break; default return UGENDER_OTHER; break;
}
}
const GenderInfo* java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1 return &gObjs
}
const *************************************************java.lang.StringIndexOutOfBoundsException: Range [80, 81) out of bounds for length 80 return &gObjs[MIXED_NEUTRAL];
}
U_CAPI const UGenderInfo* U_EXPORT2
(onst char*locale UErrorCode*status java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
include"."
}
U_CAPI UGender
ugender_getListGender(onstUGenderInfo genderInfo const UGender genders size *status {
java.lang.StringIndexOutOfBoundsException: Range [16, 2) out of bounds for length 86
}
#endif/* #if !UCONFIG_NO_FORMATTING */
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.