diff options
| author | Dave Love | 2000-11-27 15:32:38 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-27 15:32:38 +0000 |
| commit | 7f84d9ae468d49ff96a9a54c00e4098ce5e69a26 (patch) | |
| tree | 844780b1e16a2694526e649b8df48fab676a08fd | |
| parent | b25e2fb558c52c5635f9b518fce2d10ae8faa614 (diff) | |
| download | emacs-7f84d9ae468d49ff96a9a54c00e4098ce5e69a26.tar.gz emacs-7f84d9ae468d49ff96a9a54c00e4098ce5e69a26.zip | |
8-bit tweaks
| -rw-r--r-- | lispref/nonascii.texi | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lispref/nonascii.texi b/lispref/nonascii.texi index 52330b090fa..b69b300b498 100644 --- a/lispref/nonascii.texi +++ b/lispref/nonascii.texi | |||
| @@ -177,12 +177,16 @@ If this is non-@code{nil}, it overrides @code{nonascii-insert-offset}. | |||
| 177 | This function converts the text of @var{string} to unibyte | 177 | This function converts the text of @var{string} to unibyte |
| 178 | representation, if it isn't already, and returns the result. If | 178 | representation, if it isn't already, and returns the result. If |
| 179 | @var{string} is a unibyte string, it is returned unchanged. | 179 | @var{string} is a unibyte string, it is returned unchanged. |
| 180 | Multibyte character codes are converted to unibyte | ||
| 181 | by using just the low 8 bits. | ||
| 180 | @end defun | 182 | @end defun |
| 181 | 183 | ||
| 182 | @defun string-make-multibyte string | 184 | @defun string-make-multibyte string |
| 183 | This function converts the text of @var{string} to multibyte | 185 | This function converts the text of @var{string} to multibyte |
| 184 | representation, if it isn't already, and returns the result. If | 186 | representation, if it isn't already, and returns the result. If |
| 185 | @var{string} is a multibyte string, it is returned unchanged. | 187 | @var{string} is a multibyte string, it is returned unchanged. |
| 188 | The function @code{unibyte-char-to-multibyte} is used to convert | ||
| 189 | each unibyte character to a multibyte character. | ||
| 186 | @end defun | 190 | @end defun |
| 187 | 191 | ||
| 188 | @node Selecting a Representation | 192 | @node Selecting a Representation |
| @@ -221,7 +225,10 @@ treating each byte as a character. This means that the value may have | |||
| 221 | more characters than @var{string} has. | 225 | more characters than @var{string} has. |
| 222 | 226 | ||
| 223 | If @var{string} is already a unibyte string, then the value is | 227 | If @var{string} is already a unibyte string, then the value is |
| 224 | @var{string} itself. | 228 | @var{string} itself. Otherwise it is a newly created string, with no |
| 229 | text properties. If @var{string} is multibyte, any characters it | ||
| 230 | contains of charset @var{eight-bit-control} or @var{eight-bit-graphic} | ||
| 231 | are converted to the corresponding single byte. | ||
| 225 | @end defun | 232 | @end defun |
| 226 | 233 | ||
| 227 | @defun string-as-multibyte string | 234 | @defun string-as-multibyte string |
| @@ -230,7 +237,11 @@ treating each multibyte sequence as one character. This means that the | |||
| 230 | value may have fewer characters than @var{string} has. | 237 | value may have fewer characters than @var{string} has. |
| 231 | 238 | ||
| 232 | If @var{string} is already a multibyte string, then the value is | 239 | If @var{string} is already a multibyte string, then the value is |
| 233 | @var{string} itself. | 240 | @var{string} itself. Otherwise it is a newly created string, with no |
| 241 | text properties. If @var{string} is unibyte and contains any individual | ||
| 242 | 8-bit bytes (i.e.@: not part of a multibyte form), they are converted to | ||
| 243 | the corresponding multibyte character of charset @var{eight-bit-control} | ||
| 244 | or @var{eight-bit-graphic}. | ||
| 234 | @end defun | 245 | @end defun |
| 235 | 246 | ||
| 236 | @node Character Codes | 247 | @node Character Codes |