53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
-
+
-
+
|
}
- (void)of_getCategory: (OFString **)category
andKey: (OFString **)key
forPath: (OFString *)path OF_DIRECT
{
size_t pos = [path rangeOfString: @"."
options: OF_STRING_SEARCH_BACKWARDS].location;
options: OFStringSearchBackwards].location;
if (pos == OF_NOT_FOUND) {
if (pos == OFNotFound) {
*category = @"";
*key = path;
return;
}
*category = [path substringToIndex: pos];
*key = [path substringFromIndex: pos + 1];
|