Differences From Artifact [b039102173]:
- File
src/OFHTTPResponse.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 6335) [annotate] [blame] [check-ins using]
To Artifact [a5f10ef207]:
- File src/OFHTTPResponse.m — part of check-in [7e8ee9b1f9] at 2017-05-13 19:51:35 on branch trunk — Make Apple GCC happy (user: js, size: 6374) [annotate] [blame] [check-ins using]
︙ | |||
40 41 42 43 44 45 46 47 48 49 50 51 52 53 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + | STATE_PARAM_NAME, STATE_PARAM_VALUE_OR_QUOTE, STATE_PARAM_VALUE, STATE_PARAM_QUOTED_VALUE, STATE_AFTER_PARAM_VALUE } state = STATE_TYPE; OFString *name = nil, *value = nil, *charset = nil; of_string_encoding_t ret; last = 0; for (size_t i = 0; i < length; i++) { switch (state) { case STATE_TYPE: if (UTF8String[i] == ';') { state = STATE_BEFORE_PARAM_NAME; |
︙ | |||
123 124 125 126 127 128 129 | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | - + - + + + | value = [value stringByDeletingTrailingWhitespaces]; if ([name isEqual: @"charset"]) charset = value; } @try { |
︙ |