Lines Matching refs:body
102 * RFC 2047) found in a header field body.
118 * RFC 2047) found in a header field body.
153 * @param body the string to decode.
156 public static String decodeEncodedWords(String body) {
160 if (body.indexOf("=?") == -1) {
161 return body;
170 int begin = body.indexOf("=?", previousEnd);
177 int qm1 = body.indexOf('?', endScan + 2);
178 int qm2 = body.indexOf('?', qm1 + 1);
184 int end = begin == -1 ? -1 : body.indexOf("?=", endScan);
187 return body;
189 sb.append(body.substring(previousEnd));
194 String sep = body.substring(previousEnd, begin);
196 String decoded = decodeEncodedWord(body, begin, end);
199 sb.append(body.substring(begin, end));
213 private static String decodeEncodedWord(String body, int begin, int end) {
214 int qm1 = body.indexOf('?', begin + 2);
218 int qm2 = body.indexOf('?', qm1 + 1);
222 String mimeCharset = body.substring(begin + 2, qm1);
223 String encoding = body.substring(qm1 + 1, qm2);
224 String encodedText = body.substring(qm2 + 1, end - 2);
230 + body.substring(begin, end) + "' doesn't have a "
238 + "' in encoded word '" + body.substring(begin, end)
247 + body.substring(begin, end) + "'");
260 + body.substring(begin, end) + "'");
268 + body.substring(begin, end) + "'", e);
274 + body.substring(begin, end) + "'", e);