Overview
Comment: | Rename JSON representation options |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | new-naming-convention |
Files: | files | file ages | folders |
SHA3-256: |
5ce8c7cca741504894b36168c6b116ca |
User & Date: | js on 2021-04-17 17:49:04 |
Other Links: | branch diff | manifest | tags |
Context
2021-04-17
| ||
18:36 | Rename all remaining enums check-in: aa74e85220 user: js tags: new-naming-convention | |
17:49 | Rename JSON representation options check-in: 5ce8c7cca7 user: js tags: new-naming-convention | |
16:57 | Rename all enums in OFGZIPStream.h check-in: 827819d93c user: js tags: new-naming-convention | |
Changes
Modified src/OFArray.m from [a47e5750f8] to [3de2dc55f8].
︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - - + + + | #import "OFOutOfRangeException.h" static struct { Class isa; } placeholder; @interface OFArray () |
︙ | |||
574 575 576 577 578 579 580 | 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 | - + + - - + + + - + | } - (OFString *)JSONRepresentation { return [self of_JSONRepresentationWithOptions: 0 depth: 0]; } |
︙ |
Modified src/OFDictionary.m from [18419a43d0] to [6b73f7f97f].
︙ | |||
35 36 37 38 39 40 41 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - - + + + | static struct { Class isa; } placeholder; static OFCharacterSet *URLQueryPartAllowedCharacterSet = nil; @interface OFDictionary () |
︙ | |||
715 716 717 718 719 720 721 | 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 | - + + - - + + + - + - + | } - (OFString *)JSONRepresentation { return [self of_JSONRepresentationWithOptions: 0 depth: 0]; } |
︙ | |||
773 774 775 776 777 778 779 | 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 | - + | [JSON appendString: indentation]; } else { i = 0; while ((key = [keyEnumerator nextObject]) != nil && (object = [objectEnumerator nextObject]) != nil) { void *pool2 = objc_autoreleasePoolPush(); int identifierOptions = |
︙ |
Modified src/OFJSONRepresentation.h from [121e6d00f3] to [a068535d8e].
︙ | |||
15 16 17 18 19 20 21 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | + + + - - - - + + + + + + - + | #import "OFObject.h" @class OFString; OF_ASSUME_NONNULL_BEGIN /** * @brief Options to change the behavior when creating a JSON representation. */ |
︙ | |||
41 42 43 44 45 46 47 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + - - - - - - - + + | * @brief The JSON representation of the object as a string. */ @property (readonly, nonatomic) OFString *JSONRepresentation; /** * @brief Returns the JSON representation of the object as a string. * |
Modified src/OFNull.m from [252ff4815f] to [f75550a742].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - - + + + | #import "OFString.h" #import "OFXMLElement.h" #import "OFData.h" #import "OFInvalidArgumentException.h" @interface OFNull () |
︙ | |||
83 84 85 86 87 88 89 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - + + - + + | } - (OFString *)JSONRepresentation { return [self of_JSONRepresentationWithOptions: 0 depth: 0]; } |
︙ |
Modified src/OFNumber.m from [fbce14e70c] to [74384103b7].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - - + + + | #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFOutOfRangeException.h" @interface OFNumber () + (instancetype)of_alloc; |
︙ | |||
1069 1070 1071 1072 1073 1074 1075 | 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 | - + + - - + + + - + | } - (OFString *)JSONRepresentation { return [self of_JSONRepresentationWithOptions: 0 depth: 0]; } |
︙ |
Modified src/OFString.m from [d072a99f4c] to [1ee38b4496].
︙ | |||
89 90 91 92 93 94 95 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - - + + + | @interface OFString () - (size_t)of_getCString: (char *)cString maxLength: (size_t)maxLength encoding: (OFStringEncoding)encoding lossy: (bool)lossy OF_DIRECT; - (const char *)of_cStringWithEncoding: (OFStringEncoding)encoding lossy: (bool)lossy OF_DIRECT; |
︙ | |||
1707 1708 1709 1710 1711 1712 1713 | 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 | - + + - - + + + - + - + | } - (OFString *)JSONRepresentation { return [self of_JSONRepresentationWithOptions: 0 depth: 0]; } |
︙ |
Modified tests/OFJSONTests.m from [1509791c9a] to [15d8e0cc74].
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - + + - - + + | nil]; TEST(@"-[objectByParsingJSON] #1", [s.objectByParsingJSON isEqual: d]) TEST(@"-[JSONRepresentation]", [[d JSONRepresentation] isEqual: @"{\"x\":[0.5,15,null,\"foo\",false],\"foo\":\"b\\na\\r\"}"]) |
︙ |