Commit 2a34993
authored
Add
* Add `String.init(customDumping:)`
It can be useful to get a custom dump representation of a value as a
string on a single line. Swift provides `String.init(describing:)` and
`String.init(reflecting:)` (though no equivalent for a quick string from
`Swift.dump`), so maybe we can provide _similar_ functionality via a
string initializer.
* oopsString.init(customDumping:) (#79)1 parent 2bb5551 commit 2a34993
File tree
2 files changed
+21
-36
lines changed- Sources/CustomDump
- Tests/CustomDumpTests
2 files changed
+21
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | 19 | | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | | - | |
| 30 | + | |
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | | - | |
41 | | - | |
42 | 36 | | |
43 | | - | |
| 37 | + | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | | - | |
50 | | - | |
51 | 43 | | |
52 | | - | |
| 44 | + | |
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
58 | | - | |
59 | | - | |
60 | 50 | | |
61 | | - | |
| 51 | + | |
62 | 52 | | |
63 | 53 | | |
64 | 54 | | |
65 | 55 | | |
66 | 56 | | |
67 | | - | |
68 | | - | |
69 | 57 | | |
70 | | - | |
| 58 | + | |
71 | 59 | | |
72 | 60 | | |
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
76 | | - | |
77 | | - | |
78 | 64 | | |
79 | | - | |
| 65 | + | |
80 | 66 | | |
81 | 67 | | |
82 | 68 | | |
83 | 69 | | |
84 | 70 | | |
85 | | - | |
86 | | - | |
87 | 71 | | |
88 | | - | |
| 72 | + | |
89 | 73 | | |
90 | 74 | | |
91 | 75 | | |
92 | 76 | | |
93 | 77 | | |
94 | | - | |
95 | | - | |
96 | 78 | | |
97 | | - | |
| 79 | + | |
98 | 80 | | |
99 | 81 | | |
100 | 82 | | |
101 | 83 | | |
102 | 84 | | |
103 | | - | |
104 | | - | |
105 | 85 | | |
106 | | - | |
| 86 | + | |
107 | 87 | | |
108 | 88 | | |
109 | 89 | | |
110 | 90 | | |
111 | 91 | | |
112 | | - | |
113 | | - | |
114 | 92 | | |
115 | | - | |
| 93 | + | |
116 | 94 | | |
117 | 95 | | |
118 | 96 | | |
119 | 97 | | |
120 | 98 | | |
121 | | - | |
122 | | - | |
123 | 99 | | |
124 | | - | |
| 100 | + | |
125 | 101 | | |
126 | 102 | | |
127 | 103 | | |
| |||
0 commit comments