X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fcoding.c;h=eb7cc9556260b7e6baf7e45cc014fd88d0374565;hb=b403579aa1e9704ab35659e856dde8582cb4c3f1;hp=ca6637c02d3b7d4023111ddaa5cb82cee4b387c6;hpb=48497c708a22781b82dae9e04a2048c281b59fd6;p=m17n%2Fm17n-lib.git diff --git a/src/coding.c b/src/coding.c index ca6637c..eb7cc95 100644 --- a/src/coding.c +++ b/src/coding.c @@ -35,7 +35,7 @@ coding system into an M-text, and inversely, can encode an M-text into a byte sequence. */ -/***ja +/***oldja @addtogroup m17nConv @brief ¥³¡¼¥É·Ï¥ª¥Ö¥¸¥§¥¯¥È¤È¤½¤ì¤Ë´Ø¤¹¤ë API @@ -3084,7 +3084,7 @@ mcoding__load_from_database () /*=*/ /***en @name Variables: Symbols representing a coding system */ -/***ja @name ÊÑ¿ô: ÄêµÁºÑ¤ß¥³¡¼¥É·Ï¤ò»ØÄꤹ¤ë¤¿¤á¤Î¥·¥ó¥Ü¥ë */ +/***oldja @name ÊÑ¿ô: ÄêµÁºÑ¤ß¥³¡¼¥É·Ï¤ò»ØÄꤹ¤ë¤¿¤á¤Î¥·¥ó¥Ü¥ë */ /*** @{ */ /*=*/ @@ -3094,7 +3094,7 @@ mcoding__load_from_database () The symbol #Mcoding_us_ascii has name "us-ascii" and represents a coding system for the CES US-ASCII. */ -/***ja +/***oldja @brief MIME charset "US-ASCII" ¤ËÂбþ¤¹¤ë¥³¡¼¥É·Ï¤Î¥·¥ó¥Ü¥ë ¥·¥ó¥Ü¥ë @c Mcoding_us_ascii ¤Ï "us-ascii" ¤È¤¤¤¦Ì¾Á°¤ò»ý¤Á¡¢ @@ -3110,7 +3110,7 @@ MSymbol Mcoding_us_ascii; The symbol #Mcoding_iso_8859_1 has name "iso-8859-1" and represents a coding system for the CES ISO-8859-1. */ -/***ja +/***oldja @brief MIME charset "ISO-8859-1" ¤ËÂбþ¤¹¤ë¥³¡¼¥É·Ï¤Î¥·¥ó¥Ü¥ë ¥·¥ó¥Ü¥ë @c Mcoding_iso_8859_1 ¤Ï "iso-8859-1" ¤È¤¤¤¦Ì¾Á° @@ -3126,7 +3126,7 @@ MSymbol Mcoding_iso_8859_1; The symbol #Mcoding_utf_8 has name "utf-8" and represents a coding system for the CES UTF-8. */ -/***ja +/***oldja @brief RFC 2279 ¤Î "UTF-8" ¤ËÂбþ¤¹¤ë¥³¡¼¥É·Ï¤Î¥·¥ó¥Ü¥ë¡ÊUnicode ÍÑ¡Ë ¥·¥ó¥Ü¥ë @c Mcoding_utf_8 ¤Ï "utf-8" ¤È¤¤¤¦Ì¾Á°¤ò»ý¤Á¡¢ @@ -3147,7 +3147,7 @@ MSymbol Mcoding_utf_8; limited to the Unicode characters. It can encode all characters supported by the m17n library. */ -/***ja +/***oldja @brief RFC 2279 ¤Î "UTF-8" ¤ËÂбþ¤¹¤ë¥³¡¼¥É·Ï¤Î¥·¥ó¥Ü¥ë¡ÊÁ´Ê¸»úÍÑ¡Ë ¥·¥ó¥Ü¥ë @c Mcoding_utf_8_full ¤Ï "utf-8-full" ¤È¤¤¤¦Ì¾Á° @@ -3163,7 +3163,7 @@ MSymbol Mcoding_utf_8_full; The symbol #Mcoding_utf_16 has name "utf-16" and represents a coding system for the CES UTF-16 (RFC 2279). */ -/***ja +/***oldja @brief RFC 2781 ¤Î "UTF-16" ¤ËÂбþ¤¹¤ë¥³¡¼¥É·Ï¤Î¥·¥ó¥Ü¥ë ¥·¥ó¥Ü¥ë @c Mcoding_utf_16 ¤Ï "utf-16" ¤È¤¤¤¦Ì¾Á°¤ò»ý¤Á¡¢ @@ -3297,7 +3297,7 @@ MSymbol Mfull_support; @name Variables: etc Remaining variables. */ -/***ja @name ÊÑ¿ô: ¤½¤Î¾ */ +/***oldja @name ÊÑ¿ô: ¤½¤Î¾ */ /*** @{ */ /*=*/ /***en @@ -3317,7 +3317,7 @@ MSymbol Mmaybe; symbol @c Mcoding. The name of @c Mcoding is "coding". */ -/***ja +/***oldja @brief ¥·¥ó¥Ü¥ë @c Mcoding ¥Ç¥³¡¼¥É¤µ¤ì¤¿ M-text ¤Ï¡¢¥­¡¼¤¬ @c Mcoding ¤Ç¤¢¤ë¤è¤¦¤Ê¥Æ¥­¥¹¥È¥× @@ -3529,7 +3529,7 @@ MSymbol Mcoding; #Mnil and assigns an error code to the external variable @c merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É·Ï¤ÎÄêµÁ ´Ø¿ô mconv_define_coding () ¤Ï¡¢¿·¤·¤¤¥³¡¼¥É·Ï¤òÄêµÁ¤·¡¢¤½¤ì¤ò @@ -3869,7 +3869,7 @@ mconv_list_codings (MSymbol **symbols) the created code converter. Otherwise it returns @c NULL and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief ¥Ð¥Ã¥Õ¥¡¤Ë·ë¤ÓÉÕ¤±¤é¤ì¤¿¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤òºî¤ë ´Ø¿ô mconv_buffer_converter () ¤Ï¡¢¥³¡¼¥É·Ï $CODING ÍѤΥ³¡¼¥É¥³¥ó @@ -3947,7 +3947,7 @@ mconv_buffer_converter (MSymbol name, unsigned char *buf, int n) and assigns an error code to the external variable @c merror_code. */ -/***ja +/***oldja @brief ¥¹¥È¥ê¡¼¥à¤Ë·ë¤ÓÉÕ¤±¤é¤ì¤¿¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤òºî¤ë ´Ø¿ô mconv_stream_converter () ¤Ï¡¢¥³¡¼¥É·Ï $CODING ÍѤΥ³¡¼¥É¥³¥ó @@ -4030,7 +4030,7 @@ mconv_stream_converter (MSymbol name, FILE *fp) mconv_reset_converter () returns the result of that function applied to $CONVERTER. Otherwise it returns 0. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤ò¥ê¥»¥Ã¥È¤¹¤ë ´Ø¿ô mconv_reset_converter () ¤Ï¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ $CONVERTER ¤ò½é´ü @@ -4063,7 +4063,7 @@ mconv_reset_converter (MConverter *converter) The mconv_free_converter () function frees the code converter $CONVERTER. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤ò²òÊü¤¹¤ë ´Ø¿ô mconv_free_converter () ¤Ï¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ $CONVERTER ¤ò²òÊü @@ -4093,7 +4093,7 @@ mconv_free_converter (MConverter *converter) @return This function always returns $CONVERTER. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤Ë¥Ð¥Ã¥Õ¥¡Îΰè¤ò·ë¤ÓÉÕ¤±¤ë ´Ø¿ô mconv_rebind_buffer () ¤Ï¡¢$BUF ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤¿Â礭¤µ $N ¥Ð @@ -4134,7 +4134,7 @@ mconv_rebind_buffer (MConverter *converter, unsigned char *buf, int n) @return This function always returns $CONVERTER. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤Ë¥¹¥È¥ê¡¼¥à¤ò·ë¤ÓÉÕ¤±¤ë ´Ø¿ô mconv_rebind_stream () ¤Ï¡¢¥¹¥È¥ê¡¼¥à $FP ¤ò¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ @@ -4182,7 +4182,7 @@ mconv_rebind_stream (MConverter *converter, FILE *fp) $MT. Otherwise it returns @c NULL and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief ¥Ð¥¤¥ÈÎó¤ò M-text ¤Ë¥Ç¥³¡¼¥É¤¹¤ë ´Ø¿ô mconv_decode () ¤Ï¡¢¥Ð¥¤¥ÈÎó¤ò¥Ç¥³¡¼¥É¤·¤Æ¤½¤Î·ë²Ì¤ò M-text @@ -4321,7 +4321,7 @@ mconv_decode (MConverter *converter, MText *mt) the resulting M-text. Otherwise it returns NULL and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É·Ï¤Ë´ð¤Å¤¤¤Æ¥Ð¥Ã¥Õ¥¡Îΰè¤ò¥Ç¥³¡¼¥É¤¹¤ë ´Ø¿ô mconv_decode_buffer () ¤Ï¡¢$BUF ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤¿ $N ¥Ð¥¤¥È¤Î @@ -4372,7 +4372,7 @@ mconv_decode_buffer (MSymbol name, unsigned char *buf, int n) the resulting M-text. Otherwise it returns NULL and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É·Ï¤Ë´ð¤Å¤¤¤Æ¥¹¥È¥ê¡¼¥àÆþÎϤò¥Ç¥³¡¼¥É¤¹¤ë ´Ø¿ô mconv_decode_stream () ¤Ï¡¢¥¹¥È¥ê¡¼¥à $FP ¤«¤éÆɤ߹þ¤Þ¤ì¤ë¥Ð @@ -4422,7 +4422,7 @@ mconv_decode_stream (MSymbol name, FILE *fp) number of written bytes. Otherwise it returns -1 and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief M-text ¤ò¥Ð¥¤¥ÈÎó¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ë ´Ø¿ô mconv_encode () ¤Ï¡¢M-text $MT ¤ò¥¨¥ó¥³¡¼¥É¤·¤Æ¡¢¥³¡¼¥É¥³¥ó¥Ð¡¼ @@ -4463,7 +4463,7 @@ mconv_encode (MConverter *converter, MText *mt) number of written bytes. Otherwise it returns -1 and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief M-text ¤Î°ìÉô¤ò¤ò¥Ð¥¤¥ÈÎó¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ë ´Ø¿ô mconv_encode_range () ¤Ï¡¢M-text $MT ¤Î $FROM ¡Ê´Þ¤à¡Ë¤«¤é @@ -4563,7 +4563,7 @@ mconv_encode_range (MConverter *converter, MText *mt, int from, int to) the number of written bytes. Otherwise it returns -1 and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief M-text ¤ò¥¨¥ó¥³¡¼¥É¤·¤Æ¥Ð¥Ã¥Õ¥¡Îΰè¤Ë½ñ¤­¹þ¤à ´Ø¿ô mconv_encode_buffer () ¤ÏM-text $MT ¤ò¥³¡¼¥É·Ï $NAME ¤Ë´ð¤Å¤¤ @@ -4611,7 +4611,7 @@ mconv_encode_buffer (MSymbol name, MText *mt, unsigned char *buf, int n) the number of written bytes. Otherwise it returns -1 and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief M-text ¤ò¥¨¥ó¥³¡¼¥É¤·¤Æ¥¹¥È¥ê¡¼¥à¤Ë½ñ¤­¹þ¤à ´Ø¿ô mconv_encode_stream () ¤ÏM-text $MT ¤ò¥³¡¼¥É·Ï $NAME ¤Ë´ð¤Å¤¤ @@ -4661,7 +4661,7 @@ mconv_encode_stream (MSymbol name, MText *mt, FILE *fp) error is detected, it returns @c EOF and assigns an error code to #merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿·Ðͳ¤Ç1ʸ»úÆÉ¤à ´Ø¿ô mconv_getc () ¤Ï¡¢¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ $CONVERTER ¤Ë¸½ºß·ë¤ÓÉÕ¤± @@ -4715,7 +4715,7 @@ mconv_getc (MConverter *converter) Otherwise it returns @c EOF and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤Ë1ʸ»úÌ᤹ ´Ø¿ô mconv_ungetc () ¤Ï¡¢¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ $CONVERTER ¤Ëʸ»ú $C ¤ò @@ -4764,7 +4764,7 @@ mconv_ungetc (MConverter *converter, int c) If an error is detected, it returns @c EOF and assigns an error code to the external variable #merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤ò·Ðͳ¤Ç1ʸ»ú½ñ¤¯ ´Ø¿ô mconv_putc () ¤Ï¡¢¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ $CONVERTER ¤Ë¸½ºß·ë¤ÓÉÕ¤± @@ -4817,7 +4817,7 @@ mconv_putc (MConverter *converter, int c) detected, it returns @c NULL and assigns an error code to @c merror_code. */ -/***ja +/***oldja @brief ¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿¤ò»È¤Ã¤Æ1¹ÔÆÉ¤à ´Ø¿ô mconv_gets () ¤Ï¡¢¥³¡¼¥É¥³¥ó¥Ð¡¼¥¿ $CONVERTER ¤Ë¸½ºß·ë¤ÓÉÕ¤±