1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
|
if (cmp > 0)
return OF_ORDERED_DESCENDING;
else
return OF_ORDERED_ASCENDING;
}
- (of_comparison_result_t)caseInsensitiveCompare: (OFString*)otherString;
{
const char *otherCString;
size_t i, j, otherLen, minLen;
int cmp;
if (![otherString isKindOfClass: [OFString class]])
@throw [OFInvalidArgumentException newWithClass: isa
|
|
|
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
|
if (cmp > 0)
return OF_ORDERED_DESCENDING;
else
return OF_ORDERED_ASCENDING;
}
- (of_comparison_result_t)caseInsensitiveCompare: (OFString*)otherString
{
const char *otherCString;
size_t i, j, otherLen, minLen;
int cmp;
if (![otherString isKindOfClass: [OFString class]])
@throw [OFInvalidArgumentException newWithClass: isa
|
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
|
if (i < 0)
i = 0;
return [OFString stringWithCString: string + i
length: pathLen - i];
}
- (OFString*)stringByDeletingLastPathComponent;
{
size_t i, pathLen = length;
if (pathLen == 0)
return @"";
#ifndef _WIN32
|
|
|
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
|
if (i < 0)
i = 0;
return [OFString stringWithCString: string + i
length: pathLen - i];
}
- (OFString*)stringByDeletingLastPathComponent
{
size_t i, pathLen = length;
if (pathLen == 0)
return @"";
#ifndef _WIN32
|