<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>83013</integer>
    </number>
    <user>
      <string>egn</string>
    </user>
    <title>
      <string>untitled</string>
    </title>
    <contents>
      <string>(defun replace-all (string part replacement &amp;key (test #'char=))
&quot;Returns a new string in which all the occurences of the part is replaced with replacement.&quot;
    (with-output-to-string (out)
      (loop with part-length = (length part)
            for old-pos = 0 then (+ pos part-length)
            for pos = (search part string
                              :start2 old-pos
                              :test test)
            do (write-string string out
                             :start old-pos
                             :end (or pos (length string)))
            when pos do (write-string replacement out)
            while pos))) </string>
    </contents>
    <universal-time>
      <integer>3455717139</integer>
    </universal-time>
    <channel>
      <string>None</string>
    </channel>
    <colorization-mode>
      <string>None</string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
    <deletion-requested>
      <null/>
    </deletion-requested>
    <deletion-requested-email>
      <null/>
    </deletion-requested-email>
    <expiration-time>
      <null/>
    </expiration-time>
  </paste>
</paste-with-annotations>
