ObjFW  Check-in [81f0ea5081]

Overview
Comment:Fix typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 81f0ea508152a9168b58cd8b9e4bf78412e922937f4deed87fccdf2e3c5e691a
User & Date: js on 2022-09-04 18:54:44
Other Links: manifest | tags
Context
2022-09-04
19:03
OFSecureData: Minor documentation fix check-in: c85eec81b0 user: js tags: trunk
18:54
Fix typo check-in: 81f0ea5081 user: js tags: trunk
18:46
Remove -[prependString:] and -[reverse] check-in: 6c3ec63d96 user: js tags: trunk
Changes

Modified src/platform/Windows/OFString+PathAdditions.m from [44724633ab] to [f4b6d7c22e].

361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
		     [OFCharacterSet URLHostAllowedCharacterSet]];
		path = [OFString pathWithComponents: [components
		    objectsInRange: OFMakeRange(2, components.count - 2)]];
	}

	path = [path stringByReplacingOccurrencesOfString: @"\\"
					       withString: @"/"];
	path = [@"/" stringByApppendingString: path];

	return path;
}

- (OFString *)of_URLPathToPathWithURLEncodedHost: (OFString *)URLEncodedHost
{
	OFString *path = self;







|







361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
		     [OFCharacterSet URLHostAllowedCharacterSet]];
		path = [OFString pathWithComponents: [components
		    objectsInRange: OFMakeRange(2, components.count - 2)]];
	}

	path = [path stringByReplacingOccurrencesOfString: @"\\"
					       withString: @"/"];
	path = [@"/" stringByAppendingString: path];

	return path;
}

- (OFString *)of_URLPathToPathWithURLEncodedHost: (OFString *)URLEncodedHost
{
	OFString *path = self;

Modified src/platform/libfat/OFString+PathAdditions.m from [d2753d0886] to [7b438d1726].

340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
	return ([self hasSuffix: @"/"] ||
	    [OFFileURLHandler of_directoryExistsAtPath: self]);
}

- (OFString *)of_pathToURLPathWithURLEncodedHost: (OFString **)URLEncodedHost
{
	return [@"/" stringByApppendingString: self];
}

- (OFString *)of_URLPathToPathWithURLEncodedHost: (OFString *)URLEncodedHost
{
	OFString *path = self;

	if (path.length > 1 && [path hasSuffix: @"/"])







|







340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
	return ([self hasSuffix: @"/"] ||
	    [OFFileURLHandler of_directoryExistsAtPath: self]);
}

- (OFString *)of_pathToURLPathWithURLEncodedHost: (OFString **)URLEncodedHost
{
	return [@"/" stringByAppendingString: self];
}

- (OFString *)of_URLPathToPathWithURLEncodedHost: (OFString *)URLEncodedHost
{
	OFString *path = self;

	if (path.length > 1 && [path hasSuffix: @"/"])