diff options
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h index 0c03d1a44ed..619ca29c8e4 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -695,6 +695,7 @@ extern Lisp_Object raw_text_coding_system (Lisp_Object); | |||
| 695 | extern bool raw_text_coding_system_p (struct coding_system *); | 695 | extern bool raw_text_coding_system_p (struct coding_system *); |
| 696 | extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object); | 696 | extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object); |
| 697 | extern Lisp_Object complement_process_encoding_system (Lisp_Object); | 697 | extern Lisp_Object complement_process_encoding_system (Lisp_Object); |
| 698 | extern Lisp_Object make_string_from_utf8 (const char *, ptrdiff_t); | ||
| 698 | 699 | ||
| 699 | extern void decode_coding_gap (struct coding_system *, | 700 | extern void decode_coding_gap (struct coding_system *, |
| 700 | ptrdiff_t, ptrdiff_t); | 701 | ptrdiff_t, ptrdiff_t); |
| @@ -762,6 +763,16 @@ surrogates_to_codepoint (int low, int high) | |||
| 762 | return 0x10000 + (low - 0xDC00) + ((high - 0xD800) * 0x400); | 763 | return 0x10000 + (low - 0xDC00) + ((high - 0xD800) * 0x400); |
| 763 | } | 764 | } |
| 764 | 765 | ||
| 766 | /* Like build_string, but always returns a multibyte string, and is | ||
| 767 | optimized for speed when STR is a UTF-8 encoded text string. */ | ||
| 768 | |||
| 769 | INLINE Lisp_Object | ||
| 770 | build_string_from_utf8 (const char *str) | ||
| 771 | { | ||
| 772 | return make_string_from_utf8 (str, strlen (str)); | ||
| 773 | } | ||
| 774 | |||
| 775 | |||
| 765 | extern Lisp_Object preferred_coding_system (void); | 776 | extern Lisp_Object preferred_coding_system (void); |
| 766 | 777 | ||
| 767 | /* Coding system to be used to encode text for terminal display when | 778 | /* Coding system to be used to encode text for terminal display when |