mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Note that strlen returns number of bytes, not characters.
This commit is contained in:
@@ -3991,7 +3991,10 @@ output is not going to a TTY.
|
|||||||
.TP
|
.TP
|
||||||
.B strlen(s_str)
|
.B strlen(s_str)
|
||||||
Returns the length of \fIstr\fR. If the length of \fIstr\fR is too large
|
Returns the length of \fIstr\fR. If the length of \fIstr\fR is too large
|
||||||
to represent as an integer, emits a "Number too high" error.
|
to represent as an integer, emits a "Number too high" error. Note that
|
||||||
|
\fBstrlen\fR returns the number of \fIbytes\fR in the string, not the
|
||||||
|
number of \fIcharacters\fR. These numbers are the same for ASCII strings,
|
||||||
|
but may be different for UTF-8 strings.
|
||||||
.TP
|
.TP
|
||||||
.B substr(s_str, i_start [,i_end])
|
.B substr(s_str, i_start [,i_end])
|
||||||
Returns a \fBSTRING\fR consisting of all characters in \fIstr\fR from
|
Returns a \fBSTRING\fR consisting of all characters in \fIstr\fR from
|
||||||
|
|||||||
Reference in New Issue
Block a user