Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,5 +0,0 @@
|
|||
(rot13-string "abc") ;=> "nop"
|
||||
(with-temp-buffer
|
||||
(insert "abc")
|
||||
(rot13-region (point-min) (point-max))
|
||||
(buffer-string)) ;=> "nop"
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
(defun rot-13 (string)
|
||||
(let* ((len (length string))
|
||||
(output (make-string len ?\s)))
|
||||
(dotimes (i len)
|
||||
(let ((char (aref string i)))
|
||||
(cond
|
||||
((or (and (>= char ?n) (<= char ?z))
|
||||
(and (>= char ?N) (<= char ?Z)))
|
||||
(aset output i (- char 13)))
|
||||
((or (and (>= char ?a) (<= char ?m))
|
||||
(and (>= char ?A) (<= char ?M)))
|
||||
(aset output i (+ char 13)))
|
||||
(t
|
||||
(aset output i char)))))
|
||||
output))
|
||||
Loading…
Add table
Add a link
Reference in a new issue