Lines Matching refs:attr

494 _addAttributeToList(AttributeListEntry **first, AttributeListEntry *attr) {
498 attr->next = NULL;
499 *first = attr;
509 prev->next = attr;
510 attr->next = NULL;
513 cmp = uprv_compareInvCharsAsAscii(attr->attribute, cur->attribute);
516 *first = attr;
518 prev->next = attr;
520 attr->next = cur;
911 AttributeListEntry *attr;
965 attr = (AttributeListEntry*)uprv_malloc(sizeof(AttributeListEntry));
966 if (attr == NULL) {
976 attr->attribute = attrValue;
978 if (!_addAttributeToList(&firstAttr, attr)) {
979 uprv_free(attr);
1105 attr = firstAttr;
1123 if (ext && (uprv_strlen(ext->key) == 1 || attr == NULL)) {
1144 } else if (attr) {
1150 len = (int32_t)uprv_strlen(attr->attribute);
1152 uprv_memcpy(appendAt + reslen, attr->attribute, uprv_min(len, capacity - reslen));
1156 attr = attr->next;
1158 } while (attr != NULL || ext != NULL);
1169 attr = firstAttr;
1170 while (attr != NULL) {
1171 AttributeListEntry *tmpAttr = attr->next;
1172 char *pValue = (char *)attr->attribute;
1174 uprv_free(attr);
1175 attr = tmpAttr;
1203 AttributeListEntry *attr, *nextAttr;
1228 attr = (AttributeListEntry*)uprv_malloc(sizeof(AttributeListEntry));
1229 if (attr == NULL) {
1237 attr->attribute = &attrBuf[attrBufIdx];
1244 if (!_addAttributeToList(&attrFirst, attr)) {
1246 uprv_free(attr);
1277 attr = attrFirst;
1278 while (attr != NULL) {
1279 nextAttr = attr->next;
1282 if (attr != attrFirst) {
1287 len = uprv_strlen(attr->attribute);
1288 uprv_memcpy(buf + bufIdx, attr->attribute, len);
1291 attr = nextAttr;
1303 attr = attrFirst;
1304 while (attr != NULL) {
1305 nextAttr = attr->next;
1306 uprv_free(attr);
1307 attr = nextAttr;
1483 attr = attrFirst;
1484 while (attr != NULL) {
1485 nextAttr = attr->next;
1486 uprv_free(attr);
1487 attr = nextAttr;