ObjFW  Check-in [253fe5d154]

Overview
Comment:Rename +[elementWithString:] to +[elementWithXMLString:] for clarity.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 253fe5d154c7471c1bfd734ddd71db99e662c8f9f0fd20d751ac086f4c72d5e4
User & Date: js on 2011-03-31 11:55:21
Other Links: manifest | tags
Context
2011-03-31
12:14
Add -[stringValue] to OFXMLElement. check-in: 4e88d4192d user: js tags: trunk
11:55
Rename +[elementWithString:] to +[elementWithXMLString:] for clarity. check-in: 253fe5d154 user: js tags: trunk
11:45
Rename -[stringValue] to -[XMLString] in OFXMLElement. check-in: 5c80b8838f user: js tags: trunk
Changes

Modified src/OFXMLElement.h from [ac3874d89b] to [8018d72592].

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

/**
 * Parses the string and returns an OFXMLElement for it.
 *
 * \param str The string to parse
 * \return A new autoreleased OFXMLElement with the contents of the string
 */
+ elementWithString: (OFString*)str;

/**
 * Initializes an already allocated OFXMLElement with the specified element
 * name.
 *
 * \param name The name for the element
 * \return An initialized OFXMLElement with the specified element name







|







109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

/**
 * Parses the string and returns an OFXMLElement for it.
 *
 * \param str The string to parse
 * \return A new autoreleased OFXMLElement with the contents of the string
 */
+ elementWithXMLString: (OFString*)str;

/**
 * Initializes an already allocated OFXMLElement with the specified element
 * name.
 *
 * \param name The name for the element
 * \return An initialized OFXMLElement with the specified element name
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205

/**
 * Parses the string and initializes an already allocated OFXMLElement with it.
 *
 * \param str The string to parse
 * \return An initialized OFXMLElement with the contents of the string
 */
- initWithString: (OFString*)str;

/**
 * \return The name of the element
 */
- (OFString*)name;

/**







|







191
192
193
194
195
196
197
198
199
200
201
202
203
204
205

/**
 * Parses the string and initializes an already allocated OFXMLElement with it.
 *
 * \param str The string to parse
 * \return An initialized OFXMLElement with the contents of the string
 */
- initWithXMLString: (OFString*)str;

/**
 * \return The name of the element
 */
- (OFString*)name;

/**

Modified src/OFXMLElement.m from [412f8a284b] to [d71bd6e00b].

95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
}

+ elementWithComment: (OFString*)comment
{
	return [[[self alloc] initWithComment: comment] autorelease];
}

+ elementWithString: (OFString*)str
{
	return [[[self alloc] initWithString: str] autorelease];
}

- init
{
	Class c = isa;
	[self release];
	@throw [OFNotImplementedException newWithClass: c







|

|







95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
}

+ elementWithComment: (OFString*)comment
{
	return [[[self alloc] initWithComment: comment] autorelease];
}

+ elementWithXMLString: (OFString*)str
{
	return [[[self alloc] initWithXMLString: str] autorelease];
}

- init
{
	Class c = isa;
	[self release];
	@throw [OFNotImplementedException newWithClass: c
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
		[self release];
		@throw e;
	}

	return self;
}

- initWithString: (OFString*)str
{
	OFAutoreleasePool *pool;
	OFXMLParser *parser;
	OFXMLElementBuilder *builder;
	OFXMLElement_OFXMLElementBuilderDelegate *delegate;

	[self release];







|







204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
		[self release];
		@throw e;
	}

	return self;
}

- initWithXMLString: (OFString*)str
{
	OFAutoreleasePool *pool;
	OFXMLParser *parser;
	OFXMLElementBuilder *builder;
	OFXMLElement_OFXMLElementBuilderDelegate *delegate;

	[self release];