aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-08 20:58:53 +0000
committerRichard M. Stallman1998-02-08 20:58:53 +0000
commit026f59ce86ab15a2fc5c0a33f8ff77d4a34594d1 (patch)
treeade33c779db4f799f25ebc32683b806ce92a73ce /src
parentcf96540d543671bbc2e2ea8f740d74bcf9e48941 (diff)
downloademacs-026f59ce86ab15a2fc5c0a33f8ff77d4a34594d1.tar.gz
emacs-026f59ce86ab15a2fc5c0a33f8ff77d4a34594d1.zip
(Fstring_bytes): New function.
(syms_of_fns): defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index bb323f765f7..bc14b280002 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -179,6 +179,15 @@ which is at least the number of distinct elements.")
179 return length; 179 return length;
180} 180}
181 181
182DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0,
183 "Return the number of bytes in STRING.\n\
184If 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
182DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0, 191DEFUN ("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\
184Case is significant, but text properties are ignored.\n\ 193Case 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);