+2002-01-28 Hans-Peter Nilsson <hp@axis.com>
+
+ * doc/pmacros.texi: Fix .substr typo to .substring.
+ Mention that .sym expansions are not further expanded.
+
2002-01-22 Graydon Hoare <graydon@redhat.com>
* desc-cpu.scm (ifld-number-cache): Add.
* Convert a number to a hex:: The @code{.hex} builtin
* Convert a string to uppercase:: The @code{.upcase} builtin
* Convert a string to lowercase:: The @code{.downcase} builtin
-* Getting part of a string:: The @code{.substr} builtin
+* Getting part of a string:: The @code{.substring} builtin
* List splicing:: The @code{.splice} builtin
* Number generation:: The @code{.iota} builtin
* Mapping a macro over a list:: The @code{.map} builtin
The result is a symbol with the arguments concatenated together.
Numbers are converted to a string, base 10, and then to a symbol.
The result must be a valid Scheme symbol with the additional restriction
-that the first character must be a letter.
+that the first character must be a letter. The result is not further
+expanded, regardless of whether there's a macro by that name.
@node String concatenation
@section String concatenation
@node Getting part of a string
@section Getting part of a string
-@cindex .substr
+@cindex .substring
-Extract a part of a string with @code{.substr}.
+Extract a part of a string with @code{.substring}.
-Syntax: @code{(.substr string start end)}
+Syntax: @code{(.substring string start end)}
where @samp{start} is the starting character, and @samp{end} is one past
the ending character. Character numbering begins at position 0.
Example:
@smallexample
-(.substr "howzitgoineh?" 2 6) --> "wzit"
+(.substring "howzitgoineh?" 2 6) --> "wzit"
@end smallexample
@node List splicing