ObjFW  Diff

Differences From Artifact [f9c0df659c]:

To Artifact [3dd9d958c3]:


86
87
88
89
90
91
92


93
94
95
96
97
98
99
			[ret appendString: component];
		}
	}

	[ret makeImmutable];

	return ret;


# else
	return path;
# endif
}

static OFString *
URLPathToPath(OFString *path)







>
>







86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
			[ret appendString: component];
		}
	}

	[ret makeImmutable];

	return ret;
# elif defined(OF_NINTENDO_3DS)
	return [path stringByPrependingString: @"/"];
# else
	return path;
# endif
}

static OFString *
URLPathToPath(OFString *path)
126
127
128
129
130
131
132


133
134
135
136
137
138
139

		if ([component isEqual: @".."])
			[components replaceObjectAtIndex: i
					      withObject: @"/"];
	}

	return [OFString pathWithComponents: components];


# else
	return path;
# endif
}
#endif

@interface OFCharacterSet_invertedSetWithPercent: OFCharacterSet







>
>







128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143

		if ([component isEqual: @".."])
			[components replaceObjectAtIndex: i
					      withObject: @"/"];
	}

	return [OFString pathWithComponents: components];
# elif defined(OF_NINTENDO_3DS)
	return [path substringWithRange: of_range(1, [path length] - 1)];
# else
	return path;
# endif
}
#endif

@interface OFCharacterSet_invertedSetWithPercent: OFCharacterSet