Differences From Artifact [5bc20d85da]:
- File src/encode.c — part of check-in [5210b9379a] at 2013-01-18 02:23:37 on branch trunk — Remove an unused variable from the URL encoder. (user: drh size: 16132) [more...]
To Artifact [c7e78efef4]:
- File src/encode.c — part of check-in [a789e85ff6] at 2013-08-31 14:03:19 on branch trunk — Optimized out an unnecessary string copy in appendDiffLine(), #undef'd a local macro in EncodeHttp(). (user: stephan size: 16150) [more...]
| ︙ | |||
159 160 161 162 163 164 165 166 167 168 169 170 171 172 | 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | + |
zOut[i++] = '%';
zOut[i++] = "0123456789ABCDEF"[(c>>4)&0xf];
zOut[i++] = "0123456789ABCDEF"[c&0xf];
}
zIn++;
}
zOut[i] = 0;
#undef IsSafeChar
return zOut;
}
/*
** Convert the input string into a form that is suitable for use as
** a token in the HTTP protocol. Spaces are encoded as '+' and special
** characters are encoded as "%HH" where HH is a two-digit hexadecimal
|
| ︙ |