git.fiddlerwoaroof.com
Browse code

chore: fix whitespace

Edward Langley authored on 23/11/2022 22:39:24
Showing 1 changed files
... ...
@@ -15,12 +15,12 @@
15 15
                     (type simple-string string))
16 16
            (if (= 0 (length string))
17 17
                1
18
-           (do* ((x (the array-length 0) (1+ x))
19
-                 (cur-char #1=(aref string x) #1#)
20
-                 (result (the array-length 0) (if (char= cur-char char)
21
-                                                  (1+ result)
22
-                                                  result)))
23
-                ((= x (1- (length string))) (1+ result))
18
+               (do* ((x (the array-length 0) (1+ x))
19
+                     (cur-char #1=(aref string x) #1#)
20
+                     (result (the array-length 0) (if (char= cur-char char)
21
+                                                      (1+ result)
22
+                                                      result)))
23
+                    ((= x (1- (length string))) (1+ result))
24 24
                  (declare (type array-length result))))))
25 25
     (typecase string
26 26
       ((and string (not simple-string))
... ...
@@ -97,9 +97,9 @@
97 97
           (start-pos (the fixnum 0)))
98 98
       (declare (dynamic-extent start-pos))
99 99
       (prog1 parts
100
-        (loop 
100
+        (loop
101 101
           for end-pos = (find-pos start-pos)
102
-          while end-pos 
102
+          while end-pos
103 103
           do
104 104
              (vector-push (subseq string start-pos end-pos) parts)
105 105
              (setf start-pos (1+ end-pos))
... ...
@@ -148,12 +148,12 @@
148 148
                              :adjustable t
149 149
                              :fill-pointer 0))
150 150
           (start-pos 0))
151
-      (loop 
151
+      (loop
152 152
         for end-pos = (typecase search-test
153 153
                         (function (%search-with-test start-pos search-test))
154 154
                         (null (%search start-pos)))
155 155
         do
156
-           (vector-push-extend (subseq string start-pos end-pos) parts) 
156
+           (vector-push-extend (subseq string start-pos end-pos) parts)
157 157
            (incf (the array-length num-parts))
158 158
         while end-pos
159 159
         do (setf start-pos (the array-length (+ pattern-length end-pos)))