diff options
| author | Richard M. Stallman | 1998-02-08 20:58:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-08 20:58:53 +0000 |
| commit | 026f59ce86ab15a2fc5c0a33f8ff77d4a34594d1 (patch) | |
| tree | ade33c779db4f799f25ebc32683b806ce92a73ce /src | |
| parent | cf96540d543671bbc2e2ea8f740d74bcf9e48941 (diff) | |
| download | emacs-026f59ce86ab15a2fc5c0a33f8ff77d4a34594d1.tar.gz emacs-026f59ce86ab15a2fc5c0a33f8ff77d4a34594d1.zip | |
(Fstring_bytes): New function.
(syms_of_fns): defsubr it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -179,6 +179,15 @@ which is at least the number of distinct elements.") | |||
| 179 | return length; | 179 | return length; |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0, | ||
| 183 | "Return the number of bytes in STRING.\n\ | ||
| 184 | If STRING is a multibyte string, this is greater than the length of STRING.") | ||
| 185 | (string) | ||
| 186 | { | ||
| 187 | CHECK_STRING (string, 1); | ||
| 188 | return make_number (XSTRING (string)->size_byte); | ||
| 189 | } | ||
| 190 | |||
| 182 | DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0, | 191 | DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0, |
| 183 | "Return t if two strings have identical contents.\n\ | 192 | "Return t if two strings have identical contents.\n\ |
| 184 | Case is significant, but text properties are ignored.\n\ | 193 | Case is significant, but text properties are ignored.\n\ |
| @@ -2541,6 +2550,7 @@ invoked by mouse clicks and mouse menu items."); | |||
| 2541 | defsubr (&Srandom); | 2550 | defsubr (&Srandom); |
| 2542 | defsubr (&Slength); | 2551 | defsubr (&Slength); |
| 2543 | defsubr (&Ssafe_length); | 2552 | defsubr (&Ssafe_length); |
| 2553 | defsubr (&Sstring_bytes); | ||
| 2544 | defsubr (&Sstring_equal); | 2554 | defsubr (&Sstring_equal); |
| 2545 | defsubr (&Sstring_lessp); | 2555 | defsubr (&Sstring_lessp); |
| 2546 | defsubr (&Sappend); | 2556 | defsubr (&Sappend); |