ObjFW  Diff

Differences From Artifact [4145f33ae0]:

To Artifact [ee9139e5e6]:


157
158
159
160
161
162
163
164
165

166
167
168
169



170
171
172
173
174
175
176
177
178
179
157
158
159
160
161
162
163


164




165
166
167



168
169
170
171
172
173
174







-
-
+
-
-
-
-
+
+
+
-
-
-







		    [[[OFINICategoryPair alloc] init] autorelease];
		OFString *key, *value;
		size_t pos;

		if ((pos = [line rangeOfString: @"="].location) == OF_NOT_FOUND)
			@throw [OFInvalidFormatException exception];

		key = [line substringWithRange: of_range(0, pos)];
		value = [line substringWithRange:
		key = unescapeString([line substringToIndex: pos]
		    of_range(pos + 1, line.length - pos - 1)];

		key = key.stringByDeletingEnclosingWhitespaces;
		value = value.stringByDeletingEnclosingWhitespaces;
		    .stringByDeletingEnclosingWhitespaces);
		value = unescapeString([line substringFromIndex: pos + 1]
		    .stringByDeletingEnclosingWhitespaces);

		key = unescapeString(key);
		value = unescapeString(value);

		pair->_key = [key copy];
		pair->_value = [value copy];

		[_lines addObject: pair];
	} else {
		OFINICategoryComment *comment =