Mercurial > emacs
comparison lispref/strings.texi @ 12067:73dc8205d259
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 05 Jun 1995 12:23:13 +0000 |
parents | 6f6c571ad0c0 |
children | a6eb5f12b0f3 |
comparison
equal
deleted
inserted
replaced
12066:b9b0b3f96dc2 | 12067:73dc8205d259 |
---|---|
216 The @code{concat} function always constructs a new string that is | 216 The @code{concat} function always constructs a new string that is |
217 not @code{eq} to any existing string. | 217 not @code{eq} to any existing string. |
218 | 218 |
219 When an argument is an integer (not a sequence of integers), it is | 219 When an argument is an integer (not a sequence of integers), it is |
220 converted to a string of digits making up the decimal printed | 220 converted to a string of digits making up the decimal printed |
221 representation of the integer. @string{Don't use this feature---it | 221 representation of the integer. @strong{Don't use this feature; we plan |
222 exists for historical compatibility only, and we plan to change it by | 222 to eliminate it. If you already use this feature, change your programs |
223 and by.} If you wish to convert an integer to a decimal number in this | 223 now!} The proper way to convert an integer to a decimal number in this |
224 way, use @code{format} (@pxref{Formatting Strings}) or | 224 way is with @code{format} (@pxref{Formatting Strings}) or |
225 @code{number-to-string} (@pxref{String Conversion}). | 225 @code{number-to-string} (@pxref{String Conversion}). |
226 | 226 |
227 @example | 227 @example |
228 @group | 228 @group |
229 (concat 137) | 229 (concat 137) |
268 (string= "abc" "ABC") | 268 (string= "abc" "ABC") |
269 @result{} nil | 269 @result{} nil |
270 (string= "ab" "ABC") | 270 (string= "ab" "ABC") |
271 @result{} nil | 271 @result{} nil |
272 @end example | 272 @end example |
273 | |
274 The function @code{string=} ignores the text properties of the | |
275 two strings. To compare strings in a way that compares their text | |
276 properties also, use @code{equal} (@pxref{Equality Predicates}). | |
273 @end defun | 277 @end defun |
274 | 278 |
275 @defun string-equal string1 string2 | 279 @defun string-equal string1 string2 |
276 @code{string-equal} is another name for @code{string=}. | 280 @code{string-equal} is another name for @code{string=}. |
277 @end defun | 281 @end defun |