charset.c (195941) | charset.c (221715) |
---|---|
1/* | 1/* |
2 * Copyright (C) 1984-2009 Mark Nudelman | 2 * Copyright (C) 1984-2011 Mark Nudelman |
3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information about less, or for information on how to 8 * contact the author, see the README file. 9 */ 10 --- 379 unchanged lines hidden (view full) --- 390 391/* 392 * Is a given character a "binary" character? 393 */ 394 public int 395binary_char(c) 396 LWCHAR c; 397{ | 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information about less, or for information on how to 8 * contact the author, see the README file. 9 */ 10 --- 379 unchanged lines hidden (view full) --- 390 391/* 392 * Is a given character a "binary" character? 393 */ 394 public int 395binary_char(c) 396 LWCHAR c; 397{ |
398 if (utf_mode) | 398 if (utf_mode) |
399 return (is_ubin_char(c)); 400 c &= 0377; 401 return (chardef[c] & IS_BINARY_CHAR); 402} 403 404/* 405 * Is a given character a "control" character? 406 */ --- 405 unchanged lines hidden (view full) --- 812 * <http://www.unicode.org/Public/5.0.0/ucd/UnicodeData-5.0.0d7.txt> 813 * dated 2005-11-30T00:58:48Z 814 */ 815static struct wchar_range ubin_table[] = { 816 { 0x0000, 0x0007} /* Cc */, 817 { 0x000B, 0x000C} /* Cc */, 818 { 0x000E, 0x001A} /* Cc */, 819 { 0x001C, 0x001F} /* Cc */, | 399 return (is_ubin_char(c)); 400 c &= 0377; 401 return (chardef[c] & IS_BINARY_CHAR); 402} 403 404/* 405 * Is a given character a "control" character? 406 */ --- 405 unchanged lines hidden (view full) --- 812 * <http://www.unicode.org/Public/5.0.0/ucd/UnicodeData-5.0.0d7.txt> 813 * dated 2005-11-30T00:58:48Z 814 */ 815static struct wchar_range ubin_table[] = { 816 { 0x0000, 0x0007} /* Cc */, 817 { 0x000B, 0x000C} /* Cc */, 818 { 0x000E, 0x001A} /* Cc */, 819 { 0x001C, 0x001F} /* Cc */, |
820 { 0x007F, 0x009F} /* Cc */, | 820 { 0x007F, 0x009F} /* Cc */, |
821#if 0 822 { 0x00AD, 0x00AD} /* Cf */, 823#endif 824 { 0x0370, 0x0373} /* Cn */, { 0x0376, 0x0379} /* Cn */, 825 { 0x037F, 0x0383} /* Cn */, { 0x038B, 0x038B} /* Cn */, 826 { 0x038D, 0x038D} /* Cn */, { 0x03A2, 0x03A2} /* Cn */, 827 { 0x03CF, 0x03CF} /* Cn */, { 0x0487, 0x0487} /* Cn */, 828 { 0x0514, 0x0530} /* Cn */, { 0x0557, 0x0558} /* Cn */, --- 345 unchanged lines hidden --- | 821#if 0 822 { 0x00AD, 0x00AD} /* Cf */, 823#endif 824 { 0x0370, 0x0373} /* Cn */, { 0x0376, 0x0379} /* Cn */, 825 { 0x037F, 0x0383} /* Cn */, { 0x038B, 0x038B} /* Cn */, 826 { 0x038D, 0x038D} /* Cn */, { 0x03A2, 0x03A2} /* Cn */, 827 { 0x03CF, 0x03CF} /* Cn */, { 0x0487, 0x0487} /* Cn */, 828 { 0x0514, 0x0530} /* Cn */, { 0x0557, 0x0558} /* Cn */, --- 345 unchanged lines hidden --- |