Lines Matching refs:whatcode
91 static int whatcode = ASCII; in DetectKanjiCode() local
99 if (whatcode != EUCORSJIS && whatcode != ASCII) in DetectKanjiCode()
101 oldcode = whatcode; in DetectKanjiCode()
102 whatcode = ASCII; in DetectKanjiCode()
105 while ((whatcode == EUCORSJIS || whatcode == ASCII) && c != '\0') in DetectKanjiCode()
116 whatcode = NEW; in DetectKanjiCode()
118 whatcode = OLD; in DetectKanjiCode()
124 whatcode = ESCI; in DetectKanjiCode()
127 whatcode = NEC; in DetectKanjiCode()
130 whatcode = SJIS; in DetectKanjiCode()
135 whatcode = SJIS; in DetectKanjiCode()
137 whatcode = EUCORSJIS; in DetectKanjiCode()
143 whatcode = EUC; in DetectKanjiCode()
145 whatcode = EUCORSJIS; in DetectKanjiCode()
148 whatcode = EUCORSJIS; in DetectKanjiCode()
149 while (c >= 64 && c != '\0' && whatcode == EUCORSJIS) in DetectKanjiCode()
154 whatcode = SJIS; in DetectKanjiCode()
156 whatcode = EUC; in DetectKanjiCode()
162 whatcode = SJIS; in DetectKanjiCode()
165 whatcode = EUC; in DetectKanjiCode()
170 whatcode = SJIS; in DetectKanjiCode()
172 whatcode = EUC; in DetectKanjiCode()
174 whatcode = EUCORSJIS; in DetectKanjiCode()
180 if (whatcode == ASCII) in DetectKanjiCode()
182 else if (whatcode == EUCORSJIS) in DetectKanjiCode()
188 if (whatcode == EUCORSJIS && oldcode != ASCII) in DetectKanjiCode()
189 whatcode = oldcode; in DetectKanjiCode()
191 if (whatcode == EUCORSJIS) in DetectKanjiCode()
208 whatcode = SJIS; in DetectKanjiCode()
211 whatcode = SJIS; in DetectKanjiCode()
213 whatcode = EUC; in DetectKanjiCode()
218 if (whatcode == EUCORSJIS) in DetectKanjiCode()
220 whatcode = SJIS; in DetectKanjiCode()
222 whatcode = EUC; in DetectKanjiCode()
225 return whatcode; in DetectKanjiCode()