CREATE OR REPLACE fuNCtion ODSSU.getpy( chnstr in char) return vaRCHar2 Is
pyi number;
len number;
no number;
py varchar2(200);
str varchar2(200);
ch1 varchar2(200);
pystr varchar2(200);
gbk2 long;
gbk3 long;
gbk4 long;
high8 number;
low8 number;
ascno number;
begin
gbk2 :=
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbp'||
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbpbbbbbbbbbbbbbbbbbb'||
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'||
'pbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'||
'bbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccc'||
'ccccccccccccccccccccccccccccccccccczcccccccccccccc'||
'ccccccccccccccccccccccccccccccccccccsccccccccccccc'||
'cccccccccccccccccccccccccccccccccccccccccczccccccc'||
'cccccccccccccccccccccccccccccccccccccccccccccccccc'||
'cccddddddddddddddddddddddddddddddddddddddddddddddd'||
'dddddddddddddddddddddzdddddddddddddddddddddddddddd'||
'dddddddddddddddddddddddddddddddtdddddddddddddddddd'||
'dddddddddddddddddddddddddddddddddddddeeeeeeeeeeeee'||
'eeeeeeeeefffffffffffffffffffffffffffffffffffffffff'||
'ffffffffffffffffffffffffffffffffffffffffffffffffff'||
'fffffffffffffpffffffffffffffffffffgggggggggggggggg'||
'ggggggggggggggggggghggggggggggggghgggggggggggggggg'||
'gggggggggggggggggggggggggggggggggggggggggggggggggg'||
'ggggggggggggggggggggggggggggggggggggggghhhhhhhhhhh'||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhmhhhhhhhhhhh'||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'||
'hhhhhhhhhhhhhhhhhhhhjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'||
'jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'||
'jjjjjjjjjjjjjjkjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'||
'jjjjjjjyjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'||
'jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'||
'jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'||
'jjjjjjjjjjjjjjjkkkgkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkh'||
'kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk'||
'kkkkkkkkkkkkkkklllllllllllllllllllllllllllllllllll'||
'llllllllllllllllllllllllllllllllllllllllllllllllll'||
'llllllllllllllllllllllllllllllllllllllllllllllllll'||
'llllllllllllllllllllllllllllllllllllllllllllllllll'||
'llllllllllllllllllllllllllllllllllllllllllllllllll'||
'lllllllllllllmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm'||
'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm'||
'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm'||
'mmmmmmmmmmmmmmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn'||
'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnooooo'||
'oooppppppppppppppppppppppppppppppppppppppppppppppp'||
'pppppppppppppppppppppppppppppppppppppppppppppppppp'||
'ppppppppppppppppppppppppbqqqqqqqqqqqqqqqqqqqqqqqqq'||
'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'||
'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'||
'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrr'||
'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrsssssssss'||
'ssssssssssssssssssssssssssssssssssssssssssssssssss'||
'ssssssssssssssssssssssssssssssssssssssssssssssssss'||
'ssssssssssssssssssssssssssssssssssssssssssssssssss'||
'ssssssssssssssssssssssssssssssssssssssssssssssssss'||
'sssssssssssssssssssssssssssssssssssssssssssssssssx'||
'sssssssssssssssssssssssssssttttttttttttttttttttttt'||
'tttttttttttttttttttttttttttttttttttttttttttttttttt'||
'tttttttttttttttttttttttttttttttttttttttttttttttttt'||
'tttttttttttttttttttttttttttttttttwwwwwwwwwwwwwwwww'||
'wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww'||
'wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww'||
'wwwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsx'||
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'||
'xxxxxxxxxxxxxxxxxxxxxjxxxxxxxxxxxxxxxxxxxxxxxxxxxx'||
'xxxxxhxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxcxxxxxxxxx'||
'xxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyy'||
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'||
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'||
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'||
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'||
'yyyyyyyyyyyyyyyyyyyyyyyyxyyyyyyyyyyyyyyyyyyyyyyyyy'||
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyzzzzzzzzzzzzzzzzzz'||
'zzzzzzzzzzzzzzzzzzzzzczzzzzzzzzzzzzzzzzzzzzzzzzzzz'||
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'||
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'||
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'||
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'||
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'||
'zzzzz cjwgnspgcgnesypbtyyzdxykygtdjnnjqmbsjzsc'||
'yjsyyfpgkbzgylywjkgkljywkpjqhytwddzlsymrypywwcckzn'||
'kyygttngjnykkzytcjnmcylqlypysfqrpzslwbtgkjfyxjwzlt'||
'bncxjjjjtxdttsqzycdxxhgckbphffsswybgmxlpbylllhlxst'||
'zmyjhsojnghdzqyklgjhsgqzhxqgkxzzwyscscjxyeyxadzpmd'||
'ssmzjzqjyzcdjzwqjbyzbjgznzcpwhwxhqkmwfbpbydtjzzkxx'||
'ylygxfptyjyyzpszlfchmqshgmxxsxjyqdcsbbqbefsjyhxwgz'||
'kpylqbgldlcdtnmaeddkssngycsgxlyzaypnptsdkdylhgymyl'||
'cxpycjndqjwxqxfyyfjlejpzrxccqwqqsbzkymgplbmjrqcfln'||
'ymyqmtqyrbcjthztqfrxqhxmqjcjlyxgjmshzkbswyemyltxfs'||
'ydsglycjqxsjnqbsctyhbftdcyjdjyyghqfsxwckqkxebptlpx'||
'jzsrmebwhjlpjslyysmdxlclqkxlhxjrzjmfqhxhwywsbhtrxx'||
'glhqhfnmgykldyxzpylggtmtcfpnjjzyljtyanjgbjplqgszyq'||
'yaxbkysecjsznslyzhzxlzcghpxzhznytdsbcjkdlzayfmytle'||
'bbgqyzkggldndnyskjshdlyxbcgyxypkdjmmzngmmclgezszxz'||
'jfznmlzzthcsydbdllscddnlkjykjsycjlkwhqasdknhcsgaeh'||
'daashtcplcpqybsdmpjlpzjoqlcdhjxysprchnwjnlhlyyqyhw'||
'zptczgwwmzffjqqqqyxaclbhkdjxdgmmydqxzllsygxgkjrywz'||
'wyclzmssjzldbydcpcxyhlxchyzjqsfqagmnyxpfrkssbjlyxy'||
'syglnscmhcwwmnzjjlxxhchsyzsttxrycyxbyhcsmxjsznpwgp'||
'xxtaybgajcxlysdccwzocwkccsbnhcpdyznfcyytyckxkybsqk'||
'kytqqxfcwchcykelzqbsqyjqcclmthsywhmktlkjlycxwheqqh'||
'tqkjpqsqscfymmdmgbwhwlgsllystlmlxpthmjhwljzyhzjxht'||
'xjlhxrswlwzjcbxmhzqxsdzpsgfcsglsxymqshxpjxwmyqksmy'||
'plrthbxftpmhyxlchlhlzylxgsssstclsldclrpbhzhxyyfhbb'||
'gdmycnqqwlqhjjzywjzyejjdhpblqxtqkwhlchqxagtlxljxms'||
'ljhtzkzjecxjcjnmfbycsfywybjzgnysdzsqyrsljpclpwxsdw'||
'ejbjcbcnaytwgmpapclyqpclzxsbnmsggfnzjjbzsfzyndxhpl'||
'qkzczwalsbccjxjyzgwkypsgxfzfcdkhjgxtlqfsgdslqwzkxt'||
'mhsbgzmjzrglyjbpmlmsxlzjqzhzyjczydjwfmjklddpmjegxy'||
'hylxhlqyqhkycwcjmyyxnatjhyccxzpcqlbzwwytwsqcmlpmyr'||
'jcccxfpznzzljplxxyztzlgdltcklyrzzgqtkjhhgjljaxfgfj'||
'zslcfdqzlclgjdjcsnzlljpjqdcclcjxmyzftsxgcgsbrzxjqq'||
'ctzhgyqtjqqlzxjylylncyamcstylpdjbyregklzyzhlyszqlz'||
'nwczcllwjqjjjkdgjzolbbzppglghtgzxyjhzmycnqsycyhbhg'||
'xkamtxyxnbskyzzgjzlqjtfcjxdygjqjjpmgwgjjjpkqsbgbmm'||
'cjssclpqpdxcdyykyfcjddyygywrhjrtgznyqldkljszzgzqzj'||
'gdykshpzmtlcpwnjyfyzdjcnmwescyglbtzcgmssllyxqsxxbs'||
'jsbbsgghfjlypmzjnlyywdqshzxtyywhmcyhywdbxbtlmsyyyf'||
'sxjchtxxlhjhfssxzqhfzmzcztqcxzxrttdjhnnyzqqmtqdmmz'||
' ytxmjgdxcdyzbffallztdltfxmxqzdngwqdbdczjdxbzgsqqd'||
'djcmbkzffxmkdmdsyyszcmljdsynsprskmkmpcklgdbqtfzswt'||
'fgglyplljzhgjjgypzltcsmcnbtjbqfkdhpyzgkpbbymtdssxt'||
'bnpdkleycjnyddykzddhqhsdzsctarlltkzlgecllkjlqjaqnb'||
'dkkghpjxzqksecshalqfmmgjnlyjbbtmlyzxdxjpldlpcqdhzy'||
'cbzsczbzmsljflkrzjsnfrgjhxpdhyjybzgdlqcsezgxlblhyx'||
'twmabchecmwyjyzlljjyhlgbdjlslygkdzpzxjyyzlwcxszfgw'||
'yydlyhcljscmbjhblyzlycblydpdqysxqzbytdkyxlyycnrjmp'||
'dqgklcljbcxbjddbblblczqrppxjcjlzcshltoljnmdddlngka'||
'thqhjhykheznmshrphqqjchgmfprxhjgdychgklyrzqlcyqjnz'||
'sqtkqjymszxwlcfqqqxyfggyptqwlmcrnfkkfsyylybmqammmy'||
'xctpshcptxxzzsmphpshmclmldqfyqxszyjdjjzzhqpdszglst'||
'jbckbxyqzjsgpsxqzqzrqtbdkwxzkhhgflbcsmdldgdzdblzyy'||
'cxnncsybzbfglzzxswmsccmqnjqsbdqsjtxxmbltxcclzshzcx'||
'rqjgjylxzfjphymzqqydfqjqlzznzjcdgzygztxmzysctlkpht'||
'xhtlbjxjlxscdqxcbbtjfqzfsltjbtkqbxxjjljchczdbzjdcz'||
'jdcprnpqcjpfczlclzxzdmxmphjsgzgszzqlylwtjpfsyaxmcj'||
'btzyycwmytzsjjlqcqlwzmalbxyfbpnlsfhtgjwejjxxglljst'||
'gshjqlzfkcgnndszfdeqfhbsaqtgylbxmmygszldydqmjjrgbj'||
'tkgdhgkblqkbdmbylxwcxyttybkmrtjzxqjbhlmhmjjzmqasld'||
'cyxyqdlqcafywyxqhz';
gbk3 :=
'ksxsm sdqlybjjjgczbjfya jhphsyzgj sn xy ng'||
' lggllyjds yssgyqyd xjyydldwjjwbbftbxthhbczcrfm'||
'qwyfcwdzpyddwyxjajpsfnzyjxxxcxnnxxzzbpysyzhmzbqbzc'||
'ycbxqsbhhxgfmbhhgqcxsthlygymxalelccxzrcsd njjtzzcl'||
'jdtstbnxtyxsgkwyflhjqspxmxxdc lshxjbcfybyxhczbjyzl'||
'wlcz gtsmtzxpqglsjfzzlslhdzbwjncjysnycqrzcwybtyftw'||
'ecskdcbxhyzqyyxzcffzmjyxxsdcztbzjwszsxyrnygmdthjxs'||
'qqccsbxrytsyfbjzgclyzzbszyzqscjhzqydxlbpjllmqxtydz'||
'sqjtzplcgqtzwjbhcjdyfxjelbgxxmyjjqfzasyjnsydk jcjs'||
'zcbatdclnjqmwnqncllkbybzzsyhjqltwlccxthllzntylnzxd'||
'dtcenjyskkfksdkghwnlsjt jymrymzjgjmzgxykymsmjklfxm'||
'tghpfmqjsmtgjqdgyalcmzcsdjlxdffjc f ffkgpkhrcjqcj'||
'dwjlfqdmlzbjjscgckdejcjdlzyckscclfcq czgpdqzjj hdd'||
'wgsjdkccctllpskghzzljlgjgjjtjjjzczmlzyjkxzyzmljkyw'||
'xmkjlkjgmclykjqlblkmdxwyxysllpsjqjqxyqfjtjdmxxllcr'||
'qyjb xgg pjygegdjgnjyjkhqfqzkhyghdgllsdjjxkyoxnzsx'||
'wwxdcskxxjyqscsqkjexsyzhydz ptqyzmtstzfsyldqagylcq'||
'lyyyhlrq ldhsssadsjbrszxsjyrcgqc hmmxzdyohycqgphhy'||
'nxrhgjlgwqwjhcstwasjpmmrdsztxyqpzxyhyqxtpbfyhhdwzb'||
'txhqeexzxxkstexgltxydn hyktmzhxlplbmlsfhyyggbhyqt'||
'xwlqczydqdq gd lls zwjqwqajnytlxanzdecxzwwsgqqdyzt'||
'chyqzlxygzglydqtjtadyzzcwyzymhyhyjzwsxhzylyskqysbc'||
'yw xjzgtyxqsyhxmchrwjpwxzlwjs sgnqbalzzmtjcjktsax'||
'ljhhgoxzcpdmhgtysjxhmrlxjkxhmqxctxwzbkhzccdytxqhlx'||
'hyx syydz znhxqyaygypdhdd pyzndltwxydpzjjcxmtlhbyn'||
'yymhzllhnmylllmdcppxmxdkycydltxchhznaclcclylzsxzjn'||
'zln lhyntkyjpychegttgqrgtgyhhlgcwyqkpyyyttttlhylly'||
'ttplkyzqqzdq nmjzxyqmktfbjdjjdxbtqzgtsyflqgxblzfh'||
' zadpmjhlccyhdzfgydgcyxs hd d axxbpbyyaxcqffqyjxdl'||
'jjzl bjydyqszwjlzkcdtctbkdyzdqjnkknjgyeglfykasntch'||
'blwzbymjnygzyheyfjmctyfzjjhgck lxhdwxxjkyykssmwctq'||
'zlpbzdtwzxzag kwxl lspbclloqmmzslbczzkdcz xgqqdcyt'||
'zqwzqssfpktfqdcdshdtdwfhtdy jaqqkybdjyxtlj drqxxxa'||
'ydrjlklytwhllrllcxylbw z zzhkhxksmdsyyjpzbsqlcxxn'||
'xwmdq gqmmczjgttybhyjbetpjxdqhkzbhfdxkawtwajldyjsf'||
'hblddqjncxfjhdfjjwzpkzypcyzynxff ydbzznytxzembsehx'||
'fzmbflzrsymzjrdjgxhjgjjnzzxhgxhymlpeyyxtgqshxssxmf'||
'mkcctxnypszhzptxwywxyysljsqxzdleelmcpjclxsqhfwwtff'||
'tnqjjjdxhwlyznflnkyyjldx hdynrjtywtrmdrqhwqcmfjdyz'||
'hmyyxjwzqtxtlmrspwwchjb xygcyyrrlmpymkszyjrmysntpl'||
'nbpyyxmykyngjzznlzhhanmpgwjdzmxxmllhgdzxyhxkrycjmf'||
'fxyhjfssqlxxndyca nmtcjcyprrnytyqym sxndlylyljnlxy'||
'shqmllyzljzxstyzsmcqynzlxbnnylrqtryyjzzhsytxcqgxzs'||
'shmkczyqhzjnbh qsnjnzybknlqhznswxkhjyybqlbfl p bkq'||
'zxsddjmessmlxxkwnmwwwydkzggtggxbjtdszxnxwmlptfxlcx'||
'jjljzxnwxlyhhlrwhsc ybyawjjcwqqjzzyjgxpltzftpakqpt'||
'lc xtx hklefdleegqymsawhmljtwyqlyjeybqfnlyxrdsctg'||
'gxyyn kyqctlhjlmkkcgygllldzydhzwpjzkdyzzhyyfqytyzs'||
'ezzlymhjhtwyzlkyywzcskqqtdxwctyjklwqbdqyncs szjlkc'||
'dcdtlzzacqqzzddxyplxzbqjylzllqdzqgyjyjsyxnyyynyjxk'||
'xdazwrdljyyynjlxllhxjcykynqcclddnyyykyhhjcl pb qzz'||
'yjxj fzdnfpzhddwfmyypqjrssqzsqdgpzjwdsjdhzxwybp gp'||
'tmjthzsbgzmbjczwbbzmqcfmbdmcjxljbgjtz mqdyxjzyctyz'||
'tzxtgkmybbcljssqymscx jeglxszbqjjlyxlyctsxmcwfa kb'||
'qllljyxtyltxdphnhfqyzyes sdhwdjbsztfd czyqsyjdzjqp'||
'bs j fbkjbxtkqhmkwjjlhhyyyyywyycdypczyjzwdlfwxwzzj'||
'cxcdjzczlxjjtxbfwpxzptdzbccyhmlxbqlrtgrhqtlf mwwjx'||
'jwcysctzqhxwxkjybmpkbnzhqcdtyfxbyxcbhxpsxt m sxlhk'||
'mzxydhwxxshqhcyxglcsqypdh my ypyyykzljqtbqxmyhcwll'||
'cyl ewcdcmlggqktlxkgndgzyjjlyhqdtnchxwszjydnytcqcb'||
'hztbxwgwbxhmyqsycmqkaqyncs qhysqyshjgjcnxkzycxsbxx'||
'hyylstyxtymgcpmgcccccmztasgqzjlosqylstmqsqdzljqqyp'||
'lcycztcqqpbqjclpkhz yyxxdtddsjcxffllxmlwcjcxtspyxn'||
'dtjsjwxqqjskyylsjhaykxcyydmamdqmlmczncybzkkyflmcsc'||
'lhxrcjjgslnmtjzzygjddzjzk qgjyyxzxxqhheytmdsyyyqlf'||
' zzdywhscyqwdrxqjyazzzdywbjwhyqszywnp azjbznbyzzy'||
'hnscpjmqcy zpnqtbzjkqqhngccxchbzkddnzhjdrlzlsjljyx'||
'ytbgtcsqmnjpjsrxcfjqhtpzsyjwbzzzlstbwwqsmmfdwjyzct'||
'bwzwqcslqgdhqsqlyzlgyxydcbtzkpj gm pnjkyjynhpwsnsz'||
'zxybyhyzjqjtllcjthgdxxqcbywbwzggqrqzssnpkydznxqxjm'||
'y dstzplthzwxwqtzenqzw ksscsjccgptcslccgllzxczqthn'||
'jgyqznmckcstjskbjygqjpldxrgzyxcxhgdnlzwjjctsbcjxbf'||
'zzpqdhjtywjynlzzpcjdsqjkdxyajyemmjtdljyryynhjbngzj'||
'kmjxltbsllrzylcscnxjllhyllqqqlxymswcxsljmc zlnsdwt'||
'jllggjxkyhbpdkmmscsgxjcsdybxdndqykjjtxdygmzzdzslo '||
'yjsjzdlbtxxxqqjzlbylwsjjyjtdzqqzzzzjlzcdzjhpl qplf'||
'fjzysj zfpfzksyjjhxttdxcysmmzcwbbjshfjxfqhyzfsjybx'||
'pzlhmbxhzxfywdab lktshxkxjjzthgxh jxkzxszzwhwtzzzs'||
'nxqzyawlcwxfxyyhxmyyswqmnlycyspjkhwcqhyljmzxhmcnzh'||
'hxcltjplxyjhdyylttxfszhyxxsjbjyayrmlckd yhlrlllsty'||
'zyyhscszqxkyqfpflk ntljmmtqyzwtlll s rbdmlqjbcc qy'||
'wxfzrzdmcyggzjm mxyfdxc shxncsyjjmpafyfnhyzxyezy '||
'sdl zztxgfmyyysnbdnlhpfzdcyfssssn zzdgpafbdbzszbsg'||
'cyjlm z yxqcyxzlckbrbrbzcycjzeeyfgzlyzsfrtkqsxdcm'||
'z jl xscbykjbbrxllfqwjhyqylpzdxczybdhzrbjhwnjtjxl'||
'kcfssdqyjkzcwjl b tzlltlqblcqqccdfpphczlyygjdgwcf'||
'czqyyyqyrqzslszfcqnwlhjcjjczkypzzbpdc jgx gdz f'||
'gpsysdfwwjzjyxyyjyhwpbygxrylybhkjksftzmmkhtyysyyzp'||
'yqydywmtjjrhl tw bjycfnmgjtysyzmsjyjhhqmyrszwtr'||
'tzsskx gqgsptgcznjjcxmxgzt ydjz lsdglhyqgggthszpyj'||
'hhgnygkggmdzylczlxqstgzslllmlcskbljzzsmmytpzsqjcj '||
' zxzzcpshkzsxcdfmwrllqxrfzlysdctmxjthjntnrtzfqyhqg'||
'llg sjdjj tqjlnyhszxcgjzypfhdjspcczhjjjzjqdyb ss'||
'lyttmqtbhjqnnygjyrqyqmzgcjkpd gmyzhqllsllclmholzgd'||
'yyfzsljc zlylzqjeshnylljxgjxlyjyyyxnbzljsszcqqzjyl'||
'lzldj llzllbnyl hxxccqkyjxxxklkseccqkkkcgyyxywtqoh'||
'thxpyxx hcyeychbbjqcs szs lzylgezwmysx jqqsqyyycmd'||
'zywctjsycjkcddjlbdjjzqysqqxxhqjohdyxgmajpchcpljsmt'||
'xerxjqd pjdbsmsstktssmmtrzszmldj rn sqxqydyyzbdsln'||
'fgpzmdycwfdtmypqwytjzzqjjrjhqbhzpjhnxxyydyhhnmfcpb'||
'zpzzlzfmztzmyftskyjyjzhbzzygh pzcscsjssxfjgdyzyhzc'||
'whcsexfqzywklytmlymqpxxskqjpxzhmhqyjs cjlqwhmybdhy'||
'ylhlglcfytlxcjscpjskphjrtxteylssls yhxscznwtdwjslh'||
'tqdjhgydphcqfzljlzptynlmjllqyshhylqqzypbywrfy js y'||
'p yrhjnqtfwtwrchygmm yyhsmzhngcelqqmtcwcmpxjjfyysx'||
'ztybmstsyjdtjqtlhynpyqzlcxznzmylflwby jgsylymzctdw'||
'gszslmwzwwqzsayysssapxwcmgxhxdzyjgsjhygscyyxhbbzjk'||
'ssmalxycfygmqyjycxjlljgczgqjcczotyxmtthlwtgfzkpzcx'||
'kjycxctjcyh xsgckxzpsjpxhjwpjgsqxxsdmrszzyzwsykyzs'||
'hbcsplwsscjhjlchhylhfhhxjsx lnylsdhzxysxlwzyhcldyh'||
'zmdyspjtqznwqpsswctst zlmssmnyymjqjzwtyydchqlxkwbg'||
'qybkfc jdlzllyylszydwhxpsbcmljscgbhxlqrljxysdwxzsl'||
'df hlslymjljylyjcdrjlfsyjfnllcqyqfjy szlylmstdjcyh'||
'zllnwlxxygyygxxhhzzxczqzfnwpypkpypmlgxgg dxzzkzfbx'||
'xlzptytswhzyxhqhxxxywzyswdmzkxhzphgchj lfjxptzthly'||
'xcrhxshxkjxxzqdcqyl jlkhtxcwhjfwcfpqryqxyqy gpggsc'||
'sxngkchkzxhflxjbyzwtsxxncyjjmwzjqrhfqsyljzgynslgtc'||
'ybyxxwyhhxynsqymlywgyqbbzljlpsytjzhyzwlrorjkczjxxy'||
'xchdyxyxxjddsqfxyltsfxlmtyjmjjyyxltcxqzqhzlyyxzh n'||
'lrhxjcdyhlbrlmrllaxksllljlxxxlycry lccgjcmtlzllyzz'||
'pcw jyzeckzdqyqpcjcyzmbbcydcnltrmfgyqbsygmdqqzmkql'||
'pgtbqcjfkjcxbljmswmdt ldlppbxcwkcbjczhkphyyhzkzmp'||
'jysylpnyyxdb';
gbk4 :=
'kxxmzjxsttdzxxbzyshjpfxpqbyljqkyzzzwl zgfwyctjxjpy'||
'yspmsmydyshqy zchmjmcagcfbbhplxtyqx djgxdhkxxnbhrm'||
'lnjsltsmrnlxqjyzlsqglbhdcgyqyyhwfjybbyjyjjdpqyapfx'||
'cgjscrssyz lbzjjjlgxzyxyxsqkxbxxgcxpld wetdwwcjmbt'||
'xchxyxxfxllj fwdpzsmylmwytcbcecblgdbqzqfjdjhymcxtx'||
'drmjwrh xcjzylqdyhlsrsywwzjymtllltqcjzbtckzcyqjzqa'||
'lmyhwwdxzxqdllqsgjfjljhjazdjgtkhsstcyjfpszlxzxrwgl'||
'dlzr lzqtgslllllyxxqgdzybphl x bpfd hy jcc dmzpp'||
'z cyqxldozlwdwyythcqsccrsslfzfp qmbjxlmyfgjb m jwd'||
'n mmjtgbdzlp hsymjyl hdzjcctlcl ljcpddqdsznbgzxxcx'||
'qycbzxzfzfjsnttjyhtcmjxtmxspdsypzgmljtycbmdkycsz z'||
'yfyctgwhkyjxgyclndzscyzssdllqflqllxfdyhxggnywyllsd'||
'lbbjcyjzmlhl xyyytdlllb b bqjzmpclmjpgehbcqax hhhz'||
'chxyhjaxhlphjgpqqzgjjzzgzdqybzhhbwyffqdlzljxjpalxz'||
'daglgwqyxxxfmmsypfmxsyzyshdzkxsmmzzsdnzcfp ltzdnmx'||
'zymzmmxhhczjemxxksthwlsqlzllsjphlgzyhmxxhgzcjmhxtx'||
'fwkmwkdthmfzzydkmsclcmghsxpslcxyxmkxyah jzmcsnxyym'||
'mpmlgxmhlmlqmxtkzqyszjshyzjzybdqzwzqkdjlfmekzjpezs'||
'wjmzyltemznplplbpykkqzkeqlwayyplhhaq jkqclhyxxmlyc'||
'cyskg lcnszkyzkcqzqljpmzhxlywqlnrydtykwszdxddntqd'||
'fqqmgseltthpwtxxlwydlzyzcqqpllkcc ylbqqczcljslzjxd'||
'dbzqdljxzqjyzqkzljcyqdypp pqykjyrpcbymxkllzllfqpyl'||
'llmsglcyrytmxyzfdzrysyztfmsmcl ywzgxzggsjsgkdtggzl'||
'ldzbzhyyzhzywxyzymsdbzyjgtsmtfxqyjssdgslnndlyzzlrx'||
'trznzxnqfmyzjzykbpnlypblnzz jhtzkgyzzrdznfgxskgjtt'||
'yllgzzbjzklplzylxyxbjfpnjzzxcdxzyxzggrs jksmzjlsjy'||
'wq yhqjxpjzt lsnshrnypzt wchklpszlcyysjylybbwzpdwg'||
'cyxckdzxsgzwwyqyytctdllxwkczkkcclgcqqdzlqcsfqchqhs'||
'fmqzlnbbshzdysjqplzcd cwjkjlpcmz jsqyzyhcpydsdzngq'||
'mbsflnffgfsm q lgqcyybkjsrjhzldcftlljgjhtxzcszztjg'||
'gkyoxblzppgtgyjdhz zzllqfzgqjzczbxbsxpxhyyclwdqjjx'||
'mfdfzhqqmqg yhtycrznqxgpdzcszcljbhbzcyzzppyzzsgyhc'||
'kpzjljnsc sllxb mstldfjmkdjslxlsz p pgjllydszgql l'||
'kyyhzttnt tzzbsz ztlljtyyll llqyzqlbdzlslyyzyfszs'||
'nhnc bbwsk rbc zm gjmzlshtslzbl q xflyljqbzg st'||
'bmzjlxfnb xjztsfjmssnxlkbhsjxtnlzdntljjgzjyjczxygy'||
'hwrwqnztn fjszpzshzjfyrdjfcjzbfzqchzxfxsbzqlzsgyft'||
'zdcszxzjbqmszkjrhyjzckmjkhchgtxkjqalxbxfjtrtylxjhd'||
'tsjx j jjzmzlcqsbtxhqgxtxxhxftsdkfjhzxjfj zcdlllt'||
'qsqzqwqxswtwgwbccgzllqzbclmqqtzhzxzxljfrmyzflxys x'||
'xjk xrmqdzdmmyxbsqbhgcmwfwtgmxlzpyytgzyccddyzxs g '||
'yjyznbgpzjcqswxcjrtfycgrhztxszzt cbfclsyxzlzqmzlmp'||
' lxzjxslbysmqhxxz rxsqzzzsslyflczjrcrxhhzxq dshjsj'||
'jhqcxjbcynsssrjbqlpxqpymlxzkyxlxcjlcycxxzzlxlll hr'||
'zzdxytyxcxff bpxdgygztcqwyltlswwsgzjmmgtjfsgzyafsm'||
'lpfcwbjcljmzlpjjlmdyyyfbygyzgyzyrqqhxy kxygy fsfsl'||
'nqhcfhccfxblplzyxxxkhhxshjzscxczwhhhplqalpqahxdlgg'||
'gdrndtpyqjjcljzljlhyhyqydhz zczywteyzxhsl jbdgwxpc'||
' tjckllwkllcsstknzdnqnttlzsszyqkcgbhcrrychfpfyrwq'||
'pxxkdbbbqtzkznpcfxmqkcypzxehzkctcmxxmx nwwxjyhlstm'||
'csqdjcxctcnd p lccjlsblplqcdnndscjdpgwmrzclodansyz'||
'rdwjjdbcxwstszyljpxloclgpcjfzljyl c cnlckxtpzjwcyx'||
'wfzdknjcjlltqcbxnw xbxklylhzlqzllzxwjljjjgcmngjdzx'||
'txcxyxjjxsjtstp ghtxdfptffllxqpk fzflylybqjhzbmddb'||
'cycld tddqlyjjwqllcsjpyyclttjpycmgyxzhsztwqwrfzhjg'||
'azmrhcyy ptdlybyznbbxyxhzddnh msgbwfzzjcyxllrzcyxz'||
'lwjgcggnycpmzqzhfgtcjeaqcpjcs dczdwldfrypysccwbxgz'||
'mzztqscpxxjcjychcjwsnxxwjn mt mcdqdcllwnk zgglcczm'||
'lbqjqdsjzzghqywbzjlttdhhcchflsjyscgc zjbypbpdqkxwy'||
'yflxncwcxbmaykkjwzzzrxy yqjfljphhhytzqmhsgzqwbwjdy'||
'sqzxslzyymyszg x hysyscsyznlqyljxcxtlwdqzpcycyppnx'||
'fyrcmsmslxglgctlxzgz g tc dsllyxmtzalcpxjtjwtcyyjb'||
'lbzlqmylxpghdlssdhbdcsxhamlzpjmcnhjysygchskqmc lwj'||
'xsmocdrlyqzhjmyby lyetfjfrfksyxftwdsxxlysjslyxsnxy'||
'yxhahhjzxwmljcsqlkydztzsxfdxgzjksxybdpwnzwpczczeny'||
'cxqfjykbdmljqq lxslyxxylljdzbsmhpsttqqwlhogyblzzal'||
'xqlzerrqlstmypyxjjxqsjpbryxyjlxyqylthylymlkljt llh'||
'fzwkhljlhlj klj tlqxylmbtxchxcfxlhhhjbyzzkbxsdqc j'||
'zsyhzxfebcqwyyjqtzyqhqqzmwffhfrbntpcjlfzgppxdbbztg'||
' gchmfly xlxpqsywmngqlxjqjtcbhxspxlbyyjddhsjqyjxll'||
'dtkhhbfwdysqrnwldebzwcydljtmxmjsxyrwfymwrxxysztzzt'||
'ymldq xlyq jtscxwlprjwxhyphydnxhgmywytzcs tsdlwdcq'||
'pyclqyjwxwzzmylclmxcmzsqtzpjqblgxjzfljjytjnxmcxs c'||
'dl dyjdqcxsqyclzxzzxmxqrjhzjphfljlmlqnldxzlllfypny'||
'ysxcqqcmjzzhnpzmekmxkyqlxstxxhwdcwdzgyyfpjzdyzjzx '||
'rzjchrtlpyzbsjhxzypbdfgzzrytngxcqy b cckrjjbjerzgy'||
' xknsjkljsjzljybzsqlbcktylccclpfyadzyqgk tsfc xdk'||
'dyxyfttyh wtghrynjsbsnyjhkllslydxxwbcjsbbpjzjcjdz'||
'bfxxbrjlaygcsndcdszblpz dwsbxbcllxxlzdjzsjy lyxfff'||
'bhjjxgbygjpmmmpssdzjmtlyzjxswxtyledqpjmygqzjgdblqj'||
'wjqllsdgytqjczcjdzxqgsgjhqxnqlzbxsgzhcxy ljxyxydfq'||
'qjjfxdhctxjyrxysqtjxyebyyssyxjxncyzxfxmsyszxy schs'||
'hxzzzgzcgfjdltynpzgyjyztyqzpbxcbdztzc zyxxyhhsqxsh'||
'dhgqhjhgxwsztmmlhyxgcbtclzkkwjzrclekxtdbcykqqsayxc'||
'jxwwgsbhjyzs csjkqcxswxfltynytpzc czjqtzwjqdzzzqz'||
'ljjxlsbhpyxxpsxshheztxfptjqyzzxhyaxncfzyyhxgnxmywx'||
'tcspdhhgymxmxqcxtsbcqsjyxxtyyly pclmmszmjzzllcogxz'||
'aajzyhjmzxhdxzsxzdzxleyjjzjbhzmzzzqtzpsxztdsxjjlny'||
'azhhyysrnqdthzhayjyjhdzjzlsw cltbzyecwcycrylcxnhzy'||
'dzydtrxxbzsxqhxjhhlxxlhdlqfdbsxfzzyychtyyjbhecjkgj'||
'fxhzjfxhwhdzfyapnpgnymshk mamnbyjtmxyjcthjbzyfcgty'||
'hwphftwzzezsbzegpbmtskftycmhbllhgpzjxzjgzjyxzsbbqs'||
'czzlzccstpgxmjsftcczjz djxcybzlfcjsyzfgszlybcwzzby'||
'zdzypswyjgxzbdsysxlgzybzfyxxxccxtzlsqyxzjqdcztdxzj'||
'jqcgxtdgscxzsyjjqcc ldqztqchqqjzyezwkjcfypqtynlmkc'||
'qzqzbqnyjddzqzxdpzjcdjstcjnxbcmsjqmjqwwjqnjnlllwqc'||
'qqdzpzydcydzcttf znztqzdtjlzbclltdsxkjzqdpzlzntjxz'||
'bcjltqjldgdbbjqdcjwynzyzcdwllxwlrxntqqczxkjld tdgl'||
' lajjkly kqll dz td ycggjyxdxfrskstqdenqmrkq hgkd'||
'ldazfkypbggpzrebzzykyqspegjjglkqzzzslysywqzwfqzylz'||
'zlzhwcgkyp qgnpgblplrrjyxcccyyhsbzfybnyytgzxylxczw'||
'h zjzblfflgskhyjzeyjhlplllldzlyczblcybbxbcbpnnzc r'||
' sycgyy qzwtzdxtedcnzzzty hdynyjlxdjyqdjszwlsh lbc'||
'zpyzjyctdyntsyctszyyegdw ycxtscysmgzsccsdslccrqxyy'||
'elsm xztebblyylltqsyrxfkbxsychbjbwkgskhhjh xgnlycd'||
'lfyljgbxqxqqzzplnypxjyqymrbsyyhkxxstmxrczzywxyhymc'||
'l lzhqwqxdbxbzwzmldmyskfmklzcyqyczqxzlyyzmddz ftqp'||
'czcyypzhzllytztzxdtqcy ksccyyazjpcylzyjtfnyyynrs y'||
'lmmnxjsmyb sljqyldzdpqbzzblfndsqkczfywhgqmrdsxycyt'||
'xnq jpyjbfcjdyzfbrxejdgyqbsrmnfyyqpghyjdyzxgr htk '||
'leq zntsmpklbsgbpyszbydjzsstjzytxzphsszsbzczptqfzm'||
'yflypybbjgxzmxxdjmtsyskkbzxhjcelbsmjyjzcxt mljshrz'||
'zslxjqpyzxmkygxxjcljprmyygadyskqs dhrzkqxzyztcghyt'||
'lmljxybsyctbhjhjfcwzsxwwtkzlxqshlyjzjxe mplprcglt '||
'zztlnjcyjgdtclklpllqpjmzbapxyzlkktgdwczzbnzdtdyqzj'||
'yjgmctxltgcszlmlhbglk njhdxphlfmkyd lgxdtwzfrjejz'||
'tzhydxykshwfzcqshknqqhtzhxmjdjskhxzjzbzzxympagjmst'||
'bxlskyynwrtsqlscbpspsgzwyhtlksssw hzzlyytnxjgmjszs'||
'xfwnlsoztxgxlsmmlbwldszylkqcqctmycfjbslxclzzclxxks'||
'bjqclhjpsqplsxxckslnhpsfqqytxy jzlqldtzqjzdyydjnzp'||
'd cdskjfsljhylzsqzlbtxxdgtqbdyazxdzhzjnhhqbyknxjjq'||
'czmlljzkspldsclbblzkleljlbq ycxjxgcnlcqplzlznjtzlx'||
'yxpxmyzxwyczyhzbtrblxlcczjadjlmmmsssmybhb kkbhrsxx'||
'jmxsdynzpelbbrhwghfchgm klltsjyycqltskywyyhywxbxq'||
'ywbawykqldq tmtkhqcgdqktgpkxhcpthtwthkshthlxyzyyda'||
'spkyzpceqdltbdssegyjq xcwxssbz dfydlyjcls yzyexcyy'||
'sdwnzajgyhywtjdaxysrltdpsyxfnejdy lxllqzyqqhgjhzyc'||
'shwshczyjxllnxzjjn fxmfpycyawddhdmczlqzhzyztldywll'||
'hymmylmbwwkxydtyldjpyw xjwmllsafdllyflb bqtzcqlj'||
'tfmbthydcqrddwr qnysnmzbyytbjhp ygtjahg tbstxkbtzb'||
'kldbeqqhqmjdyttxpgbktlgqxjjjcthxqdwjlwrfwqgwqhckry'||
'swgftgygbxsd wdfjxxxjzlpyyypayxhydqkxsaxyxgskqhykf'||
'dddpplcjlhqeewxksyykdbplfjtpkjltcyyhhjttpltzzcdlsh'||
'qkzjqyste eywyyzy xyysttjkllpwmcyhqgxyhcrmbxpllnqt'||
'jhyylfd fxzpsftljxxjbswyysksflxlpplbbblbsfxyzsylff'||
'fscjds tztryysyffsyzszbjtbctsbsdhrtjjbytcxyje xbne'||
'bjdsysykgsjzbxbytfzwgenhhhhzhhtfwgzstbgxklsty mtmb'||
'yxj skzscdyjrcwxzfhmymcxlzndtdh xdjggybfbnbpthfjaa'||
'xwfpxmyphdttcxzzpxrsywzdlybbjd qwqjpzypzjznjpzjlzt'||
' fysbttslmptzrtdxqsjehbzyj dhljsqmlhtxtjecxslzzspk'||
'tlzkqqyfs gywpcpqfhqhytqxzkrsg gsjczlptxcdyyzss qz'||
'slxlzmycbcqbzyxhbsxlzdltcdjtylzjyyzpzylltxjsjxhlbr'||
'ypxqzskswwwygyabbztqktgpyspxbjcmllxztbklgqkq lsktf'||
'xrdkbfpftbbrfeeqgypzsstlbtpszzsjdhlqlzpmsmmsxlqqnk'||
'nbrddnxxdhddjyyyfqgzlxsmjqgxytqlgpbqxcyzy drj gtdj'||
'yhqshtmjsbwplwhlzffny gxqhpltbqpfbcwqdbygpnztbfzj'||
'gsdctjshxeawzzylltyybwjkxxghlfk djtmsz sqynzggswqs'||
'phtlsskmcl yszqqxncjdqgzdlfnykljcjllzlmzjn scht'||
'hxzlzjbbhqzwwycrdhlyqqjbeyfsjxwhsr wjhwpslmssgztt'||
'ygyqqwr lalhmjtqjcmxqbjjzjxtyzkxbyqxbjxshzssfjlxmx'||
' fghkzszggylcls rjyhslllmzxelgl xdjtbgyzbpktzhkzj'||
'yqsbctwwqjpqwxhgzgdyfljbyfdjf hsfmbyzhqgfwqsyfyjgp'||
'hzbyyzffwodjrlmftwlbzgycqxcdj ygzyyyyhy xdwegazyhx'||
'jlzythlrmgrxxzcl ljjtjtbwjybjjbxjjtjteekhwslj lp'||
'sfyzpqqbdlqjjtyyqlyzkdksqj yyqzldqtgjj js cmraqth'||
'tejmfctyhypkmhycwj cfhyyxwshctxrljhjshccyyyjltktty'||
'tmxgtcjtzaxyoczlylbszyw jytsjyhbyshfjlygjxxtmzyylt'||
'xxypzlxyjzyzyybnhmymdyylblhlsyygqllscxlxhdwkqgyshq'||
'ywljyyhzmsljljxcjjyy cbcpzjmylcqlnjqjlxyjmlzjqlycm'||
'hcfmmfpqqmfxlmcfqmm znfhjgtthkhchydxtmqzymyytyyyzz'||
'dcymzydlfmycqzwzz mabtbcmzzgdfycgcytt fwfdtzqssstx'||
'jhxytsxlywwkxexwznnqzjzjjccchyyxbzxzcyjtllcqxynjyc'||
'yycynzzqyyyewy czdcjyhympwpymlgkdldqqbchjxy '||
' '||
' sypszsjczc cqytsjljjt ';
str := chnstr;
pyi := 1;
py := '';
len := length(str);
while pyi <= len loop
ch1 := substr(str,pyi,1);
ascno := ascii(ch1);
pyi := pyi+1;
if ascno < 129 then
--普通的acsii
py := py||ch1;
else
--GBK字符
if pyi>len+1 then
exit;
end if;
high8 := trunc(ascno/256);
low8 := mod(ascno,256);
if high8 between 129 and 160 then
--查找GBK_3
no := (high8-129)*191+(low8-63);
pystr := substrb(gbk3,no,1);
elsif high8 between 170 and 254 then
if low8 > 160 then
--查找GBK_2
no := (high8-176)*94+(low8-160);
pystr := substrb(gbk2,no,1);
else
--查找GBK_4
no := (high8-170)*97+(low8-63);
pystr := substrb(gbk4,no,1);
end if;
else
--不是GBK汉字
pystr := '';
end if;
py := py||pystr;
end if;
end loop;
return lower(rtrim(py));
end;