linux/fs/nls/nls_euc-jp.c
<<
on> 12./spa=v3 12./formv3 12.a on> 12 href="../linux+v3.ptio/fs/nls/nls_euc-jp.c">on> 12.img src="../.static/gfx/right.png" alt=">>">on./spa=v3on.spa= class="lxr_search">on> on> 12.input typio1hidden" namio1navtarget" n> 2io1">on> 12.input typio1text" namio1search" ido1search">on> 12.butt otypio1submit">Search 12 onclick="return ajax_prefs();">on> 12Prefs3 12./a>on./spa=v3> 12 2./divv3> 12 2.form aclu2=="ajax+*" method="post" onsubmit="return false;">on.input typio1hidden" namio1ajax_lookup" ido1ajax_lookup" n> 2io1">o> 12 2./formv3o> 12 2.div class="headingbott m"> 12 12 12 2.div ido1search_results" class="search_results"3 1v3> 12 2./divv3 .div ido1content">3 .div ido1file_contents"v
2 21./a>.spa= class="comment">/*./spa=v32 22./a>.spa= class="comment"> * linux/fs/nls/nls_euc-jp.c./spa=v32 23./a>.spa= class="comment"> *./spa=v32 24./a>.spa= class="comment"> * Added `OSF/JVC Recommended Code Set Convers
	 oSpecificalu2=./spa=v32 25./a>.spa= class="comment"> * between Japa=ese EUC and Shift-JIS' support: <hirofumi@mail.parknet.co.jp>./spa=v32 26./a>.spa= class="comment"> * (http://www.opengroup.or.jp/jvc/cde/sjis-euc-e.html)./spa=v32 27./a>.spa= class="comment"> */./spa=v32 28./a>o2 29./a>#include <linux/module.h./a>>o2 ion a>#include <linux/kernel.h./a>>o2 11n a>#include <linux/string.h./a>>o2 12n a>#include <linux/nls.h./a>>o2 13n a>#include <linux/errno.h./a>>o2 14./a>o2 15./a>static struct2.a href="+code=nls_table" class="sref">nls_table./a> *.a href="+code=p_nls" class="sref">p_nls./a>;o2 16./a>o2 17./a>#define2.a href="+code=IS_SJIS_LOW_BYTE" class="sref">IS_SJIS_LOW_BYTE./a>(.a href="+code=l" class="sref">l./a>)
12 2((0x40 <= (.a href="+code=l" class="sref">l./a>)) &&2((.a href="+code=l" class="sref">l./a>)
<= 0xFC) &&2((.a href="+code=l" class="sref">l./a>)
!= 0x7F))o2 18./a>.spa= class="comment">/* JIS X 0208 (include NEC spesial characlers) */./spa=v32 19./a>#define2.a href="+code=IS_SJIS_JISX0208" class="sref">IS_SJIS_JISX0208./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1((((0x81 <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0x9F))>
12 2\32 2on a>                                 ||2((0xE0 <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0xEA)))>
1\32 21n a>                                 &&2.a href="+code=IS_SJIS_LOW_BYTE" class="sref">IS_SJIS_LOW_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 22./a>#define2.a href="+code=IS_SJIS_JISX0201KANA" class="sref">IS_SJIS_JISX0201KANA./a>(.a href="+code=c" class="sref">c./a>)
((0xA1 <= (.a href="+code=c" class="sref">c./a>)) &&2((.a href="+code=c" class="sref">c./a>)
<= 0xDF))o2 23./a>#define2.a href="+code=IS_SJIS_UDC_LOW" class="sref">IS_SJIS_UDC_LOW./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1 (((0xF0 <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0xF4))>
12 21\32 24n a>                                 &&2.a href="+code=IS_SJIS_LOW_BYTE" class="sref">IS_SJIS_LOW_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 25./a>#define2.a href="+code=IS_SJIS_UDC_HI" class="sref">IS_SJIS_UDC_HI./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1  (((0xF5 <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0xF9))>
12 21\32 26n a>                                 &&2.a href="+code=IS_SJIS_LOW_BYTE" class="sref">IS_SJIS_LOW_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 27./a>#define2.a href="+code=IS_SJIS_IBM" class="sref">IS_SJIS_IBM./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1  1  (((0xFA <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0xFC))>
12 21\32 28n a>                                 &&2.a href="+code=IS_SJIS_LOW_BYTE" class="sref">IS_SJIS_LOW_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 29./a>#define2.a href="+code=IS_SJIS_NECIBM" class="sref">IS_SJIS_NECIBM./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1  (((0xED <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0xEE))>
12 21\32 3on a>                                 &&2.a href="+code=IS_SJIS_LOW_BYTE" class="sref">IS_SJIS_LOW_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 31./a>#define2.a href="+code=MAP_SJIS2EUC" class="sref">MAP_SJIS2EUC./a>(.a href="+code=sjis_hi" class="sref">sjis_hi./a>,2.a href="+code=sjis_lo" class="sref">sjis_lo./a>,2.a href="+code=sjis_p" class="sref">sjis_p./a>,2.a href="+code=euc_hi" class="sref">euc_hi./a>,2.a href="+code=euc_lo" class="sref">euc_lo./a>,2.a href="+code=euc_p" class="sref">euc_p./a>)
{         \32 32n a>        if2((.a href="+code=sjis_lo" class="sref">sjis_lo./a>)
>= 0x9F)
{                                                \32 33n a>                (.a href="+code=euc_hi" class="sref">euc_hi./a>) = (.a href="+code=sjis_hi" class="sref">sjis_hi./a>) * 2 - (((.a href="+code=sjis_p" class="sref">sjis_p./a>) * 2 - (.a href="+code=euc_p" class="sref">euc_p./a>)) - 1);      \32 34n a>                (.a href="+code=euc_lo" class="sref">euc_lo./a>) = (.a href="+code=sjis_lo" class="sref">sjis_lo./a>)
+ 2;                                       \32 35n a>        } else
{                                                                \32 36n a>                (.a href="+code=euc_hi" class="sref">euc_hi./a>) = (.a href="+code=sjis_hi" class="sref">sjis_hi./a>) * 2 - ((.a href="+code=sjis_p" class="sref">sjis_p./a>) * 2 - (.a href="+code=euc_p" class="sref">euc_p./a>));            \32 37n a>                (.a href="+code=euc_lo" class="sref">euc_lo./a>) = (.a href="+code=sjis_lo" class="sref">sjis_lo./a>)
+ ((.a href="+code=sjis_lo" class="sref">sjis_lo./a>)
>= 0x7F ? 0x60 : 0x61);       \32 38n a>        }                                                                       \32 39./a>} while(0)o2 40./a>o2 41./a>#define2.a href="+code=SS2" class="sref">SS2n a>             (0x8E)          .spa= class="comment">/* Single Shift 2 */./spa=v32 42./a>#define2.a href="+code=SS3" class="sref">SS3n a>             (0x8F)          .spa= class="comment">/* Single Shift 3 */./spa=v32 43./a>#define2.a href="+code=IS_EUC_BYTE" class="sref">IS_EUC_BYTE./a>(.a href="+code=c" class="sref">c./a>)
         ((0xA1 <= (.a href="+code=c" class="sref">c./a>)) &&2((.a href="+code=c" class="sref">c./a>)
<= 0xFE))o2 44./a>#define2.a href="+code=IS_EUC_JISX0208" class="sref">IS_EUC_JISX0208./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1 (.a href="+code=IS_EUC_BYTE" class="sref">IS_EUC_BYTE./a>(.a href="+code=h" class="sref">h./a>)
&&2.a href="+code=IS_EUC_BYTE" class="sref">IS_EUC_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 45./a>#define2.a href="+code=IS_EUC_JISX0201KANA" class="sref">IS_EUC_JISX0201KANA./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1  1  (((.a href="+code=h" class="sref">h./a>)
==2.a href="+code=SS2" class="sref">SS2n a>) &&2(0xA1 <= (.a href="+code=l" class="sref">l./a>)
&&2(.a href="+code=l" class="sref">l./a>)
<= 0xDF))o2 46./a>#define2.a href="+code=IS_EUC_UDC_LOW" class="sref">IS_EUC_UDC_LOW./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1  (((0xF5 <= (.a href="+code=h" class="sref">h./a>)) &&2((.a href="+code=h" class="sref">h./a>)
<= 0xFE))>
12 21\32 47n a>                                 &&2.a href="+code=IS_EUC_BYTE" class="sref">IS_EUC_BYTE./a>(.a href="+code=l" class="sref">l./a>))o2 48./a>#define2.a href="+code=IS_EUC_UDC_HI" class="sref">IS_EUC_UDC_HI./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
1  1.a href="+code=IS_EUC_UDC_LOW" class="sref">IS_EUC_UDC_LOW./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
.spa= class="comment">/* G3 block */./spa=v32 49./a>#define2.a href="+code=MAP_EUC2SJIS" class="sref">MAP_EUC2SJIS./a>(.a href="+code=euc_hi" class="sref">euc_hi./a>,2.a href="+code=euc_lo" class="sref">euc_lo./a>,2.a href="+code=euc_p" class="sref">euc_p./a>,2.a href="+code=sjis_hi" class="sref">sjis_hi./a>,2.a href="+code=sjis_lo" class="sref">sjis_lo./a>,2.a href="+code=sjis_p" class="sref">sjis_p./a>)
{         \32 5on a>        if2((.a href="+code=euc_hi" class="sref">euc_hi./a>) &21)
{                                                     \32 51n a>                (.a href="+code=sjis_hi" class="sref">sjis_hi./a>) = (.a href="+code=euc_hi" class="sref">euc_hi./a>) / 2 + ((.a href="+code=sjis_p" class="sref">sjis_p./a>)
- (.a href="+code=euc_p" class="sref">euc_p./a>) / 2);            \32 52n a>                (.a href="+code=sjis_lo" class="sref">sjis_lo./a>)
= (.a href="+code=euc_lo" class="sref">euc_lo./a>) - ((.a href="+code=euc_lo" class="sref">euc_lo./a>) >= 0xE0 ? 0x60 : 0x61);        \32 53n a>        } else
{                                                                \32 54n a>                (.a href="+code=sjis_hi" class="sref">sjis_hi./a>) = (.a href="+code=euc_hi" class="sref">euc_hi./a>) / 2 + (((.a href="+code=sjis_p" class="sref">sjis_p./a>)
- (.a href="+code=euc_p" class="sref">euc_p./a>) / 2) - 1);      \32 55n a>                (.a href="+code=sjis_lo" class="sref">sjis_lo./a>)
= (.a href="+code=euc_lo" class="sref">euc_lo./a>) - 2;                                       \32 56n a>        }                                                                       \32 57./a>} while(0)o2 58./a>o2 59./a>.spa= class="comment">/* SJIS IBM extended characlers to EUC map */./spa=v32 6on a>static const unsigned char2.a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[][2]
= {32 61n a>        {0xF3, 0xF3}, {0xF3, 0xF4}, {0xF3, 0xF5}, {0xF3, 0xF6}, {0xF3, 0xF7},32 62n a>        {0xF3, 0xF8}, {0xF3, 0xF9}, {0xF3, 0xFA}, {0xF3, 0xFB}, {0xF3, 0xFC},32 63n a>        {0xF3, 0xFD}, {0xF3, 0xFE}, {0xF4, 0xA1}, {0xF4, 0xA2}, {0xF4, 0xA3},32 64n a>        {0xF4, 0xA4}, {0xF4, 0xA5}, {0xF4, 0xA6}, {0xF4, 0xA7}, {0xF4, 0xA8},32 65n a>        {0xA2, 0xCC}, {0xA2, 0xC3}, {0xF4, 0xA9}, {0xF4, 0xAA}, {0xF4, 0xAB},32 66n a>        {0xF4, 0xAC}, {0xF4, 0xAD}, {0xA2, 0xE8}, {0xD4, 0xE3}, {0xDC, 0xDF},32 67n a>        {0xE4, 0xE9}, {0xE3, 0xF8}, {0xD9, 0xA1}, {0xB1, 0xBB}, {0xF4, 0xAE},32 68n a>        {0xC2, 0xAD}, {0xC3, 0xFC}, {0xE4, 0xD0}, {0xC2, 0xBF}, {0xBC, 0xF4},32 69n a>        {0xB0, 0xA9}, {0xB0, 0xC8}, {0xF4, 0xAF}, {0xB0, 0xD2}, {0xB0, 0xD4},32 70n a>        {0xB0, 0xE3}, {0xB0, 0xEE}, {0xB1, 0xA7}, {0xB1, 0xA3}, {0xB1, 0xAC},32 71n a>        {0xB1, 0xA9}, {0xB1, 0xBE}, {0xB1, 0xDF}, {0xB1, 0xD8}, {0xB1, 0xC8},32 72n a>        {0xB1, 0xD7}, {0xB1, 0xE3}, {0xB1, 0xF4}, {0xB1, 0xE1}, {0xB2, 0xA3},32 73n a>        {0xF4, 0xB0}, {0xB2, 0xBB}, {0xB2, 0xE6}, {0x00, 0x00}, {0xB2, 0xED},32 74n a>        {0xB2, 0xF5}, {0xB2, 0xFC}, {0xF4, 0xB1}, {0xB3, 0xB5}, {0xB3, 0xD8},32 75n a>        {0xB3, 0xDB}, {0xB3, 0xE5}, {0xB3, 0xEE}, {0xB3, 0xFB}, {0xF4, 0xB2},32 76n a>        {0xF4, 0xB3}, {0xB4, 0xC0}, {0xB4, 0xC7}, {0xB4, 0xD0}, {0xB4, 0xDE},32 77n a>        {0xF4, 0xB4}, {0xB5, 0xAA}, {0xF4, 0xB5}, {0xB5, 0xAF}, {0xB5, 0xC4},32 78n a>        {0xB5, 0xE8}, {0xF4, 0xB6}, {0xB7, 0xC2}, {0xB7, 0xE4}, {0xB7, 0xE8},32 79n a>        {0xB7, 0xE7}, {0xF4, 0xB7}, {0xF4, 0xB8}, {0xF4, 0xB9}, {0xB8, 0xCE},32 80n a>        {0xB8, 0xE1}, {0xB8, 0xF5}, {0xB8, 0xF7}, {0xB8, 0xF8}, {0xB8, 0xFC},32 81n a>        {0xB9, 0xAF}, {0xB9, 0xB7}, {0xBA, 0xBE}, {0xBA, 0xDB}, {0xCD, 0xAA},32 82n a>        {0xBA, 0xE1}, {0xF4, 0xBA}, {0xBA, 0xEB}, {0xBB, 0xB3}, {0xBB, 0xB8},32 83n a>        {0xF4, 0xBB}, {0xBB, 0xCA}, {0xF4, 0xBC}, {0xF4, 0xBD}, {0xBB, 0xD0},32 84n a>        {0xBB, 0xDE}, {0xBB, 0xF4}, {0xBB, 0xF5}, {0xBB, 0xF9}, {0xBC, 0xE4},32 85n a>        {0xBC, 0xED}, {0xBC, 0xFE}, {0xF4, 0xBE}, {0xBD, 0xC2}, {0xBD, 0xE7},32 86n a>        {0xF4, 0xBF}, {0xBD, 0xF0}, {0xBE, 0xB0}, {0xBE, 0xAC}, {0xF4, 0xC0},32 87n a>        {0xBE, 0xB3}, {0xBE, 0xBD}, {0xBE, 0xCD}, {0xBE, 0xC9}, {0xBE, 0xE4},32 88n a>        {0xBF, 0xA8}, {0xBF, 0xC9}, {0xC0, 0xC4}, {0xC0, 0xE4}, {0xC0, 0xF4},32 89n a>        {0xC1, 0xA6}, {0xF4, 0xC1}, {0xC1, 0xF5}, {0xC1, 0xFC}, {0xF4, 0xC2},32 90n a>        {0xC1, 0xF8}, {0xC2, 0xAB}, {0xC2, 0xA1}, {0xC2, 0xA5}, {0xF4, 0xC3},32 91n a>        {0xC2, 0xB8}, {0xC2, 0xBA}, {0xF4, 0xC4}, {0xC2, 0xC4}, {0xC2, 0xD2},32 92n a>        {0xC2, 0xD7}, {0xC2, 0xDB}, {0xC2, 0xDE}, {0xC2, 0xED}, {0xC2, 0xF0},32 93n a>        {0xF4, 0xC5}, {0xC3, 0xA1}, {0xC3, 0xB5}, {0xC3, 0xC9}, {0xC3, 0xB9},32 94n a>        {0xF4, 0xC6}, {0xC3, 0xD8}, {0xC3, 0xFE}, {0xF4, 0xC7}, {0xC4, 0xCC},32 95n a>        {0xF4, 0xC8}, {0xC4, 0xD9}, {0xC4, 0xEA}, {0xC4, 0xFD}, {0xF4, 0xC9},32 96n a>        {0xC5, 0xA7}, {0xC5, 0xB5}, {0xC5, 0xB6}, {0xF4, 0xCA}, {0xC5, 0xD5},32 97n a>        {0xC6, 0xB8}, {0xC6, 0xD7}, {0xC6, 0xE0}, {0xC6, 0xEA}, {0xC6, 0xE3},32 98n a>        {0xC7, 0xA1}, {0xC7, 0xAB}, {0xC7, 0xC7}, {0xC7, 0xC3}, {0xC7, 0xCB},32 99n a>        {0xC7, 0xCF}, {0xC7, 0xD9}, {0xF4, 0xCB}, {0xF4, 0xCC}, {0xC7, 0xE6},o2100n a>        {0xC7, 0xEE}, {0xC7, 0xFC}, {0xC7, 0xEB}, {0xC7, 0xF0}, {0xC8, 0xB1},o2101n a>        {0xC8, 0xE5}, {0xC8, 0xF8}, {0xC9, 0xA6}, {0xC9, 0xAB}, {0xC9, 0xAD},32102n a>        {0xF4, 0xCD}, {0xC9, 0xCA}, {0xC9, 0xD3}, {0xC9, 0xE9}, {0xC9, 0xE3},32103n a>        {0xC9, 0xFC}, {0xC9, 0xF4}, {0xC9, 0xF5}, {0xF4, 0xCE}, {0xCA, 0xB3},32104n a>        {0xCA, 0xBD}, {0xCA, 0xEF}, {0xCA, 0xF1}, {0xCB, 0xAE}, {0xF4, 0xCF},32105n a>        {0xCB, 0xCA}, {0xCB, 0xE6}, {0xCB, 0xEA}, {0xCB, 0xF0}, {0xCB, 0xF4},32106n a>        {0xCB, 0xEE}, {0xCC, 0xA5}, {0xCB, 0xF9}, {0xCC, 0xAB}, {0xCC, 0xAE},32107n a>        {0xCC, 0xAD}, {0xCC, 0xB2}, {0xCC, 0xC2}, {0xCC, 0xD0}, {0xCC, 0xD9},32108n a>        {0xF4, 0xD0}, {0xCD, 0xBB}, {0xF4, 0xD1}, {0xCE, 0xBB}, {0xF4, 0xD2},32109n a>        {0xCE, 0xBA}, {0xCE, 0xC3}, {0xF4, 0xD3}, {0xCE, 0xF2}, {0xB3, 0xDD},32110n a>        {0xCF, 0xD5}, {0xCF, 0xE2}, {0xCF, 0xE9}, {0xCF, 0xED}, {0xF4, 0xD4},32111n a>        {0xF4, 0xD5}, {0xF4, 0xD6}, {0x00, 0x00}, {0xF4, 0xD7}, {0xD0, 0xE5},32112n a>        {0xF4, 0xD8}, {0xD0, 0xE9}, {0xD1, 0xE8}, {0xF4, 0xD9}, {0xF4, 0xDA},32113n a>        {0xD1, 0xEC}, {0xD2, 0xBB}, {0xF4, 0xDB}, {0xD3, 0xE1}, {0xD3, 0xE8},32114n a>        {0xD4, 0xA7}, {0xF4, 0xDC}, {0xF4, 0xDD}, {0xD4, 0xD4}, {0xD4, 0xF2},32115n a>        {0xD5, 0xAE}, {0xF4, 0xDE}, {0xD7, 0xDE}, {0xF4, 0xDF}, {0xD8, 0xA2},32116n a>        {0xD8, 0xB7}, {0xD8, 0xC1}, {0xD8, 0xD1}, {0xD8, 0xF4}, {0xD9, 0xC6},o2117n a>        {0xD9, 0xC8}, {0xD9, 0xD1}, {0xF4, 0xE0}, {0xF4, 0xE1}, {0xF4, 0xE2},32118n a>        {0xF4, 0xE3}, {0xF4, 0xE4}, {0xDC, 0xD3}, {0xDD, 0xC8}, {0xDD, 0xD4},32119n a>        {0xDD, 0xEA}, {0xDD, 0xFA}, {0xDE, 0xA4}, {0xDE, 0xB0}, {0xF4, 0xE5},32120n a>        {0xDE, 0xB5}, {0xDE, 0xCB}, {0xF4, 0xE6}, {0xDF, 0xB9}, {0xF4, 0xE7},32121n a>        {0xDF, 0xC3}, {0xF4, 0xE8}, {0xF4, 0xE9}, {0xE0, 0xD9}, {0xF4, 0xEA},32122n a>        {0xF4, 0xEB}, {0xE1, 0xE2}, {0xF4, 0xEC}, {0xF4, 0xED}, {0xF4, 0xEE},32123n a>        {0xE2, 0xC7}, {0xE3, 0xA8}, {0xE3, 0xA6}, {0xE3, 0xA9}, {0xE3, 0xAF},32124n a>        {0xE3, 0xB0}, {0xE3, 0xAA}, {0xE3, 0xAB}, {0xE3, 0xBC}, {0xE3, 0xC1},o2125n a>        {0xE3, 0xBF}, {0xE3, 0xD5}, {0xE3, 0xD8}, {0xE3, 0xD6}, {0xE3, 0xDF},32126n a>        {0xE3, 0xE3}, {0xE3, 0xE1}, {0xE3, 0xD4}, {0xE3, 0xE9}, {0xE4, 0xA6},32127n a>        {0xE3, 0xF1}, {0xE3, 0xF2}, {0xE4, 0xCB}, {0xE4, 0xC1}, {0xE4, 0xC3},32128n a>        {0xE4, 0xBE}, {0xF4, 0xEF}, {0xE4, 0xC0}, {0xE4, 0xC7}, {0xE4, 0xBF},32129n a>        {0xE4, 0xE0}, {0xE4, 0xDE}, {0xE4, 0xD1}, {0xF4, 0xF0}, {0xE4, 0xDC},32130n a>        {0xE4, 0xD2}, {0xE4, 0xDB}, {0xE4, 0xD4}, {0xE4, 0xFA}, {0xE4, 0xEF},32131n a>        {0xE5, 0xB3}, {0xE5, 0xBF}, {0xE5, 0xC9}, {0xE5, 0xD0}, {0xE5, 0xE2},32132n a>        {0xE5, 0xEA}, {0xE5, 0xEB}, {0xF4, 0xF1}, {0xF4, 0xF2}, {0xF4, 0xF3},32133n a>        {0xE6, 0xE8}, {0xE6, 0xEF}, {0xE7, 0xAC}, {0xF4, 0xF4}, {0xE7, 0xAE},32134n a>        {0xF4, 0xF5}, {0xE7, 0xB1}, {0xF4, 0xF6}, {0xE7, 0xB2}, {0xE8, 0xB1},o2135n a>        {0xE8, 0xB6}, {0xF4, 0xF7}, {0xF4, 0xF8}, {0xE8, 0xDD}, {0xF4, 0xF9},32136n a>        {0xF4, 0xFA}, {0xE9, 0xD1}, {0xF4, 0xFB}, {0xE9, 0xED}, {0xEA, 0xCD},32137n a>        {0xF4, 0xFC}, {0xEA, 0xDB}, {0xEA, 0xE6}, {0xEA, 0xEA}, {0xEB, 0xA5},32138n a>        {0xEB, 0xFB}, {0xEB, 0xFA}, {0xF4, 0xFD}, {0xEC, 0xD6}, {0xF4, 0xFE},32139./a>};o2140./a>o2141./a>#define2.a href="+code=IS_EUC_IBM2JISX0208" class="sref">IS_EUC_IBM2JISX0208./a>(.a href="+code=h" class="sref">h./a>,2.a href="+code=l" class="sref">l./a>)
\32142n a>                (((.a href="+code=h" class="sref">h./a>)
==20xA2
&&2(.a href="+code=l" class="sref">l./a>)
==20xCC) ||2((.a href="+code=h" class="sref">h./a>)
==20xA2
&&2(.a href="+code=l" class="sref">l./a>)
==20xE8))o2143./a>o2144./a>.spa= class="comment">/* EUC to SJIS IBM extended characlers map (G3 JIS X 0212 block) */./spa=v32145./a>static struct2{32146n a>        unsigned short2.a href="+code=euc" class="sref">eucn a>;o2147n a>        unsigned char2.a href="+code=sjis" class="sref">sjisn a>[2];o2148./a>}2.a href="+code=euc2sjisibm_jisx0212_map" class="sref">euc2sjisibm_jisx0212_mapn a>[]
= {32149n a>        {0xA2C3, {0xFA, 0x55}}, {0xB0A9, {0xFA, 0x68}}, {0xB0C8, {0xFA, 0x69}},32150n a>        {0xB0D2, {0xFA, 0x6B}}, {0xB0D4, {0xFA, 0x6C}}, {0xB0E3, {0xFA, 0x6D}},32151n a>        {0xB0EE, {0xFA, 0x6E}}, {0xB1A3, {0xFA, 0x70}}, {0xB1A7, {0xFA, 0x6F}},32152n a>        {0xB1A9, {0xFA, 0x72}}, {0xB1AC, {0xFA, 0x71}}, {0xB1BB, {0xFA, 0x61}},32153n a>        {0xB1BE, {0xFA, 0x73}}, {0xB1C8, {0xFA, 0x76}}, {0xB1D7, {0xFA, 0x77}},32154n a>        {0xB1D8, {0xFA, 0x75}}, {0xB1DF, {0xFA, 0x74}}, {0xB1E1, {0xFA, 0x7A}},32155n a>        {0xB1E3, {0xFA, 0x78}}, {0xB1F4, {0xFA, 0x79}}, {0xB2A3, {0xFA, 0x7B}},32156n a>        {0xB2BB, {0xFA, 0x7D}}, {0xB2E6, {0xFA, 0x7E}}, {0xB2ED, {0xFA, 0x80}},32157n a>        {0xB2F5, {0xFA, 0x81}}, {0xB2FC, {0xFA, 0x82}}, {0xB3B5, {0xFA, 0x84}},32158n a>        {0xB3D8, {0xFA, 0x85}}, {0xB3DB, {0xFA, 0x86}}, {0xB3DD, {0xFB, 0x77}},32159n a>        {0xB3E5, {0xFA, 0x87}}, {0xB3EE, {0xFA, 0x88}}, {0xB3FB, {0xFA, 0x89}},32160n a>        {0xB4C0, {0xFA, 0x8C}}, {0xB4C7, {0xFA, 0x8D}}, {0xB4D0, {0xFA, 0x8E}},32161n a>        {0xB4DE, {0xFA, 0x8F}}, {0xB5AA, {0xFA, 0x91}}, {0xB5AF, {0xFA, 0x93}},32162n a>        {0xB5C4, {0xFA, 0x94}}, {0xB5E8, {0xFA, 0x95}}, {0xB7C2, {0xFA, 0x97}},32163n a>        {0xB7E4, {0xFA, 0x98}}, {0xB7E7, {0xFA, 0x9A}}, {0xB7E8, {0xFA, 0x99}},32164n a>        {0xB8CE, {0xFA, 0x9E}}, {0xB8E1, {0xFA, 0x9F}}, {0xB8F5, {0xFA, 0xA0}},32165n a>        {0xB8F7, {0xFA, 0xA1}}, {0xB8F8, {0xFA, 0xA2}}, {0xB8FC, {0xFA, 0xA3}},32166n a>        {0xB9AF, {0xFA, 0xA4}}, {0xB9B7, {0xFA, 0xA5}}, {0xBABE, {0xFA, 0xA6}},32167n a>        {0xBADB, {0xFA, 0xA7}}, {0xBAE1, {0xFA, 0xA9}}, {0xBAEB, {0xFA, 0xAB}},32168n a>        {0xBBB3, {0xFA, 0xAC}}, {0xBBB8, {0xFA, 0xAD}}, {0xBBCA, {0xFA, 0xAF}},32169n a>        {0xBBD0, {0xFA, 0xB2}}, {0xBBDE, {0xFA, 0xB3}}, {0xBBF4, {0xFA, 0xB4}},32170n a>        {0xBBF5, {0xFA, 0xB5}}, {0xBBF9, {0xFA, 0xB6}}, {0xBCE4, {0xFA, 0xB7}},32171n a>        {0xBCED, {0xFA, 0xB8}}, {0xBCF4, {0xFA, 0x67}}, {0xBCFE, {0xFA, 0xB9}},32172n a>        {0xBDC2, {0xFA, 0xBB}}, {0xBDE7, {0xFA, 0xBC}}, {0xBDF0, {0xFA, 0xBE}},32173n a>        {0xBEAC, {0xFA, 0xC0}}, {0xBEB0, {0xFA, 0xBF}}, {0xBEB3, {0xFA, 0xC2}},32174n a>        {0xBEBD, {0xFA, 0xC3}}, {0xBEC9, {0xFA, 0xC5}}, {0xBECD, {0xFA, 0xC4}},32175n a>        {0xBEE4, {0xFA, 0xC6}}, {0xBFA8, {0xFA, 0xC7}}, {0xBFC9, {0xFA, 0xC8}},32176n a>        {0xC0C4, {0xFA, 0xC9}}, {0xC0E4, {0xFA, 0xCA}}, {0xC0F4, {0xFA, 0xCB}},32177n a>        {0xC1A6, {0xFA, 0xCC}}, {0xC1F5, {0xFA, 0xCE}}, {0xC1F8, {0xFA, 0xD1}},32178n a>        {0xC1FC, {0xFA, 0xCF}}, {0xC2A1, {0xFA, 0xD3}}, {0xC2A5, {0xFA, 0xD4}},32179n a>        {0xC2AB, {0xFA, 0xD2}}, {0xC2AD, {0xFA, 0x63}}, {0xC2B8, {0xFA, 0xD6}},32180n a>        {0xC2BA, {0xFA, 0xD7}}, {0xC2BF, {0xFA, 0x66}}, {0xC2C4, {0xFA, 0xD9}},32181n a>        {0xC2D2, {0xFA, 0xDA}}, {0xC2D7, {0xFA, 0xDB}}, {0xC2DB, {0xFA, 0xDC}},32182n a>        {0xC2DE, {0xFA, 0xDD}}, {0xC2ED, {0xFA, 0xDE}}, {0xC2F0, {0xFA, 0xDF}},32183n a>        {0xC3A1, {0xFA, 0xE1}}, {0xC3B5, {0xFA, 0xE2}}, {0xC3B9, {0xFA, 0xE4}},32184n a>        {0xC3C9, {0xFA, 0xE3}}, {0xC3D8, {0xFA, 0xE6}}, {0xC3FC, {0xFA, 0x64}},32185n a>        {0xC3FE, {0xFA, 0xE7}}, {0xC4CC, {0xFA, 0xE9}}, {0xC4D9, {0xFA, 0xEB}},32186n a>        {0xC4EA, {0xFA, 0xEC}}, {0xC4FD, {0xFA, 0xED}}, {0xC5A7, {0xFA, 0xEF}},32187n a>        {0xC5B5, {0xFA, 0xF0}}, {0xC5B6, {0xFA, 0xF1}}, {0xC5D5, {0xFA, 0xF3}},32188n a>        {0xC6B8, {0xFA, 0xF4}}, {0xC6D7, {0xFA, 0xF5}}, {0xC6E0, {0xFA, 0xF6}},32189n a>        {0xC6E3, {0xFA, 0xF8}}, {0xC6EA, {0xFA, 0xF7}}, {0xC7A1, {0xFA, 0xF9}},32190n a>        {0xC7AB, {0xFA, 0xFA}}, {0xC7C3, {0xFA, 0xFC}}, {0xC7C7, {0xFA, 0xFB}},32191n a>        {0xC7CB, {0xFB, 0x40}}, {0xC7CF, {0xFB, 0x41}}, {0xC7D9, {0xFB, 0x42}},32192n a>        {0xC7E6, {0xFB, 0x45}}, {0xC7EB, {0xFB, 0x48}}, {0xC7EE, {0xFB, 0x46}},32193n a>        {0xC7F0, {0xFB, 0x49}}, {0xC7FC, {0xFB, 0x47}}, {0xC8B1, {0xFB, 0x4A}},32194n a>        {0xC8E5, {0xFB, 0x4B}}, {0xC8F8, {0xFB, 0x4C}}, {0xC9A6, {0xFB, 0x4D}},32195n a>        {0xC9AB, {0xFB, 0x4E}}, {0xC9AD, {0xFB, 0x4F}}, {0xC9CA, {0xFB, 0x51}},32196n a>        {0xC9D3, {0xFB, 0x52}}, {0xC9E3, {0xFB, 0x54}}, {0xC9E9, {0xFB, 0x53}},32197n a>        {0xC9F4, {0xFB, 0x56}}, {0xC9F5, {0xFB, 0x57}}, {0xC9FC, {0xFB, 0x55}},32198n a>        {0xCAB3, {0xFB, 0x59}}, {0xCABD, {0xFB, 0x5A}}, {0xCAEF, {0xFB, 0x5B}},32199n a>        {0xCAF1, {0xFB, 0x5C}}, {0xCBAE, {0xFB, 0x5D}}, {0xCBCA, {0xFB, 0x5F}},32200n a>        {0xCBE6, {0xFB, 0x60}}, {0xCBEA, {0xFB, 0x61}}, {0xCBEE, {0xFB, 0x64}},32201n a>        {0xCBF0, {0xFB, 0x62}}, {0xCBF4, {0xFB, 0x63}}, {0xCBF9, {0xFB, 0x66}},32202n a>        {0xCCA5, {0xFB, 0x65}}, {0xCCAB, {0xFB, 0x67}}, {0xCCAD, {0xFB, 0x69}},32203n a>        {0xCCAE, {0xFB, 0x68}}, {0xCCB2, {0xFB, 0x6A}}, {0xCCC2, {0xFB, 0x6B}},32204n a>        {0xCCD0, {0xFB, 0x6C}}, {0xCCD9, {0xFB, 0x6D}}, {0xCDAA, {0xFA, 0xA8}},32205n a>        {0xCDBB, {0xFB, 0x6F}}, {0xCEBA, {0xFB, 0x73}}, {0xCEBB, {0xFB, 0x71}},32206n a>        {0xCEC3, {0xFB, 0x74}}, {0xCEF2, {0xFB, 0x76}}, {0xCFD5, {0xFB, 0x78}},32207n a>        {0xCFE2, {0xFB, 0x79}}, {0xCFE9, {0xFB, 0x7A}}, {0xCFED, {0xFB, 0x7B}},32208n a>        {0xD0E5, {0xFB, 0x81}}, {0xD0E9, {0xFB, 0x83}}, {0xD1E8, {0xFB, 0x84}},32209n a>        {0xD1EC, {0xFB, 0x87}}, {0xD2BB, {0xFB, 0x88}}, {0xD3E1, {0xFB, 0x8A}},32210n a>        {0xD3E8, {0xFB, 0x8B}}, {0xD4A7, {0xFB, 0x8C}}, {0xD4D4, {0xFB, 0x8F}},32211n a>        {0xD4E3, {0xFA, 0x5C}}, {0xD4F2, {0xFB, 0x90}}, {0xD5AE, {0xFB, 0x91}},32212n a>        {0xD7DE, {0xFB, 0x93}}, {0xD8A2, {0xFB, 0x95}}, {0xD8B7, {0xFB, 0x96}},32213n a>        {0xD8C1, {0xFB, 0x97}}, {0xD8D1, {0xFB, 0x98}}, {0xD8F4, {0xFB, 0x99}},32214n a>        {0xD9A1, {0xFA, 0x60}}, {0xD9C6, {0xFB, 0x9A}}, {0xD9C8, {0xFB, 0x9B}},32215n a>        {0xD9D1, {0xFB, 0x9C}}, {0xDCD3, {0xFB, 0xA2}}, {0xDCDF, {0xFA, 0x5D}},32216n a>        {0xDDC8, {0xFB, 0xA3}}, {0xDDD4, {0xFB, 0xA4}}, {0xDDEA, {0xFB, 0xA5}},32217n a>        {0xDDFA, {0xFB, 0xA6}}, {0xDEA4, {0xFB, 0xA7}}, {0xDEB0, {0xFB, 0xA8}},32218n a>        {0xDEB5, {0xFB, 0xAA}}, {0xDECB, {0xFB, 0xAB}}, {0xDFB9, {0xFB, 0xAD}},32219n a>        {0xDFC3, {0xFB, 0xAF}}, {0xE0D9, {0xFB, 0xB2}}, {0xE1E2, {0xFB, 0xB5}},32220n a>        {0xE2C7, {0xFB, 0xB9}}, {0xE3A6, {0xFB, 0xBB}}, {0xE3A8, {0xFB, 0xBA}},32221n a>        {0xE3A9, {0xFB, 0xBC}}, {0xE3AA, {0xFB, 0xBF}}, {0xE3AB, {0xFB, 0xC0}},32222n a>        {0xE3AF, {0xFB, 0xBD}}, {0xE3B0, {0xFB, 0xBE}}, {0xE3BC, {0xFB, 0xC1}},32223n a>        {0xE3BF, {0xFB, 0xC3}}, {0xE3C1, {0xFB, 0xC2}}, {0xE3D4, {0xFB, 0xCA}},32224n a>        {0xE3D5, {0xFB, 0xC4}}, {0xE3D6, {0xFB, 0xC6}}, {0xE3D8, {0xFB, 0xC5}},32225n a>        {0xE3DF, {0xFB, 0xC7}}, {0xE3E1, {0xFB, 0xC9}}, {0xE3E3, {0xFB, 0xC8}},32226n a>        {0xE3E9, {0xFB, 0xCB}}, {0xE3F1, {0xFB, 0xCD}}, {0xE3F2, {0xFB, 0xCE}},32227n a>        {0xE3F8, {0xFA, 0x5F}}, {0xE4A6, {0xFB, 0xCC}}, {0xE4BE, {0xFB, 0xD2}},32228n a>        {0xE4BF, {0xFB, 0xD6}}, {0xE4C0, {0xFB, 0xD4}}, {0xE4C1, {0xFB, 0xD0}},32229n a>        {0xE4C3, {0xFB, 0xD1}}, {0xE4C7, {0xFB, 0xD5}}, {0xE4CB, {0xFB, 0xCF}},32230n a>        {0xE4D0, {0xFA, 0x65}}, {0xE4D1, {0xFB, 0xD9}}, {0xE4D2, {0xFB, 0xDC}},32231n a>        {0xE4D4, {0xFB, 0xDE}}, {0xE4DB, {0xFB, 0xDD}}, {0xE4DC, {0xFB, 0xDB}},32232n a>        {0xE4DE, {0xFB, 0xD8}}, {0xE4E0, {0xFB, 0xD7}}, {0xE4E9, {0xFA, 0x5E}},32233n a>        {0xE4EF, {0xFB, 0xE0}}, {0xE4FA, {0xFB, 0xDF}}, {0xE5B3, {0xFB, 0xE1}},32234n a>        {0xE5BF, {0xFB, 0xE2}}, {0xE5C9, {0xFB, 0xE3}}, {0xE5D0, {0xFB, 0xE4}},32235n a>        {0xE5E2, {0xFB, 0xE5}}, {0xE5EA, {0xFB, 0xE6}}, {0xE5EB, {0xFB, 0xE7}},32236n a>        {0xE6E8, {0xFB, 0xEB}}, {0xE6EF, {0xFB, 0xEC}}, {0xE7AC, {0xFB, 0xED}},32237n a>        {0xE7AE, {0xFB, 0xEF}}, {0xE7B1, {0xFB, 0xF1}}, {0xE7B2, {0xFB, 0xF3}},32238n a>        {0xE8B1, {0xFB, 0xF4}}, {0xE8B6, {0xFB, 0xF5}}, {0xE8DD, {0xFB, 0xF8}},32239n a>        {0xE9D1, {0xFB, 0xFB}}, {0xE9ED, {0xFC, 0x40}}, {0xEACD, {0xFC, 0x41}},32240n a>        {0xEADB, {0xFC, 0x43}}, {0xEAE6, {0xFC, 0x44}}, {0xEAEA, {0xFC, 0x45}},32241n a>        {0xEBA5, {0xFC, 0x46}}, {0xEBFA, {0xFC, 0x48}}, {0xEBFB, {0xFC, 0x47}},32242n a>        {0xECD6, {0xFC, 0x4A}},32243./a>};o2244./a>o2245./a>.spa= class="comment">/* EUC to SJIS IBM extended characlers map (G3 Upper block) */./spa=v32246n a>static const unsigned char2.a href="+code=euc2sjisibm_g3upper_map" class="sref">euc2sjisibm_g3upper_mapn a>[][2]
= {32247n a>        {0xFA, 0x40}, {0xFA, 0x41}, {0xFA, 0x42}, {0xFA, 0x43}, {0xFA, 0x44},32248n a>        {0xFA, 0x45}, {0xFA, 0x46}, {0xFA, 0x47}, {0xFA, 0x48}, {0xFA, 0x49},32249n a>        {0xFA, 0x4A}, {0xFA, 0x4B}, {0xFA, 0x4C}, {0xFA, 0x4D}, {0xFA, 0x4E},32250n a>        {0xFA, 0x4F}, {0xFA, 0x50}, {0xFA, 0x51}, {0xFA, 0x52}, {0xFA, 0x53},32251n a>        {0xFA, 0x56}, {0xFA, 0x57}, {0xFA, 0x58}, {0xFA, 0x59}, {0xFA, 0x5A},32252n a>        {0xFA, 0x62}, {0xFA, 0x6A}, {0xFA, 0x7C}, {0xFA, 0x83}, {0xFA, 0x8A},32253n a>        {0xFA, 0x8B}, {0xFA, 0x90}, {0xFA, 0x92}, {0xFA, 0x96}, {0xFA, 0x9B},32254n a>        {0xFA, 0x9C}, {0xFA, 0x9D}, {0xFA, 0xAA}, {0xFA, 0xAE}, {0xFA, 0xB0},32255n a>        {0xFA, 0xB1}, {0xFA, 0xBA}, {0xFA, 0xBD}, {0xFA, 0xC1}, {0xFA, 0xCD},32256n a>        {0xFA, 0xD0}, {0xFA, 0xD5}, {0xFA, 0xD8}, {0xFA, 0xE0}, {0xFA, 0xE5},32257n a>        {0xFA, 0xE8}, {0xFA, 0xEA}, {0xFA, 0xEE}, {0xFA, 0xF2}, {0xFB, 0x43},32258n a>        {0xFB, 0x44}, {0xFB, 0x50}, {0xFB, 0x58}, {0xFB, 0x5E}, {0xFB, 0x6E},32259n a>        {0xFB, 0x70}, {0xFB, 0x72}, {0xFB, 0x75}, {0xFB, 0x7C}, {0xFB, 0x7D},32260n a>        {0xFB, 0x7E}, {0xFB, 0x80}, {0xFB, 0x82}, {0xFB, 0x85}, {0xFB, 0x86},32261n a>        {0xFB, 0x89}, {0xFB, 0x8D}, {0xFB, 0x8E}, {0xFB, 0x92}, {0xFB, 0x94},32262n a>        {0xFB, 0x9D}, {0xFB, 0x9E}, {0xFB, 0x9F}, {0xFB, 0xA0}, {0xFB, 0xA1},o2263n a>        {0xFB, 0xA9}, {0xFB, 0xAC}, {0xFB, 0xAE}, {0xFB, 0xB0}, {0xFB, 0xB1},o2264n a>        {0xFB, 0xB3}, {0xFB, 0xB4}, {0xFB, 0xB6}, {0xFB, 0xB7}, {0xFB, 0xB8},32265n a>        {0xFB, 0xD3}, {0xFB, 0xDA}, {0xFB, 0xE8}, {0xFB, 0xE9}, {0xFB, 0xEA},32266n a>        {0xFB, 0xEE}, {0xFB, 0xF0}, {0xFB, 0xF2}, {0xFB, 0xF6}, {0xFB, 0xF7},32267n a>        {0xFB, 0xF9}, {0xFB, 0xFA}, {0xFB, 0xFC}, {0xFC, 0x42}, {0xFC, 0x49},32268n a>        {0xFC, 0x4B},32269./a>};o2270./a>o2271n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=sjisibm2euc" class="sref">sjisibm2eucn a>(unsigned char2*.a href="+code=euc" class="sref">eucn a>, const unsigned char2.a href="+code=sjis_hi" class="sref">sjis_hin a>,o2272n a>                              const unsigned char2.a href="+code=sjis_lo" class="sref">sjis_lon a>);o2273n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=euc2sjisibm_jisx0212" class="sref">euc2sjisibm_jisx0212n a>(unsigned char2*.a href="+code=sjis" class="sref">sjisn a>, const unsigned char2.a href="+code=euc_hi" class="sref">euc_hin a>,o2274n a>                                       const unsigned char2.a href="+code=euc_lo" class="sref">euc_lon a>);o2275n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=euc2sjisibm_g3upper" class="sref">euc2sjisibm_g3uppern a>(unsigned char2*.a href="+code=sjis" class="sref">sjisn a>, const unsigned char2.a href="+code=euc_hi" class="sref">euc_hin a>,o2276n a>                                      const unsigned char2.a href="+code=euc_lo" class="sref">euc_lon a>);o2277n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=euc2sjisibm" class="sref">euc2sjisibmn a>(unsigned char2*.a href="+code=sjis" class="sref">sjisn a>, const unsigned char2.a href="+code=euc_hi" class="sref">euc_hin a>,o2278n a>                              const unsigned char2.a href="+code=euc_lo" class="sref">euc_lon a>);o2279n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=sjisnec2sjisibm" class="sref">sjisnec2sjisibmn a>(unsigned char2*.a href="+code=sjisibm" class="sref">sjisibmn a>,o2280n a>                                  const unsigned char2.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a>,o2281n a>                                  const unsigned char2.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a>);o2282n a>o2283n a>.spa= class="comment">/* SJIS IBM extended characlers to EUC */./spa=v32284n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=sjisibm2euc" class="sref">sjisibm2eucn a>(unsigned char2*.a href="+code=euc" class="sref">eucn a>, const unsigned char2.a href="+code=sjis_hi" class="sref">sjis_hin a>,o2285n a>                              const unsigned char2.a href="+code=sjis_lo" class="sref">sjis_lon a>)o2286n a>{32287n a>        int2.a href="+code=index" class="sref">indexn a>;o2288n a>o2289n a>        .a href="+code=index" class="sref">indexn a> =2((.a href="+code=sjis_hi" class="sref">sjis_hin a> - 0xFA) * (0xFD - 0x40)) +2(.a href="+code=sjis_lo" class="sref">sjis_lon a> - 0x40);o2290n a>        if2(.a href="+code=IS_EUC_IBM2JISX0208" class="sref">IS_EUC_IBM2JISX0208./a>(.a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[.a href="+code=index" class="sref">indexn a>][0],o2291n a>                                .a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[.a href="+code=index" class="sref">indexn a>][1])) {32292n a>                .a href="+code=euc" class="sref">eucn a>[0] =2.a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[.a href="+code=index" class="sref">indexn a>][0];o2293n a>                .a href="+code=euc" class="sref">eucn a>[1] =2.a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[.a href="+code=index" class="sref">indexn a>][1];o2294n a>                return 2;o2295n a>        } else {32296n a>                .a href="+code=euc" class="sref">eucn a>[0] =2.a href="+code=SS3" class="sref">SS3n a>;o2297n a>                .a href="+code=euc" class="sref">eucn a>[1] =2.a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[.a href="+code=index" class="sref">indexn a>][0];o2298n a>                .a href="+code=euc" class="sref">eucn a>[2] =2.a href="+code=sjisibm2euc_map" class="sref">sjisibm2euc_mapn a>[.a href="+code=index" class="sref">indexn a>][1];o2299n a>                return 3;o2300n a>        }o2301n a>}o2302n a>o2303n a>.spa= class="comment">/* EUC to SJIS IBM extended characlers (G3 JIS X 0212 block) */./spa=v32304n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=euc2sjisibm_jisx0212" class="sref">euc2sjisibm_jisx0212n a>(unsigned char2*.a href="+code=sjis" class="sref">sjisn a>, const unsigned char2.a href="+code=euc_hi" class="sref">euc_hin a>,o2305n a>                                       const unsigned char2.a href="+code=euc_lo" class="sref">euc_lon a>)o2306n a>{32307n a>        int2.a href="+code=index" class="sref">indexn a>,2.a href="+code=min_index" class="sref">min_indexn a>,2.a href="+code=max_index" class="sref">max_indexn a>;o2308n a>        unsigned short2.a href="+code=euc" class="sref">eucn a>;o2309n a>o2310n a>        .a href="+code=min_index" class="sref">min_indexn a> =20;o2311n a>        .a href="+code=max_index" class="sref">max_indexn a> =2.a href="+code=ARRAY_SIZE" class="sref">ARRAY_SIZE./a>(.a href="+code=euc2sjisibm_jisx0212_map" class="sref">euc2sjisibm_jisx0212_mapn a>) - 1;o2312n a>        .a href="+code=euc" class="sref">eucn a> =2(.a href="+code=euc_hi" class="sref">euc_hin a> << 8) |2.a href="+code=euc_lo" class="sref">euc_lon a>;o2313./a>o2314n a>        while2(.a href="+code=min_index" class="sref">min_indexn a> <=2.a href="+code=max_index" class="sref">max_indexn a>) {32315n a>                .a href="+code=index" class="sref">indexn a> =2(.a href="+code=min_index" class="sref">min_indexn a> +2.a href="+code=max_index" class="sref">max_indexn a>) / 2;o2316n a>                if2(.a href="+code=euc" class="sref">eucn a> < .a href="+code=euc2sjisibm_jisx0212_map" class="sref">euc2sjisibm_jisx0212_mapn a>[.a href="+code=index" class="sref">indexn a>]..a href="+code=euc" class="sref">eucn a>)o2317n a>                        .a href="+code=max_index" class="sref">max_indexn a> =2.a href="+code=index" class="sref">indexn a> - 1;o2318n a>                elseo2319n a>                        .a href="+code=min_index" class="sref">min_indexn a> =2.a href="+code=index" class="sref">indexn a> + 1;o2320n a>                if2(.a href="+code=euc" class="sref">eucn a> ==2.a href="+code=euc2sjisibm_jisx0212_map" class="sref">euc2sjisibm_jisx0212_mapn a>[.a href="+code=index" class="sref">indexn a>]..a href="+code=euc" class="sref">eucn a>) {32321n a>                        .a href="+code=sjis" class="sref">sjisn a>[0] =2.a href="+code=euc2sjisibm_jisx0212_map" class="sref">euc2sjisibm_jisx0212_mapn a>[.a href="+code=index" class="sref">indexn a>]..a href="+code=sjis" class="sref">sjisn a>[0];o2322n a>                        .a href="+code=sjis" class="sref">sjisn a>[1] =2.a href="+code=euc2sjisibm_jisx0212_map" class="sref">euc2sjisibm_jisx0212_mapn a>[.a href="+code=index" class="sref">indexn a>]..a href="+code=sjis" class="sref">sjisn a>[1];o2323n a>                        return 3;o2324n a>                }o2325n a>        }o2326n a>        return 0;o2327n a>}o2328n a>o2329n a>.spa= class="comment">/* EUC to SJIS IBM extended characlers (G3 Upper block) */./spa=v32330n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=euc2sjisibm_g3upper" class="sref">euc2sjisibm_g3uppern a>(unsigned char2*.a href="+code=sjis" class="sref">sjisn a>, const unsigned char2.a href="+code=euc_hi" class="sref">euc_hin a>,o2331n a>                                      const unsigned char2.a href="+code=euc_lo" class="sref">euc_lon a>)o2332n a>{32333n a>        int2.a href="+code=index" class="sref">indexn a>;o2334./a>o2335n a>        if2(.a href="+code=euc_hi" class="sref">euc_hin a> ==20xF3)o2336n a>                .a href="+code=index" class="sref">indexn a> =2((.a href="+code=euc_hi" class="sref">euc_hin a> << 8) |2.a href="+code=euc_lo" class="sref">euc_lon a>) - 0xF3F3;o2337n a>        elseo2338n a>                .a href="+code=index" class="sref">indexn a> =2((.a href="+code=euc_hi" class="sref">euc_hin a> << 8) |2.a href="+code=euc_lo" class="sref">euc_lon a>) - 0xF4A1 + 12;o2339n a>o2340n a>        if2((.a href="+code=index" class="sref">indexn a> < 0) ||2(.a href="+code=index" class="sref">indexn a> >=2.a href="+code=ARRAY_SIZE" class="sref">ARRAY_SIZE./a>(.a href="+code=euc2sjisibm_g3upper_map" class="sref">euc2sjisibm_g3upper_mapn a>)))o2341n a>                return 0;o2342n a>o2343n a>        .a href="+code=sjis" class="sref">sjisn a>[0] =2.a href="+code=euc2sjisibm_g3upper_map" class="sref">euc2sjisibm_g3upper_mapn a>[.a href="+code=index" class="sref">indexn a>][0];o2344n a>        .a href="+code=sjis" class="sref">sjisn a>[1] =2.a href="+code=euc2sjisibm_g3upper_map" class="sref">euc2sjisibm_g3upper_mapn a>[.a href="+code=index" class="sref">indexn a>][1];o2345./a>o2346n a>        return 3;o2347n a>}o2348n a>o2349n a>.spa= class="comment">/* EUC to SJIS IBM extended characlers (G3 block) */./spa=v32350n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=euc2sjisibm" class="sref">euc2sjisibmn a>(unsigned char2*.a href="+code=sjis" class="sref">sjisn a>, const unsigned char2.a href="+code=euc_hi" class="sref">euc_hin a>,o2351n a>                              const unsigned char2.a href="+code=euc_lo" class="sref">euc_lon a>)o2352n a>{32353n a>        int2.a href="+code=n" class="sref">nn a>;o2354./a>o2355n a>#if20o2356n a>        if2((.a href="+code=euc_hi" class="sref">euc_hin a> ==20xA2) &&2(.a href="+code=euc_lo" class="sref">euc_lon a> ==20xCC)) {32357n a>                .a href="+code=sjis" class="sref">sjisn a>[0] =20xFA;o2358n a>                .a href="+code=sjis" class="sref">sjisn a>[1] =20x54;o2359n a>                return 2;o2360n a>        } else if2((.a href="+code=euc_hi" class="sref">euc_hin a> ==20xA2) &&2(.a href="+code=euc_lo" class="sref">euc_lon a> ==20xE8)) {32361n a>                .a href="+code=sjis" class="sref">sjisn a>[0] =20xFA;o2362n a>                .a href="+code=sjis" class="sref">sjisn a>[1] =20x5B;o2363n a>                return 2;o2364n a>        }o2365n a>#endifo2366n a>        if2((.a href="+code=n" class="sref">nn a> =2.a href="+code=euc2sjisibm_g3upper" class="sref">euc2sjisibm_g3uppern a>(.a href="+code=sjis" class="sref">sjisn a>, .a href="+code=euc_hi" class="sref">euc_hin a>,2.a href="+code=euc_lo" class="sref">euc_lon a>))) {32367n a>                return .a href="+code=n" class="sref">nn a>;o2368n a>        } else if2((.a href="+code=n" class="sref">nn a> =2.a href="+code=euc2sjisibm_jisx0212" class="sref">euc2sjisibm_jisx0212n a>(.a href="+code=sjis" class="sref">sjisn a>, .a href="+code=euc_hi" class="sref">euc_hin a>,2.a href="+code=euc_lo" class="sref">euc_lon a>))) {32369n a>                return .a href="+code=n" class="sref">nn a>;o2370n a>        }o2371n a>o2372n a>        return 0;o2373n a>}o2374./a>o2375./a>.spa= class="comment">/* NEC/IBM extended characlers to IBM extended characlers */./spa=v32376n a>static .a href="+code=inline" class="sref">inlinen a> int2.a href="+code=sjisnec2sjisibm" class="sref">sjisnec2sjisibmn a>(unsigned char2*.a href="+code=sjisibm" class="sref">sjisibmn a>,o2377n a>                                  const unsigned char2.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a>,o2378n a>                                  const unsigned char2.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a>)o2379n a>{32380n a>        int2.a href="+code=count" class="sref">countn a>;o2381n a>o2382n a>        if2(!2.a href="+code=IS_SJIS_NECIBM" class="sref">IS_SJIS_NECIBMn a>(.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a>,2.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a>))o2383n a>                return 0;o2384./a>o2385n a>        if2((.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a> ==20xEE) &&2(.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a> ==20xF9)) {32386n a>                .a href="+code=sjisibm" class="sref">sjisibmn a>[0] =20x81;o2387n a>                .a href="+code=sjisibm" class="sref">sjisibmn a>[1] =20xCA;o2388n a>                return 2;o2389n a>        }o2390./a>o2391n a>        if2((.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a> ==20xEE) &&2(.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a> >=20xEF)) {32392n a>                .a href="+code=count" class="sref">countn a> =2(.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a> << 8 |2.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a>)o2393n a>                        -2(.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a> <=20xF9 ?20xEEEF : (0xEEEF - 10));o2394n a>        } else {32395n a>                .a href="+code=count" class="sref">countn a> =2(.a href="+code=sjisnec_hi" class="sref">sjisnec_hin a> - 0xED) * (0xFC - 0x40)32396n a>                        +2(.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a> - 0x40) +2(0x5C - 0x40);o2397n a>                if2(.a href="+code=sjisnec_lo" class="sref">sjisnec_lon a> >=20x7F)32398n a>                        .a href="+code=count" class="sref">countn a>--;o2399n a>        }o2400./a>o2401n a>        .a href="+code=sjisibm" class="sref">sjisibmn a>[0] =20xFA +2(.a href="+code=count" class="sref">countn a> / (0xFC - 0x40));o2402n a>        .a href="+code=sjisibm" class="sref">sjisibmn a>[1] =20x40 +2(.a href="+code=count" class="sref">countn a> % (0xFC - 0x40));o2403n a>        if2(.a href="+code=sjisibm" class="sref">sjisibmn a>[1] >=20x7F)32404n a>                .a href="+code=sjisibm" class="sref">sjisibmn a>[1]++;o2405./a>o2406n a>        return 2;o2407n a>}o2408n a>o2409n a>static int2.a href="+code=uni2char" class="sref">uni2charn a>(const .a href="+code=wchar_t" class="sref">wchar_tn a> .a href="+code=uni" class="sref">unin a>,o2410n a>                    unsigned char2*.a href="+code=out" class="sref">outn a>,2int2.a href="+code=boundlen" class="sref">boundlenn a>)o2411n a>{32412n a>        int2.a href="+code=n" class="sref">nn a>;o2413./a>o2299n /amio1L299">2299L412" idoref="fs/nls/nls_euc-jp.c#L345" ido50Ouc-jp.c#L345" ido51L411">2411n a>{3index4 a> =4(.a href="+code=min_inamio1L4-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>oeuc4 a> &41de=euc2sjisibm_g3upper" class="sref">euc2sjisibm_g3uppern a>(.a href="+c ido50Ouc-jp.c#L345" ido51L41- namde=wchar_t" class="sref">wchar_tn a> .a href="+codec#L410" ido1L410" class="line" namio1L410n a>(.a href="+cboundlenn a>)o2413./a>o =2.a hrejp.c#L370" ido1L370" class="line" namio1L370">2370n a>        }o2409n a>static int2.a href="+c  .a href4"+code=min_index" class=4sref"4min_indexn a> characlers */./spa=v32376n a>static .a href="+code4 href="+c4de=euc" class="sref">euc4 a> =42EUC_IBM2JISX0208./a>(.a href="+cef">euc2sjisibm_g3upper= 1392">2392n a>                .a hr4  .a href4"+code=sjis" class="sref4>sjis4 a>[0] =2.a href="+cod208./a>(.a href="+code>,2.a_mapn a1KANAref">sjisnec_hin a>,2.a_mapn a1KANA+codec#L410" ido1L41boundlenn a>)o2392n a>                .a hr4  .a href4"+code=sjis" class="sref4>sjis4 a>[1] =2.a href="+code=euc2sjiharaclers */./spa=v32376n a>static .a href="+code4 c-jp.c#L4;o(.a href="+c1" ido1L411" class="line" namio1L41ef="+c2d">2413./a>o2370n a>        }o2406n a>        return 2;osjisnec_lon a> - 0x40) +2(c#L410" ido1L41boundlenn a>)o2370n a>        }o =2.a href="+code=index" class="boundlenn a>)osjisn a>, 7"s1L370">2370n a>        }o--;o2407n a>}o2408n a>oinlinen a> in42.a h43a> ==20xA2) &&2(/a>(.a href="+cef">euc2sjisibm_g3upper= 2392">2392n a>                .a hr4         4      const unsigned cha42.a h4ef="+code=euc_lo" clascharaclers */./spa=v32376n a>static .a href="+code4euc-jp.c#4333" ido1L333" class="li4e" na430x5B;osjisibmn a>,o(.a href="+cboundlenn a>)o)o2403n a>        if2(.a href="+code=inde4" class="sref">indexn a>4o(.a href="+code>,2.aUDC_LOWref">sjisnec_hin a>,2.aUDC_LOW+codec#L410" ido1L41boundlenn a>)o2392n a>                .a hr4 ls/nls_e4i" class="sref">euc_hin 4> ==243ef="+code=euc_lo" class="srefcharaclers */./spa=v32376n a>static .a href="+code4eef="fs/n4ndex" class="sref">index4 a> =4((.a href="+code=euc_h="fs/nls/nls_euc-jp.c#LMAPa>,2.2e" ndlenn a>)o,2.2e" +codec#L410" ido1L41boundlenn a>)o)o2403n a>        if2(.a href="+cuc-jp.c#L_euc-jp.c#L338" ido1L3384 clas43ax_indexn a> =2.a hreamp;&2(/a>(.a href="+cn a>,2.aUDC_HIref">sjisnec_hin a>,2.aUDC_HI+codec#L410" ido1L41boundlenn a>)o2392n a>                .a hr4  href="f4ndex" class="sref">index4 a> =4((.a href="+code=euc_hss="srefcharaclers */./spa=v32376n a>static .a href="+code4e* EUC to440" ido1L340" class="lin4" nam43in_indexn a> =2.a href="+codeo2370n a>        }oindexn a4 <441L401">2401n a>        .a href="+code 0;o(.a href="+c1" ido1L411" class="line" namio1L41ef="+c36">2336n a>                .a hr4uc-jp.c#L443" ido1L343" class="lin4" nam44=sjis_lo" class="sref">sjis_lon a>)inamio1L4-_euc-jp.c#L345"ENAMETOOLONG0Ouc-jp.c#L345"ENAMETOOLONG1L370">2370n a>        }osjisn a>[0] =24a hre441L=#L342" ido1L342" L299" class="line=sjis" cl4ss="sref">sjisn a>[1] =24a hre44lass="line" namio1L32ef="+codpper" class="sref">euc2sjisibm_g3uppern3isx0212_mapn a>[.chc-jp.c#L403" idoh="fs3upper_mapn a>[.a boundlenn a>)o[.a boundlenn a>)o2345./a>o2297n a>                .a hr4ref="fs/n4s/nls_euc-jp.c#L347" ido4L347"44(.a href="+code=euc_h="fs/nls/nls_euc-jp.c#LMAPa>,2.2e" ndlenn a>)o,2.2e" +codec#L410" ido1L41chc-jp.c#L403" idoh="fs/nls_euc-jp.c#L41clc-jp.c#L403" idol1L37s_euc5/nls_euc-jp.c#L41boundlenn a>)o2403n a>        if2(.a href="+euc-jp.c#4348" ido1L348" class="li4e" na44ax_indexn a> =2.a hreamp;&2(/a>(.a href="+cn a>,2.a="sref">sjisnec_hin a>,2.aef="+code=sjisnec_lo" cboundlenn a>)o2392n a>                .a hr4uc-jp.c#L449" ido1L349" class="lin4" nam44(.a href="+code=euc_hss="srefcharaclers */./spa=v32376n a>static .a href="+code4/* EUC to4SJIS IBM extended charac4ers (44in_indexn a> =2.a href="+codeosjisibm2euc_mapn a>34/nls_euc-jp.c#L41 class="line" nai1L297">2297n a>                .a hr4inline" c4ass="sref">inlinen a> in42.a h451L401">2401n a>        .a href="+code        c4nst unsigned char2.a hre4="+co4e=euc_lo" class="sref">euc_lonpper" class="sref">euc2sjisibm_g3uppern a>(.a href="+cosjisibm2euc_mapn a/nls_euc-jp.c#L41boundlenn a>)o2403n a>        if2(.a href="+euc-jp.c#4353" ido1L353" class="li4e" na45=sjis_lo" class="sref">sjis_l208./a>(.a href="+c1" ido1L411" class="line" namio1L41ef="+cpper" class="sref">euc2sjisibm_g3upp6">2336n a>                .a hr4code=n" c4ass="sref">nn a>;o2370n a>        }oeuc2sjisibm_g3upp1nls_euc-jp.c#L41 class="line" nai1L29++6">2336n a>                .a hr4cc-jp.c#L4.c#L356" ido1L356" class4"line45ef="+code=euc_lo" class="sref">euc_lols_euc-jp.c#L41boundlenn a>)o[.a hreef">sjisibm2euc_mapn a>ls_euc-jp.c#L41 class="line" nai1L29g0">2370n a>        }oeuc_hin4a> ==45(.a href="+code=euc_hamp;&2(/a>(.a href="+cn a>,2.a2euc_map" class="sref">sji>,2.a2euc_map"+code=sjisnec_lo" cboundlenn a>)o2392n a>                .a hr4f="+code=4jis" class="sref">sjisn 4>[0] 420xFA;oeuc_lolharaclers */./spa=v32350n a>static .a href="+code4f="+code=4jis" class="sref">sjisn 4>[1] 420x54;oeuc_lols_euc-jp.c#L41boundlenn a>)o)o2370n a>        }o(.a href="+cboundlenn a>)o2336n a>                .a hr4 href="+c4de=euc_hi" class="sref">4uc_hi46code=sjisnec_hi" class="sref">sjisnece=sjisnec_lo" cboundlenn a>)o2405./a>osjisn 4>[0] 461L382">2382n a>        if2(!2.a href4f="+code=4jis" class="sref">sjisn 4>[1] 420x5B;o)o2404n a>                .a hre 2;osjisnece=sjisnec_lo" cboundlenn a>)o2387n a>                .a hr4nls/nls_e4c-jp.c#L365" ido1L365" c4ass="46lass="line" namio1L32ef="+codp;&2(/a>(.a href="+cboundlenn a>)o2404n a>                .a hre c-jp.c#L4p.c#L366" ido1L366" clas4="lin46ef="+code=euc_lo" class="sref">euc_lols_euc-jp.c#L41boundlenn a>)o2384./a>onn a> =2.a h4ef="+46(.a href="+code=euc_h="fs/nlsL338">2338n a>                .a hr4 .a href=4+code=n" class="sref">nn4a>;o<4 href="fs/nls/nls_euc-ss="sref">euc_lols_euc-jp.c#L41boundlenn a>)o2407n a>}onn a>4=2.a 460x54;o2395n a>                .a hr4 .a href=4+code=n" class="sref">nn4a>;o<4 href="fs/nls/nls_euc-">euc_lolharaclers */./spa=v32376n a>static .a href="+code4nls/nls_e4c-jp.c#L371" ido1L371" c4ass="47code=sjisnec_hi" class="sref"amio1L4-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>o2408n a>o2408n a>o2338n a>                .a hr4uc-jp.c#L475" ido1L375" class="lin4" nam471L295" class="line" namio1L2-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>o2406n a>        return 2;oinlinen a> in42.a h47lass="line" namio1L4pper" class="sref">euc2sjisibm_g3upp1">2406n a>        return 2;o2408n a>o2409n a>static int2.a href="+ceuc-jp.c#4380" ido1L380" class="li4e" na47nst .a href="+code=wchar_t" class="20" class="line" nass="20" "+codon a>)orawstringclass="line" narawstringpn a/nls/nls_euc-jp.c#L411" ido1L411" class="line" namio1L410">2410n a>                    uncode=coun4" class="sref">countn a>4o0" class="line" namio1L414">2404n a>                .a hreuc-jp.c#L482" ido1L382" class="lin4" nam48o1L412">2412n a>        int2.a href="+"+code=IS4SJIS_NECIBM" class="sref4>IS_S4IS_NECIBMn a>(ef="fs/nls/nls_euc-jp.c#L286" ido1tem">indexn a>][1];o2406n a>        return 2;oeuc2sjisibm_g3upp1">2406n a>        return 2;o2385n a>        if2((.a href=4+code=sji4nec_hi" class="sref">sji4nec_h4n a> ==20xEE) & s_euc-jp.c#L345" ido50Ouc-jp.c#L345" ido51L41 4">2404n a>                .a hreunline" c4jisibm" class="sref">sji4ibmn 4>[0] =20x81;o2413./a>osji4ibmn 4>[1] =20xCA;o<208./a>(.a href="+c1" ido1L411" class="line" namio1L41ef="+=cod">2413./a>o2370n a>        }o2340n a>        if2((.a href=4uc-jp.c#L491" ido1L391" class="lin4" nam49;o2376n a>static .a href="+code4+code=sji4nec_hi" class="sref">sji4nec_h4n a> ==20xEE) &" class="sref">rawstringclass="line" narawstringpn a0x4j namo1L40495">2395n a>                .a hr4f="+code=4ount" class="sref">count4 a> =4(.a href="+code=sjisne&" class="sref">rawstringclass="line" narawstringpn a0x4jjisx0212_mapn a>[.7" class="line" namio1L29495">2395n a>                .a hr4f0;osjisnec_lon a> <=20xF9 208./a>(.a href="+c1" ido1L411" class="line" namio1L41ef="+c36">2336n a>                .a hr4ef="fs/nl4/nls_euc-jp.c#L395" ido14395" 49lass="line" namio1L32ef="+coda href="amio1L2-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>ocount4 a> =4(.a href="+code=sjisnehref="fs/4" ido1L354" cine"offseo2413./a>osj">2413./a>osj4snec_lon a> >=20x7F;=20xF9 208./a>(.a href="+cIS_e" aUDC_HIref">sjisnec_hin ae" aUDC_HI"+code=sjisnec_lo" crawstringclass="line" narawstringpn a01]s_ls_euc-jp.c#L41rawstringclass="line" narawstringpn a02]0392">2392n a>                .a hr4  .a href4"+code=count" class="sre4">cou4tn a>--;o2376n a>static .a href="+code4nls/nls_e4c-jp.c#L400" ido1L400" c4ass="49href="fs/nls/nls_euc-">euc_lohref="fs/4" ido1L354" cMAPae" 2_eucndlenn a>)o2376n a>static .a href="+code5uc-jp.c#L501" ido1L401" class="lin5" nam50code=sjisnec_hi" class="sref">sjisnecuc_lohref="fs/4" ido1L354" c ido1tem">indexn a>][1];oindexn a>][1];o2403n a>        if2(.a href="5=sjisibm"5class="sref">sjisibmn a>50] =250=euc_lo" class="sref">euc_lonamp;&2(/a>(.a href="+cee=sjis" class="sref">sjisn a>, const unsils_euc-jp.c#L41 ido1tem">indexn a>][1];o2392n a>                .a hr5=sjisibm"5class="sref">sjisibmn a>51] =250=sjis_lo" class="sref">sjis_lon a>)incharaclers */./spa=v32376n a>static .a href="+code5code=sjis5bm" class="sref">sjisibm5 a>[150f">sjisnec_lon a> <=20xF9 mio1L395">2395n a>                .a hr5f="+code=5jisibm" class="sref">sji5ibmn 5>[1]++;osjis_lon a>)incharaclers */./spa=v32376n a>static .a href="+code5c5"+code=5junt" class="sref">count5" nam50ef="+code=euc_lo" class="sref">euc_loamio1L2-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>osj">2413./a>oeuc_lolharaclers */./spa=v32376n a>static .a href="+code5c8c-jp.c#54+code=count" class="sre5" nam50n a>--;o2376n a>static .a href="+code5c9c-jp.c#54-jp.c#L400" ido1L400" c5n a>(50href="fs/nls/nls_euc-">euc_lohref="fs/haraclers */./spa=v32376n a>static .a href="+code5signed ch5r2*.a href="+code=out" c5ass="5ref">outn a>,2int2.a href=====8">2408n a>o2395n a>                .a hr5code=n" c5ass="sref">nn a>;osjis_l208./a>(.a href="+c1" ido1L411" class="line" namio1L41ef="+c2d">2413./a>o2413./a>o2299n /amio1L299">2259L41251[1]++;osjis_l/4" ido1L354" cine"offseo2407n a>}oindex5 a> =511L406">2406n a>        return 2;oeuc5 a> &51(.a href="+code=euc_h="fs/nls208./a>(.a href="+cIS_e" a_mapn a1KANAref">sjisnec_hin ae" a_mapn a1KANA"+code=sjisnec_lo" crawstringclass="line" narawstringpn a0x4/nls_euc-jp.c#L41rawstringclass="line" narawstringpn a01]0392">2392n a>                .a hr5uuc-jp.c#5"+code=max_index" class=5sref"5max_indexn a> =2.a href="fs/nl">sjis_l/haraclers */./spa=v32376n a>static .a href="+code5a href="f5/nls/nls_euc-jp.c#L319" 5do1L351n a>--;oindexn a>][1];o2407n a>}oeuc_lohref="fs/4" ido1L354" c ido1tem">indexn a>][1];o2384./a>oeuc5 a> =52ef">outn a>,2int2.a href=====8mp;&2(/a>(.a href="+cn ae" aUDC_LOWref">sjisnec_hin ae" aUDC_LOW"+code=sjisnec_lo" crawstringclass="line" narawstringpn a0x4/nls_euc-jp.c#L41rawstringclass="line" narawstringpn a01]0392">2392n a>                .a hr5  .a href5"+code=sjis" class="sref5>sjis5 a>[0] =2.a href="+codf="fs/nl">sjis_l/haraclers */./spa=v32376n a>static .a href="+code5  .a href5"+code=sjis" class="sref5>sjis5 a>[1] =2.a href="+code=euc2sjhref="fs/4" ido1L354" cMAPae" 2_eucndlenn a>)o2376n a>static .a href="+code5 c-jp.c#L5;oeuc_lohref="fs/4" ido1L354" c ido1tem">indexn a>][1];oindexn a>][1];o2397n a>                if2(.5ref="fs/n5s/nls_euc-jp.c#L325" ido5L325"5class="line" namio1L32ef="+cod8mp;&2(/a>(.a href="+cn ae" a2euc_map" class="sref">sjie" a2euc_map"+code=sjisnec_lo" crawstringclass="line" narawstringpn a0x4/nls_euc-jp.c#L41rawstringclass="line" narawstringpn a01]0392">2392n a>                .a hr5 c-jp.c#L5c-jp.c#L326" ido1L326" c5ass="52ef="+code=euc_lo" class="sref">euc_lolharaclers */./spa=v32350n a>static .a href="+code5ref="fs/n5s/nls_euc-jp.c#L327" ido5L327"52f">sjisnec_lon a> - 0x40) +2(href="fs/4" ido1L354" c ido1tem">indexn a>][1];o2384./a>o =2.a href="+codeeeeeeeees/nlsp" class="sref">rawstringclass="line" narawstringpn a0x4j EF)) 183">2383n a>                retur5n href="f529" ido1L329" class="lin5" nam52n a>--;oindexn a>][1];o2407n a>}o(.a href="+crawstringclass="line" narawstringpn a01]n ="+coLEod">2413./a>oinlinen a> in52.a h53code=sjisnec_hi" class="sref">sjisnecuc_lohre/4" ido1L354" c ido1tem">indexn a>][1];o2387n a>                .a hr5         5      const unsigned cha52.a h5ef="+code=euc_lo" clas----------------p;&a">2387n a>                .a hr5  .a href5333" ido1L333" class="li5e" na530x5B;osjisnecuc_lohre/4" ido1L354" c ido1tem">indexn a>][1];o2384./a>oindexn a>5osjisnec_lon a> <=20xF9 mio1L395">2395n a>                .a hr5uc-jp.c#L535" ido1L335" class="lin5" nam53lass="line" namio1L32>sjisnecuc_lohre/haraclers */./spa=v32376n a>static .a href="+code5 ls/nls_e5i" class="sref">euc_hin 5> ==253ef="+code=euc_lo" class="srefffffffffamio1L4-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>oindex5 a> =5((.a href="+code=euc_h="fs/nls8">2408n a>o =2.a hrea">2408n a>oindex5 a> =53ef="+code=euc2sjisib5">2395n a>                .a hr5u* EUC to540" ido1L340" class="lin5" nam53in_indexn a> =2.a hre/4" ido1L354" cine"offseo2387n a>                .a hr5+code=ind5x" class="sref">indexn a5 <541L401">2401n a>        .a href="+cod5 0;o2376n a>static .a href="+code5uc-jp.c#L543" ido1L343" class="lin5" nam54=sjis_lo" class="sref/4" ido1L354" c ido1tem">indexn a>][1];o2370n a>        }osjisn a>[0] =25a hre54f">sjisnec_lon a> </4" ido1L354" c ido1tem">indexn a>][1];o2384./a>osjisn a>[1] =25a hre54lass="line" na">2408n a>o2406n a>        return 2;o(.a href="+cef">euc2sjisibm_g3uppern a>(.a href="+c ido50Ouc-jp.c#L345" ido51L41- namde=wchar_t" class="20" class="line" nass="20" "+codls_euc-jp.c#L41 ido1tem">indexn a>][1];oindexn a>][1];o2413./a>o =2.a hreamio1L4pper" class="sref">euc2sjisibm_g3upp1">2406n a>        return 2;o2409n a>static int2.a href="+5/* EUC to5SJIS IBM extended charac5ers (54in_indexn a> amio1L4pper" class="srine"offseo2406n a>        return 2;oinlinen a> in52.a h551L401a">2408n a>o2382n a>        if2(!2.a href5euc-jp.c#5353" ido1L353" class="li5e" na55=sjisa href=strucL413" ido1L413" clif2tablef">euc2sjisibm_gif2tablen_ind13" ido1L413" ctablef">euc2sjisibm_tablen_ind=b5">2395n a>                .a hr5code=n" c5ass="sref">nn a>;o"     ."io1L376/">2376n a>static .a href="+code5uc-jp.c#L555" ido1L355" class="lin5" nam55lass="line" n.de=wchar_t" class="sref">wchar_tn a> .a href="+coddo1L324=n/e=wchar_t" class="sref">wchar_tn a> .a href="+cod/">2376n a>static .a href="+code5uc-jp.c#L5.c#L356" ido1L356" class5"line55ef="+code=euc.de=wchar_t" class="20" class="line" nass="20" "+codo1L324=n/e=wchar_t" class="20" class="line" nass="20" "+co/">2376n a>static .a href="+code5uef="fs/n5hi" class="sref">euc_hin5a> ==55(.a href="+co.de=wchar_t" claownsref">sjisn a>, .ownsrx_indexn a> =2=n/e=wchar_t" claTHIS_MODULEef">sjisn a>, .THIS_MODULE"+co/">2376n a>static .a href="+code5uuc-jp.c#5jis" class="sref">sjisn 5>[0] 520xFA;}1">2406n a>        return 2;osjisn 5>[1] 551L409">2409n a>static int2.a href="+5u* EUC to5f="fs/nls/nls_euc-jp.c#L560" i55nst .a href="+code=wchar_t" cla__inioindexn a>][1];inio_int2.a _j""+codvoidd">2413./a>o5uc_hi56code=5">2395n a>                .a hr5f="+code=5jis" class="sref">sjisn 5>[0] 56FA +2(.a href="+code=count"  ido50Ouc-jp.c#L345" ido51L41 =n/e=wchar_t" claloadido50Ouc-jp.c#L345"loadido5"+codlharaclers */stringc>"cp932"io1L37697">2397n a>                if2(.5f="+code=5jis" class="sref">sjisn 5>[1] 520x5B;">2397n a>                if2(.5fode=n" c5f="fs/nls/nls_euc-jp.c#L564" i56>=20x7F)32395n a>                .a hr5nls/nls_e5c-jp.c#L365" ido1L365" c5ass="56lass="line" namio1L3213" ido1L413" ctablef">euc2sjisibm_tablen_in.de=wchar_t" class="seo2uppsref">sjisn a>, .ss="seo2uppsr3uppern a>(.a href="+c ido50Ouc-jp.c#L345" ido51L41- namde=wchar_t" class="seo2uppsref">sjisn a>, .ss="seo2uppsr3upp7">2397n a>                if2(.5fc-jp.c#L5p.c#L366" ido1L366" clas5="lin56ef="+code=euc_lo" cla13" ido1L413" ctablef">euc2sjisibm_tablen_in.de=wchar_t" class="seo2lowsref">sjisn a>, .ss="seo2lowsr3uppern a>(.a href="+c ido50Ouc-jp.c#L345" ido51L41- namde=wchar_t" class="seo2lowsref">sjisn a>, .ss="seo2lowsr3upp7">2397n a>                if2(.5fef="fs/n5lass="sref">nn a> =2.a h5ef="+56(.a href="+code=euc_hamio1L4pper" class="srregisterido50Ouc-jp.c#L345"registerido5"+cod EF))13" ido1L413" ctablef">euc2sjisibm_tablen_in97">2397n a>                if2(.5fuc-jp.c#5+code=n" class="sref">nn5a>;o<5 href="fs/nls/a">2408n a>onn a>5=2.a 561L409">2409n a>static int2.a href="+5 .a href=5+code=n" class="sref">nn5a>;o<56in_indexn a> amio1L4-_euc-jp.c#L345"EINVAL0Ouc-jp.c#L345"EINVAL1L413">2413./a>o2408n a>o2382n a>        if2(!2.a href5ref="fs/n5s/nls_euc-jp.c#L373" ido5L373"57=sjisa href=voidode=wchar_t" cla__exioindexn a>][1];exio_int2.a _j""+codvoidd">2413./a>o2395n a>                .a hr5uc-jp.c#L575" ido1L375" class="lin5" nam571L295" class=/e=wchar_t" classregisterido50Ouc-jp.c#L345"ssregisterido5"+cod EF))13" ido1L413" ctablef">euc2sjisibm_tablen_in97">2397n a>                if2(.5uc-jp.c#L5 extended characlers to 5BM ex575L295" class=/e=wchar_t" classloadido50Ouc-jp.c#L345"ssloadido5"+codls_euc-jp.c#L41 ido50Ouc-jp.c#L345" ido51L4117">2397n a>                if2(.5uef="fs/n5ass="sref">inlinen a> in52.a h57lass=a">2408n a>o2408n a>oindexn a>][1];inio_int2.a _j""+cod">2413./a>oindexn a>][1];exio_int2.a _j""+cod">2413./a>ocountn a>5o2401n a>        .a href="+cod5uc-jp.c#L582" ido1L382" class="lin5" nam58o1L41/4" ido1L354" cMODULE_LICENSEef">sjisn a>, .MODULE_LICENSE"+codlharaclers */stringc>"Dual BSD/GPL"io1L37697">2397n a>                if2(.5"+code=IS5SJIS_NECIBM" class="sref5>IS_S5IS_NEC


The original LXR software by the >2397n a>http://sourceforge.net/projects/lxr">LXR ./spunioy="fs, this expsripa=val version by >2397n a>mailto:lxr@" cux.no5"lxr@" cux.non_in.
lxr." cux.no kindly hosted by >2397n a>http://www.redpill-" cpro.no5"Redpill L cpro AS="fs, provider of L cux on aultingnandhopsrhren a servicea since 1995.