Lines Matching refs:whatcode
90 static int whatcode = ASCII; in DetectKanjiCode() local
98 if (whatcode != EUCORSJIS && whatcode != ASCII) in DetectKanjiCode()
100 oldcode = whatcode; in DetectKanjiCode()
101 whatcode = ASCII; in DetectKanjiCode()
104 while ((whatcode == EUCORSJIS || whatcode == ASCII) && c != '\0') in DetectKanjiCode()
115 whatcode = NEW; in DetectKanjiCode()
117 whatcode = OLD; in DetectKanjiCode()
123 whatcode = ESCI; in DetectKanjiCode()
126 whatcode = NEC; in DetectKanjiCode()
129 whatcode = SJIS; in DetectKanjiCode()
134 whatcode = SJIS; in DetectKanjiCode()
136 whatcode = EUCORSJIS; in DetectKanjiCode()
142 whatcode = EUC; in DetectKanjiCode()
144 whatcode = EUCORSJIS; in DetectKanjiCode()
147 whatcode = EUCORSJIS; in DetectKanjiCode()
148 while (c >= 64 && c != '\0' && whatcode == EUCORSJIS) in DetectKanjiCode()
153 whatcode = SJIS; in DetectKanjiCode()
155 whatcode = EUC; in DetectKanjiCode()
161 whatcode = SJIS; in DetectKanjiCode()
164 whatcode = EUC; in DetectKanjiCode()
169 whatcode = SJIS; in DetectKanjiCode()
171 whatcode = EUC; in DetectKanjiCode()
173 whatcode = EUCORSJIS; in DetectKanjiCode()
179 if (whatcode == ASCII) in DetectKanjiCode()
181 else if (whatcode == EUCORSJIS) in DetectKanjiCode()
187 if (whatcode == EUCORSJIS && oldcode != ASCII) in DetectKanjiCode()
188 whatcode = oldcode; in DetectKanjiCode()
190 if (whatcode == EUCORSJIS) in DetectKanjiCode()
207 whatcode = SJIS; in DetectKanjiCode()
210 whatcode = SJIS; in DetectKanjiCode()
212 whatcode = EUC; in DetectKanjiCode()
217 if (whatcode == EUCORSJIS) in DetectKanjiCode()
219 whatcode = SJIS; in DetectKanjiCode()
221 whatcode = EUC; in DetectKanjiCode()
224 return whatcode; in DetectKanjiCode()