aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/strings.texi
diff options
context:
space:
mode:
authorJoakim Verona2012-01-23 15:10:06 +0100
committerJoakim Verona2012-01-23 15:10:06 +0100
commit0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch)
tree950c011783cc896d0450084cb5155e54548bfe5b /doc/lispref/strings.texi
parentd5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff)
parentcb5850f27c1b4d26957d58e2da2314dd12498671 (diff)
downloademacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz
emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip
upstream
Diffstat (limited to 'doc/lispref/strings.texi')
-rw-r--r--doc/lispref/strings.texi13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 49199d3e32f..bbb75f1474d 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -410,8 +410,13 @@ in case if @code{case-fold-search} is non-@code{nil}.
410@defun string= string1 string2 410@defun string= string1 string2
411This function returns @code{t} if the characters of the two strings 411This function returns @code{t} if the characters of the two strings
412match exactly. Symbols are also allowed as arguments, in which case 412match exactly. Symbols are also allowed as arguments, in which case
413their print names are used. 413the symbol names are used. Case is always significant, regardless of
414Case is always significant, regardless of @code{case-fold-search}. 414@code{case-fold-search}.
415
416This function is equivalent to @code{equal} for comparing two strings
417(@pxref{Equality Predicates}). In particular, the text properties of
418the two strings are ignored. But if either argument is not a string
419or symbol, an error is signaled.
415 420
416@example 421@example
417(string= "abc" "abc") 422(string= "abc" "abc")
@@ -422,10 +427,6 @@ Case is always significant, regardless of @code{case-fold-search}.
422 @result{} nil 427 @result{} nil
423@end example 428@end example
424 429
425The function @code{string=} ignores the text properties of the two
426strings. When @code{equal} (@pxref{Equality Predicates}) compares two
427strings, it uses @code{string=}.
428
429For technical reasons, a unibyte and a multibyte string are 430For technical reasons, a unibyte and a multibyte string are
430@code{equal} if and only if they contain the same sequence of 431@code{equal} if and only if they contain the same sequence of
431character codes and all these codes are either in the range 0 through 432character codes and all these codes are either in the range 0 through