diff options
Diffstat (limited to 'doc/lispref/strings.texi')
| -rw-r--r-- | doc/lispref/strings.texi | 13 |
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 |
| 411 | This function returns @code{t} if the characters of the two strings | 411 | This function returns @code{t} if the characters of the two strings |
| 412 | match exactly. Symbols are also allowed as arguments, in which case | 412 | match exactly. Symbols are also allowed as arguments, in which case |
| 413 | their print names are used. | 413 | the symbol names are used. Case is always significant, regardless of |
| 414 | Case is always significant, regardless of @code{case-fold-search}. | 414 | @code{case-fold-search}. |
| 415 | |||
| 416 | This function is equivalent to @code{equal} for comparing two strings | ||
| 417 | (@pxref{Equality Predicates}). In particular, the text properties of | ||
| 418 | the two strings are ignored. But if either argument is not a string | ||
| 419 | or 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 | ||
| 425 | The function @code{string=} ignores the text properties of the two | ||
| 426 | strings. When @code{equal} (@pxref{Equality Predicates}) compares two | ||
| 427 | strings, it uses @code{string=}. | ||
| 428 | |||
| 429 | For technical reasons, a unibyte and a multibyte string are | 430 | For 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 |
| 431 | character codes and all these codes are either in the range 0 through | 432 | character codes and all these codes are either in the range 0 through |