aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/strings.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 09c3bdf71f6..24d3ee45877 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -1197,6 +1197,7 @@ a character, functions are unable to perform proper substitution and
1197result may differ compared to treating a one-character string. For 1197result may differ compared to treating a one-character string. For
1198example: 1198example:
1199 1199
1200@ifnottex
1200@example 1201@example
1201@group 1202@group
1202(upcase "fi") ; note: single character, ligature "fi" 1203(upcase "fi") ; note: single character, ligature "fi"
@@ -1207,6 +1208,19 @@ example:
1207 @result{} 64257 ; i.e. ?fi 1208 @result{} 64257 ; i.e. ?fi
1208@end group 1209@end group
1209@end example 1210@end example
1211@end ifnottex
1212@iftex
1213@example
1214@group
1215(upcase "fi") ; note: single character, ligature "fi"
1216 @result{} "FI"
1217@end group
1218@group
1219(upcase ?fi)
1220 @result{} 64257 ; i.e. ?fi
1221@end group
1222@end example
1223@end iftex
1210 1224
1211 To avoid this, a character must first be converted into a string, 1225 To avoid this, a character must first be converted into a string,
1212using @code{string} function, before being passed to one of the casing 1226using @code{string} function, before being passed to one of the casing