This file is indexed.

/usr/lib/s9fes/string-scan.scm is in scheme9 2010.11.13-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; Scheme 9 from Empty Space, Function Library
; By Nils M Holm, 2010
; See the LICENSE file of the S9fES package for terms of use
;
; (string-scan char string)     ==>  integer | #f
; (string-ci-scan char string)  ==>  integer | #f
;
; (load-from-library "string-scan.scm")
;
; Scan STRING for CHAR. When STRING contains CHAR, return its position,
; otherwise return #F. STRING-CI-SCAN does the same but ignores case.
;
; Example:   (string-scan #\y "xyz")  ==>  1

(define (make-string-scan c=?)
  (lambda (c s)
    (let ((k (string-length s)))
      (let loop ((i 0))
        (cond ((>= i k)
                #f)
              ((c=? c (string-ref s i))
                i)
              (else
                (loop (+ 1 i))))))))

(define string-scan    (make-string-scan char=?))
(define string-ci-scan (make-string-scan char-ci=?))