Simple and traditional Code Conversion

Source: Internet
Author: User
1 Using System;
2 Using System. collections;
3
4 Namespace Faibclass. Chinese
5 {
6 /**/ /// <Summary>
7///Chinese character encoding conversion class,
8///Design by faib studio.
9/// </Summary>
10 Public   Class Hzcoding
11 {
12 /**/ /// <Summary>
13///Chinese character encoding.
14/// </Summary>
15 Public   Enum Codingconsts: Int
16 {
17 /**/ /// <Summary>
18///Simplified.
19/// </Summary>
20 Simplified = 0 ,
21 /**/ /// <Summary>
22///Traditional Chinese.
23/// </Summary>
24 Traditional = 1
25 }
26
27 Private   String [] Hz = New   String [ 2 ];
28
29 Public Hzcoding ()
30 {
31 Hz [ 0 ] = @" No matter whether you love or not, or whether you want to defeat or not, issue a ticket to help you bind a pound, slander, peel off the treasure, report, Bao, Bei, And bei, prepare your pen, and close the coin. drag the logo, don't trash the neighborhood, Bin, and dial the pot platinum barge Bu make up the money, the silkworm residue, miserable can Cang cabin, Cang, toilet, side volume test layer, mixed with cicada, and tangle shovel production explanation trembling farm taste long compensation sausage factory Chang Qian Che Chen Shen lining support said Cheng Chi shame tooth Chong insects pet domain raised silk ugly cupboard kitchen knife chu Foundation store touchpoint transfer sore Chuang hammer pure words give Cong onion from the cluster together to escape the mistake to bring a loan to bear a single letter to bear the courage to give birth to the bullet when the dang island prayer guide stealing lamp Deng enemy di Ding Dian fishing tune stacking stacked Dingding ingot order lost Dong frozen douxiao single read gambling plating forging broken satin against the team tons the amount of yundun yin Feng Fu negative wife bound the calcium cover dry catch stem Gan Gang gang Gao Piao put pigeon pavilion chrome to Yao Gong Gou structure purchase enough gu Yu Guan Guang GUI Si GUI huai Huan HUan Huang lie hui 中 level squeeze a few Ji jijia pod cheek Jia K price Jian jian splash will pulp Jiang paddle Award Lecture sauce gum pouring arrogant stir hinge correction foot dumplings handed twisted sedan than straw stage stem whale Jing the net correction of the old horse lifting according to the saw fear drama jie session tight Jin only Jin do Jing Jue Jun Kai kai shell course Ken Shu Library pants boast block wide ore Kuang que feed burst expanded wide wax lailai Lai LAN Lang abuse fishing le Lei class li Lian Liang Xiao Xi Liao Ling Lin Li Lian ling Lu filter the Green Mountains and the chaos of the Round Lun on the Luo Yu Luo Ma code Ma scold? Buy Mai Yu very full of cats the anchor or-free door of the moles of the anchor-free door refers to the maging of the moles of the Daman temple, and the moles of the moles and moles the moles of the mu. niigniao Niigata qiqi Qi Wei Qian Qi Qian please celebrate the Qing Qiong poor community, the body drive, The Right to persuade magpie really let the Rao disturbing around the hot tough recognize Rong soft grui, the run, the SA Gill game, the umbrella, the sorrow sweep killing screens, drying, deletion, Flash, Shaanxi, Sichuan, injury, reward, burning, Shao, photo, deterrent, Shen, Shi shou Shu redemption belongs to SHU Shu Shuai Shuang who tax Shun said shuosi feeding Song litigation song Su sued su although with Sui's sun loss bamboo shoots shrink up and down tartan Tuo Tan Tang Tao tang wei Wen Wei Wu Wei xi Xia Xi Xian Xiang xiao Xie xin XU Xu Xuan Xun pressure crow duck dumb yanyan Yang sample Yaoyao Yao Ye yi yi Yin Ying Yong Yu yuanyuan Yuan, a member of yuyu Yu Yue Yun miscellaneous disaster recovery chunking jujube stove responsibility selection ze thief gift Zha Rolling Brake gate fraud Zhai debt felt throw rolling stack war Zhang account expansion Zhao Zhe zhe ge this Zhen needle Investigation zhen Yuan Zheng Zhiwei job holding paper throw quality lag Bell final kinds of swollen public Piao axis wrinkle day sudden pig candle vision Zhu storage casting build zhuzhuan brick turn to earn a pile Zhuang makeup Zhuang-like cone pendant with dirty Zizi resource stains tracking total vertical growth groups Drill" ;
32 Hz [ 1 ] = @" I have been reading this article. I have been reading this article for some technical support. standards standards do not allow legal disclaimer and legal disclaimer when there are legal provisions when there are legal disclaimer our senior vice president of our field has been driving a wide range of vehicles, including our large numbers of vehicles. zookeeper and zookeeper have been added to the website. there are just a number of large numbers of computer science and technology companies. in addition, there have been several large numbers of small numbers of large numbers of small numbers please refer to the following link for more information: alibaba Cloud's structure is as follows: Alibaba Cloud's standards and regulations are as follows: later, I have been talking about the problem, but I still have been talking about the problem. I have been talking about the problem. the host cannot be accessed immediately after the attack. please refer to the following link for more information: please refer to the following statements for some time: Please wait a few minutes later. Please try again later. Please try again later. please refer to the following link for more information: zookeeper has been used in many cases. please refer to the following link for more information: there are two ways to solve the problem: why is there a large number of concurrent users? Why is there no such problem? please refer to the following link for more information: there are two major reasons for this problem: please refer to the following link for more information: zookeeper zookeeper when reading this article, I was informed that some real-time experience has been reported when reading this article. when reading this article, I was notified of the number of such problems. there are too many problems when they occur. Please tell them that there are too many problems when they occur. in some cases, I have been hearing from some technical experts who have been reading this article. please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: there are two major problems in these cases, such as the number of large numbers of users in the industry and the number of users in the industry. please refer to the following link for more information: zookeeper has been reported by our staff, and has been released in the near future. zookeeper has been released in the near future. in this case, we will continue to improve the performance of our competitors. please refer to the certificate provided by Alibaba Cloud. Please refer to the following link for more information: according to the Alibaba Cloud official website, Alibaba Cloud's senior vice president of the Alibaba Cloud website" ;
33 }
34
35 /**/ ///   <Summary>
36 /// Simplified and traditional Chinese characters are interchangeable.
37 ///   </Summary>
38 ///   <Param name = "hzstring"> The input Chinese characters. </Param>
39 ///   <Param name = "coding"> The converted encoding. </Param>
40 ///   <Returns> </returns>
41 Public   String Convert ( String Hzstring, codingconsts coding)
42 {
43 String RET = "" ;
44 Foreach ( Char C In Hzstring)
45 {
46 Int B = (( Int ) Coding) = 0 ? 1 : 0 ;
47 Int I = Hz [B]. indexof (C );
48 If (I > 0 )
49 RET + = Hz [( Int ) Coding]. substring (I, 1 );
50 Else
51 RET + = C. tostring ();
52 }
53 Return RET;
54 }
55 }
56 }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.