commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file contains utf-8 non-ASCII characters, |
|
7 |
;;; and so cannot be loaded into Emacs 22 or earlier. |
|
8 |
(and (boundp 'emacs-version) |
|
9 |
(< (aref emacs-version (1- (length emacs-version))) ?A) |
|
10 |
(string-lessp emacs-version "23") |
|
11 |
(error "`%s' was compiled for Emacs 23 or later" #$)) |
|
12 |
|
|
13 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
14 |
|
|
15 |
|
|
16 |
(autoload 'slot-value "eieio") |
|
17 |
#@42 Remove whitespace at the beginning of S. |
|
18 |
(defalias 's-trim-left #[(s) "\302 \303\216\304\305 \"\203 \306\307\310\211 $\202 *\207" [save-match-data-internal s match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] string-match "\\`[ \n
]+" replace-match "" t] 5 (#$ . 439)]) |
|
19 |
(byte-code "\300\301\302\303#\300\301\304\303#\300\207" [function-put s-trim-left pure t side-effect-free] 5) |
|
20 |
#@36 Remove whitespace at the end of S. |
|
21 |
(defalias 's-trim-right #[(s) "\302 \303\216\304\305 \"\203 \306\307\310\211 $\202 *\207" [save-match-data-internal s match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] string-match "[ \n
]+\\'" replace-match "" t] 5 (#$ . 869)]) |
|
22 |
#@50 Remove whitespace at the beginning and end of S. |
|
23 |
(defalias 's-trim #[(s) "\301\302!!\207" [s s-trim-left s-trim-right] 3 (#$ . 1184)]) |
|
24 |
(byte-code "\300\301\302\303#\300\301\304\303#\300\207" [function-put s-trim pure t side-effect-free] 5) |
|
25 |
#@63 Convert all adjacent whitespace characters to a single space. |
|
26 |
(defalias 's-collapse-whitespace #[(s) "\301\302\303#\207" [s replace-regexp-in-string "[ \n
]+" " "] 4 (#$ . 1431)]) |
|
27 |
(byte-code "\300\301\302\303#\300\301\304\303#\300\207" [function-put s-collapse-whitespace pure t side-effect-free] 5) |
|
28 |
#@190 Split S into substrings bounded by matches for regexp SEPARATOR. |
|
29 |
If OMIT-NULLS is non-nil, zero-length substrings are omitted. |
|
30 |
|
|
31 |
This is a simple wrapper around the built-in `split-string'. |
|
32 |
(defalias 's-split #[(separator s &optional omit-nulls) "\304 \305\216\306 \n#*\207" [save-match-data-internal s separator omit-nulls match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] split-string] 4 (#$ . 1740)]) |
|
33 |
(byte-code "\300\301\302\303#\300\207" [function-put s-split side-effect-free t] 4) |
|
34 |
#@164 Split S up to N times into substrings bounded by matches for regexp SEPARATOR. |
|
35 |
|
|
36 |
If OMIT-NULLS is non-nil, zero-length substrings are omitted. |
|
37 |
|
|
38 |
See also `s-split'. |
|
39 |
(defalias 's-split-up-to #[(separator s n &optional omit-nulls) "\306 \307\216\310\311\312\313!rq\210\314\216\fc\210eb\315
\311\316#\203L \310W\203L \n\310\224{\203: \317\232\204? B)\310\225bS\202 \nd{\203] \317\232\204b B, \237,\207" [save-match-data-internal r op #1=#:temp-buffer s separator match-data #[nil "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3] 0 nil generate-new-buffer " *temp*" #[nil "\301!\205 |