%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/mail/ |
Current File : //usr/local/share/emacs/27.2/lisp/mail/yenc.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defconst yenc-begin-line "^=ybegin.*$") (defconst yenc-decoding-vector [214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213]) #@64 Say whether the buffer contains the first part of a yEnc file. (defalias 'yenc-first-part-p #[0 "\212eb\210\300\301\302\303#)\207" [re-search-forward "^=ybegin part=1 " nil t] 4 (#$ . 1397)]) #@63 Say whether the buffer contains the last part of a yEnc file. (defalias 'yenc-last-part-p #[0 "\212eb\210\300\211\301\302\300\303#\203 \304\305!\262\301\306\300\303#\203 \304\305!\262\205+ \211\205+ \230\266\202)\207" [nil re-search-forward "^=ybegin.*size=\\([0-9]+\\)" t match-string 1 "^=ypart.*end=\\([0-9]+\\)"] 6 (#$ . 1595)]) #@85 Yenc decode region between START and END using an internal decoder. (fn START END) (defalias 'yenc-decode-region #[514 "\302\303\216\212b\210\304\305#\203\302 \306\225\307\310\306!!\302\211\211\211\304\311 \305#\203' \306\225\262\304\312 \305#\203\300 \306\224\262\307\310\306!!\262\313\314!\262rq\210\315\302!\210)W\203\225 f\262\211\316=\204\216 \211\317=\204\216 \211\320=\203\201 T\211\262f\262rq\210\321\322\323Z\324\"\325\"\210)\202\216 rq\210\321 H\325\"\210)T\262\202J \326!\262\327\236AU\203\255 \327\236AU\204\261 \330\331!\210b\210|\210\332!\210\266\211\205\311 \333!*\207" [yenc-begin-line yenc-decoding-vector nil #[0 "\300\207" [nil] 1] re-search-forward t 0 yenc-parse-line match-string "^=ypart.*$" "^=yend.*$" generate-new-buffer " *yenc-work*" set-buffer-multibyte 13 10 61 insert-char mod 106 256 1 buffer-size size message "Warning: Size mismatch while decoding." insert-buffer-substring kill-buffer] 13 (#$ . 1941) "r"]) #@40 Extract file name from an yenc header. (defalias 'yenc-extract-filename #[0 "\212\301\302\303#\205 \304\305\306\307\310!!\"A)\207" [yenc-begin-line re-search-forward nil t assoc name yenc-parse-line match-string 0] 5 (#$ . 2933)]) #@48 Extract file name and size from STR. (fn STR) (defalias 'yenc-parse-line #[257 "\300\211\301\302\"\203 \303\304\305\306\"!BB\262\301\307\"\2039 \305\306\"\262\301\310\"\2032 \311\312\211\224#\262\313BB\262\207" [nil string-match "^=y.*size=\\([0-9]+\\)" size string-to-number match-string 1 "^=y.*name=\\(.*\\)$" " +$" substring 0 name] 8 (#$ . 3172)]) (provide 'yenc)