mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
* Minor docstring updates.
This commit is contained in:
parent
8d009ee4a2
commit
a6be01a45e
5 changed files with 38 additions and 28 deletions
|
@ -8,8 +8,9 @@ in the libguile C source change.
|
||||||
|
|
||||||
- README is this file.
|
- README is this file.
|
||||||
|
|
||||||
- docstring.el is a helpful Emacs Lisp library. The usual entry point
|
- docstring.el is a helpful Emacs Lisp library. The two key entry
|
||||||
is `docstring-process-current-buffer'.
|
points are `docstring-process-module' and
|
||||||
|
`docstring-ediff-this-line'.
|
||||||
|
|
||||||
- guile.texi is a snapshot of the built file
|
- guile.texi is a snapshot of the built file
|
||||||
guile-core/libguile/guile.texi, copied last time the reference
|
guile-core/libguile/guile.texi, copied last time the reference
|
||||||
|
|
|
@ -2464,7 +2464,7 @@ scm_cons_star
|
||||||
@deffn primitive cons* arg . rest
|
@deffn primitive cons* arg . rest
|
||||||
Like @code{list}, but the last arg provides the tail of the
|
Like @code{list}, but the last arg provides the tail of the
|
||||||
constructed list, returning @code{(cons @var{arg1} (cons
|
constructed list, returning @code{(cons @var{arg1} (cons
|
||||||
@var{arg2} (cons @dots{} @var{argn}))). Requires at least one
|
@var{arg2} (cons @dots{} @var{argn})))}. Requires at least one
|
||||||
argument. If given one argument, that argument is returned as
|
argument. If given one argument, that argument is returned as
|
||||||
result. This function is called @code{list*} in some other
|
result. This function is called @code{list*} in some other
|
||||||
Schemes and in Common LISP.
|
Schemes and in Common LISP.
|
||||||
|
@ -5747,13 +5747,15 @@ defaults to the end of @var{str}. The shared substring returned by
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-index
|
string-index
|
||||||
@c snarfed from strop.c:120
|
@c snarfed from strop.c:121
|
||||||
@deffn primitive string-index str chr [frm [to]]
|
@deffn primitive string-index str chr [frm [to]]
|
||||||
Return the index of the first occurrence of @var{chr} in
|
Return the index of the first occurrence of @var{chr} in
|
||||||
@var{str}. The optional integer arguments @var{frm} and
|
@var{str}. The optional integer arguments @var{frm} and
|
||||||
@var{to} limit the search to a portion of the string. This
|
@var{to} limit the search to a portion of the string. This
|
||||||
procedure essentially implements the @code{index} or
|
procedure essentially implements the @code{index} or
|
||||||
@code{strchr} functions from the C library.\n (qdocs:) Returns
|
@code{strchr} functions from the C library.
|
||||||
|
|
||||||
|
(qdocs:) Returns
|
||||||
the index of @var{char} in @var{str}, or @code{#f} if the
|
the index of @var{char} in @var{str}, or @code{#f} if the
|
||||||
@var{char} isn't in @var{str}. If @var{frm} is given and not
|
@var{char} isn't in @var{str}. If @var{frm} is given and not
|
||||||
@code{#f}, it is used as the starting index; if @var{to} is
|
@code{#f}, it is used as the starting index; if @var{to} is
|
||||||
|
@ -5761,19 +5763,19 @@ given and not @code{#f}, it is used as the ending index
|
||||||
(exclusive).
|
(exclusive).
|
||||||
|
|
||||||
@example
|
@example
|
||||||
(string-index "weiner" #\\e)
|
(string-index "weiner" #\e)
|
||||||
@result{} 1
|
@result{} 1
|
||||||
|
|
||||||
(string-index "weiner" #\\e 2)
|
(string-index "weiner" #\e 2)
|
||||||
@result{} 4
|
@result{} 4
|
||||||
|
|
||||||
(string-index "weiner" #\\e 2 4)
|
(string-index "weiner" #\e 2 4)
|
||||||
@result{} #f
|
@result{} #f
|
||||||
@end example
|
@end example
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-rindex
|
string-rindex
|
||||||
@c snarfed from strop.c:151
|
@c snarfed from strop.c:152
|
||||||
@deffn primitive string-rindex str chr [frm [to]]
|
@deffn primitive string-rindex str chr [frm [to]]
|
||||||
Like @code{string-index}, but search from the right of the string rather
|
Like @code{string-index}, but search from the right of the string rather
|
||||||
than from the left. This procedure essentially implements the
|
than from the left. This procedure essentially implements the
|
||||||
|
@ -5784,31 +5786,31 @@ of @var{char} in the range [@var{frm}, @var{to}-1], which defaults to
|
||||||
the entire string.
|
the entire string.
|
||||||
|
|
||||||
@example
|
@example
|
||||||
(string-rindex "weiner" #\\e)
|
(string-rindex "weiner" #\e)
|
||||||
@result{} 4
|
@result{} 4
|
||||||
|
|
||||||
(string-rindex "weiner" #\\e 2 4)
|
(string-rindex "weiner" #\e 2 4)
|
||||||
@result{} #f
|
@result{} #f
|
||||||
|
|
||||||
(string-rindex "weiner" #\\e 2 5)
|
(string-rindex "weiner" #\e 2 5)
|
||||||
@result{} 4
|
@result{} 4
|
||||||
@end example
|
@end example
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
substring-move-left!
|
substring-move-left!
|
||||||
@c snarfed from strop.c:168
|
@c snarfed from strop.c:169
|
||||||
@deffn primitive substring-move-left!
|
@deffn primitive substring-move-left!
|
||||||
scm_substring_move_x
|
scm_substring_move_x
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
substring-move-right!
|
substring-move-right!
|
||||||
@c snarfed from strop.c:169
|
@c snarfed from strop.c:170
|
||||||
@deffn primitive substring-move-right!
|
@deffn primitive substring-move-right!
|
||||||
scm_substring_move_x
|
scm_substring_move_x
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
substring-move!
|
substring-move!
|
||||||
@c snarfed from strop.c:243
|
@c snarfed from strop.c:244
|
||||||
@deffn primitive substring-move! str1 start1 end1 str2 start2
|
@deffn primitive substring-move! str1 start1 end1 str2 start2
|
||||||
@deffnx primitive substring-move-left! str1 start1 end1 str2 start2
|
@deffnx primitive substring-move-left! str1 start1 end1 str2 start2
|
||||||
@deffnx primitive substring-move-right! str1 start1 end1 str2 start2
|
@deffnx primitive substring-move-right! str1 start1 end1 str2 start2
|
||||||
|
@ -5831,7 +5833,7 @@ are different strings, it does not matter which function you use.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
substring-fill!
|
substring-fill!
|
||||||
@c snarfed from strop.c:279
|
@c snarfed from strop.c:280
|
||||||
@deffn primitive substring-fill! str start end fill
|
@deffn primitive substring-fill! str start end fill
|
||||||
Change every character in @var{str} between @var{start} and @var{end} to
|
Change every character in @var{str} between @var{start} and @var{end} to
|
||||||
@var{fill-char}.
|
@var{fill-char}.
|
||||||
|
@ -5840,14 +5842,14 @@ Change every character in @var{str} between @var{start} and @var{end} to
|
||||||
|
|
||||||
@example
|
@example
|
||||||
(define y "abcdefg")
|
(define y "abcdefg")
|
||||||
(substring-fill! y 1 3 #\\r)
|
(substring-fill! y 1 3 #\r)
|
||||||
y
|
y
|
||||||
@result{} "arrdefg"
|
@result{} "arrdefg"
|
||||||
@end example
|
@end example
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-null?
|
string-null?
|
||||||
@c snarfed from strop.c:306
|
@c snarfed from strop.c:307
|
||||||
@deffn primitive string-null? str
|
@deffn primitive string-null? str
|
||||||
Return @code{#t} if @var{str}'s length is nonzero, and @code{#f}
|
Return @code{#t} if @var{str}'s length is nonzero, and @code{#f}
|
||||||
otherwise.
|
otherwise.
|
||||||
|
@ -5864,7 +5866,7 @@ otherwise.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string->list
|
string->list
|
||||||
@c snarfed from strop.c:322
|
@c snarfed from strop.c:323
|
||||||
@deffn primitive string->list str
|
@deffn primitive string->list str
|
||||||
@samp{String->list} returns a newly allocated list of the
|
@samp{String->list} returns a newly allocated list of the
|
||||||
characters that make up the given string. @samp{List->string}
|
characters that make up the given string. @samp{List->string}
|
||||||
|
@ -5875,20 +5877,20 @@ inverses so far as @samp{equal?} is concerned. (r5rs)
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-copy
|
string-copy
|
||||||
@c snarfed from strop.c:347
|
@c snarfed from strop.c:348
|
||||||
@deffn primitive string-copy str
|
@deffn primitive string-copy str
|
||||||
Returns a newly allocated copy of the given @var{string}. (r5rs)
|
Returns a newly allocated copy of the given @var{string}. (r5rs)
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-fill!
|
string-fill!
|
||||||
@c snarfed from strop.c:360
|
@c snarfed from strop.c:361
|
||||||
@deffn primitive string-fill! str chr
|
@deffn primitive string-fill! str chr
|
||||||
Stores @var{char} in every element of the given @var{string} and returns an
|
Stores @var{char} in every element of the given @var{string} and returns an
|
||||||
unspecified value. (r5rs)
|
unspecified value. (r5rs)
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-upcase!
|
string-upcase!
|
||||||
@c snarfed from strop.c:396
|
@c snarfed from strop.c:397
|
||||||
@deffn primitive string-upcase! str
|
@deffn primitive string-upcase! str
|
||||||
Destructively upcase every character in @code{str}.
|
Destructively upcase every character in @code{str}.
|
||||||
|
|
||||||
|
@ -5904,13 +5906,13 @@ y
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-upcase
|
string-upcase
|
||||||
@c snarfed from strop.c:408
|
@c snarfed from strop.c:409
|
||||||
@deffn primitive string-upcase str
|
@deffn primitive string-upcase str
|
||||||
Upcase every character in @code{str}.
|
Upcase every character in @code{str}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-downcase!
|
string-downcase!
|
||||||
@c snarfed from strop.c:443
|
@c snarfed from strop.c:444
|
||||||
@deffn primitive string-downcase! str
|
@deffn primitive string-downcase! str
|
||||||
Destructively downcase every character in @code{str}.
|
Destructively downcase every character in @code{str}.
|
||||||
|
|
||||||
|
@ -5929,25 +5931,25 @@ y
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-downcase
|
string-downcase
|
||||||
@c snarfed from strop.c:455
|
@c snarfed from strop.c:456
|
||||||
@deffn primitive string-downcase str
|
@deffn primitive string-downcase str
|
||||||
Downcase every character in @code{str}.
|
Downcase every character in @code{str}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-capitalize!
|
string-capitalize!
|
||||||
@c snarfed from strop.c:492
|
@c snarfed from strop.c:493
|
||||||
@deffn primitive string-capitalize! str
|
@deffn primitive string-capitalize! str
|
||||||
Destructively capitalize every character in @code{str}.
|
Destructively capitalize every character in @code{str}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-capitalize
|
string-capitalize
|
||||||
@c snarfed from strop.c:504
|
@c snarfed from strop.c:505
|
||||||
@deffn primitive string-capitalize str
|
@deffn primitive string-capitalize str
|
||||||
Capitalize every character in @code{str}.
|
Capitalize every character in @code{str}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
string-ci->symbol
|
string-ci->symbol
|
||||||
@c snarfed from strop.c:516
|
@c snarfed from strop.c:517
|
||||||
@deffn primitive string-ci->symbol str
|
@deffn primitive string-ci->symbol str
|
||||||
Return the symbol whose name is @var{str}, downcased in necessary(???).
|
Return the symbol whose name is @var{str}, downcased in necessary(???).
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
|
@ -597,3 +597,7 @@ temporary file.
|
||||||
@deffn primitive %tag-body body
|
@deffn primitive %tag-body body
|
||||||
Internal GOOPS magic---don't use this function!
|
Internal GOOPS magic---don't use this function!
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
@deffn primitive list*
|
||||||
|
scm_cons_star
|
||||||
|
@end deffn
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
2001-03-23 Neil Jerram <neil@ossau.uklinux.net>
|
2001-03-23 Neil Jerram <neil@ossau.uklinux.net>
|
||||||
|
|
||||||
|
* guile-snarf.awk.in: Substitute "\\" with "\" in .doc output.
|
||||||
|
|
||||||
* strop.c (scm_string_index): Fix docstring line break
|
* strop.c (scm_string_index): Fix docstring line break
|
||||||
regression.
|
regression.
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,7 @@ BEGIN { FS="|";
|
||||||
gsub(/\\n\\n\"?/,"\n",copy);
|
gsub(/\\n\\n\"?/,"\n",copy);
|
||||||
gsub(/\\n\"?[ \t]*$/,"",copy);
|
gsub(/\\n\"?[ \t]*$/,"",copy);
|
||||||
gsub(/\\\"/,"\"",copy);
|
gsub(/\\\"/,"\"",copy);
|
||||||
|
gsub(/\\\\/,"\\",copy);
|
||||||
gsub(/[ \t]*$/,"", copy);
|
gsub(/[ \t]*$/,"", copy);
|
||||||
if (copy != "") { print copy > dot_doc_file }
|
if (copy != "") { print copy > dot_doc_file }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue