Lines Matching refs:whatcode
88 static int whatcode = ASCII; in DetectKanjiCode() local
96 if (whatcode != EUCORSJIS && whatcode != ASCII) in DetectKanjiCode()
98 oldcode = whatcode; in DetectKanjiCode()
99 whatcode = ASCII; in DetectKanjiCode()
102 while ((whatcode == EUCORSJIS || whatcode == ASCII) && c != '\0') in DetectKanjiCode()
113 whatcode = NEW; in DetectKanjiCode()
115 whatcode = OLD; in DetectKanjiCode()
121 whatcode = ESCI; in DetectKanjiCode()
124 whatcode = NEC; in DetectKanjiCode()
127 whatcode = SJIS; in DetectKanjiCode()
132 whatcode = SJIS; in DetectKanjiCode()
134 whatcode = EUCORSJIS; in DetectKanjiCode()
140 whatcode = EUC; in DetectKanjiCode()
142 whatcode = EUCORSJIS; in DetectKanjiCode()
145 whatcode = EUCORSJIS; in DetectKanjiCode()
146 while (c >= 64 && c != '\0' && whatcode == EUCORSJIS) in DetectKanjiCode()
151 whatcode = SJIS; in DetectKanjiCode()
153 whatcode = EUC; in DetectKanjiCode()
159 whatcode = SJIS; in DetectKanjiCode()
162 whatcode = EUC; in DetectKanjiCode()
167 whatcode = SJIS; in DetectKanjiCode()
169 whatcode = EUC; in DetectKanjiCode()
171 whatcode = EUCORSJIS; in DetectKanjiCode()
177 if (whatcode == ASCII) in DetectKanjiCode()
179 else if (whatcode == EUCORSJIS) in DetectKanjiCode()
185 if (whatcode == EUCORSJIS && oldcode != ASCII) in DetectKanjiCode()
186 whatcode = oldcode; in DetectKanjiCode()
188 if (whatcode == EUCORSJIS) in DetectKanjiCode()
205 whatcode = SJIS; in DetectKanjiCode()
208 whatcode = SJIS; in DetectKanjiCode()
210 whatcode = EUC; in DetectKanjiCode()
215 if (whatcode == EUCORSJIS) in DetectKanjiCode()
217 whatcode = SJIS; in DetectKanjiCode()
219 whatcode = EUC; in DetectKanjiCode()
222 return whatcode; in DetectKanjiCode()