ObjFW  Check-in [3d0c941e9f]

Overview
Comment:OFString: int i -> size_t i
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.8
Files: files | file ages | folders
SHA3-256: 3d0c941e9fc404589563b77231e2e87e259d3532c5a82bb9c09f2a234e5977b1
User & Date: js on 2015-10-04 13:10:51
Other Links: branch diff | manifest | tags
Context
2015-10-10
09:18
ofhttp: Fix ETA calculation for resumed files check-in: 7460346551 user: js tags: 0.8
2015-10-04
13:10
OFString: int i -> size_t i check-in: 3d0c941e9f user: js tags: 0.8
12:13
Update ChangeLog for 0.8.1 check-in: 782d3a5cef user: js tags: 0.8, 0.8.1-release
Changes

Modified src/OFString.m from [c1b245bad8] to [2be273de51].

2135
2136
2137
2138
2139
2140
2141
2142

2143
2144
2145
2146
2147
2148
2149
2150
2135
2136
2137
2138
2139
2140
2141

2142

2143
2144
2145
2146
2147
2148
2149







-
+
-







	    @".", @"..", @"/");
}

- (intmax_t)decimalValue
{
	void *pool = objc_autoreleasePoolPush();
	const of_unichar_t *characters = [self characters];
	size_t length = [self length];
	size_t i = 0, length = [self length];
	int i = 0;
	intmax_t value = 0;
	bool expectWhitespace = false;

	while (length > 0 && (*characters == ' ' || *characters == '\t' ||
	    *characters == '\n' || *characters == '\r' ||
	    *characters == '\f')) {
		characters++;
2190
2191
2192
2193
2194
2195
2196
2197

2198
2199
2200
2201
2202
2203
2204
2205
2189
2190
2191
2192
2193
2194
2195

2196

2197
2198
2199
2200
2201
2202
2203







-
+
-







	return value;
}

- (uintmax_t)hexadecimalValue
{
	void *pool = objc_autoreleasePoolPush();
	const of_unichar_t *characters = [self characters];
	size_t length = [self length];
	size_t i = 0, length = [self length];
	int i = 0;
	uintmax_t value = 0;
	bool expectWhitespace = false, foundValue = false;

	while (length > 0 && (*characters == ' ' || *characters == '\t' ||
	    *characters == '\n' || *characters == '\r' ||
	    *characters == '\f')) {
		characters++;