Differences From Artifact [9ff5525c3f]:
- File
src/OFString.m
— part of check-in
[114576fe94]
at
2022-09-04 18:27:46
on branch trunk
— Remove -[OFString stringByPrependingString:]
The same can be achieved using -[OFString stringByAppendingString:] and
swapping the order of arguments. (user: js, size: 66249) [annotate] [blame] [check-ins using]
To Artifact [c20b83a313]:
- File src/OFString.m — part of check-in [6c3ec63d96] at 2022-09-04 18:46:17 on branch trunk — Remove -[prependString:] and -[reverse] (user: js, size: 66279) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1752 1753 1754 1755 1756 1757 1758 | if (options & OFJSONRepresentationOptionIsIdentifier) { const char *cString = self.UTF8String; if ((!OFASCIIIsAlpha(cString[0]) && cString[0] != '_' && cString[0] != '$') || strpbrk(cString, " \n\r\t\b\f\\\"'") != NULL) { | | | | | 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 | if (options & OFJSONRepresentationOptionIsIdentifier) { const char *cString = self.UTF8String; if ((!OFASCIIIsAlpha(cString[0]) && cString[0] != '_' && cString[0] != '$') || strpbrk(cString, " \n\r\t\b\f\\\"'") != NULL) { [JSON insertString: @"\"" atIndex: 0]; [JSON appendString: @"\""]; } } else { [JSON insertString: @"\"" atIndex: 0]; [JSON appendString: @"\""]; } } else { [JSON replaceOccurrencesOfString: @"\n" withString: @"\\n"]; [JSON insertString: @"\"" atIndex: 0]; [JSON appendString: @"\""]; } [JSON makeImmutable]; return JSON; } |
︙ | ︙ |