
(provide (quote string))

(defun string-replace-match (regexp string newtext &optional literal global) "\
Replace first match of REGEXP in STRING with NEWTEXT.
If no match is found, nil is returned instead of the new string.

Optional arg LITERAL non-nil means to take NEWTEXT literally. If LITERAL is 
nil, character `\\' is the start of one of the following sequences:
  \\\\   will be replaced by a single \\.
  \\&   will be replaced by the text which matched the regexp.
  \\N   where N is a number and 1 <= N <= 9, will be replaced
       by the Nth subexpression in REGEXP. Subexpressions are grouped
       inside \\( \\).

Optional arg GLOBAL means to replace all matches instead of only the first." (byte-code "Ë ÌŽ	ƒR ÍÎÊÊÏ#…> ÐÎ!ÑÎ!
Oƒ3 	‚5 Ò Q‰ˆ‚ ˆƒM 
ÊOP‚N Ê,‚| ÏÎ#?ƒa Ê‚| ÎÐÎ!Oƒr 	‚t Ò ÑÎ!ÊOQ))‡" [data global result start matchbeginning matchend regexp string literal newtext nil match-data ((byte-code "Á!‡" [data store-match-data] 2)) "" 0 string-match match-beginning match-end elib-string-expand-newtext] 14))

(defun elib-string-expand-newtext nil (byte-code "È
GÉ	W…p 
HÊUƒ` Ë
T‰H‰Uƒ0 ÌÈ!ÍÈ!O‚] ÎY…9 ÏXƒZ ÐZÌ!ƒU Ì!Í!O‚V É)‚] Ñ!‚c Ñ!)P‰ˆT‰ˆ‚ ˆ+‡" [pos len newtext expanded-newtext c string n t 0 "" 92 38 match-beginning match-end 49 57 48 char-to-string] 10))

(defun string-split (pattern string &optional limit) "\
Splitting on regexp PATTERN, turn string STRING into a list of substrings.
Optional third arg LIMIT (>= 1) is a limit to the length of the
resulting list." (byte-code "È ÉŽÊ
\"Ë	OCÌ	… ÍË!…T Î!?†, W…5 Ê
#…T ÏË!T	OBÍË!‰ˆ‚  ˆÎ!?†a W…f …r ÐOB‰ˆÑ!,))‡" [data start pattern string result count end limit match-data ((byte-code "Á!‡" [data store-match-data] 2)) string-match 0 1 match-end integerp match-beginning nil nreverse] 11))
