• Home
  • Raw
  • Download

Lines Matching refs:status

35     UErrorCode status = U_ZERO_ERROR;  in CharacterEncodingDetector()  local
36 mUtf8Conv = ucnv_open("UTF-8", &status); in CharacterEncodingDetector()
37 if (U_FAILURE(status)) { in CharacterEncodingDetector()
85 UErrorCode status = U_ZERO_ERROR; in detectAndConvert() local
86 UCharsetDetector *csd = ucsdet_open(&status); in detectAndConvert()
117 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert()
119 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
148 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert()
149 ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
162 combinedenc = ucsdet_getName(bestCombinedMatch, &status); in detectAndConvert()
192 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert()
193 ucm = ucsdet_detect(csd, &status); in detectAndConvert()
198 enc = ucsdet_getName(ucm, &status); in detectAndConvert()
200 enc, mNames.getEntry(i), ucsdet_getConfidence(ucm, &status)); in detectAndConvert()
207 status = U_ZERO_ERROR; in detectAndConvert()
208 UConverter *conv = ucnv_open(enc, &status); in detectAndConvert()
209 if (U_FAILURE(status)) { in detectAndConvert()
211 enc, status); in detectAndConvert()
212 status = U_ZERO_ERROR; in detectAndConvert()
213 conv = ucnv_open("ISO-8859-1", &status); in detectAndConvert()
214 if (U_FAILURE(status)) { in detectAndConvert()
231 NULL, NULL, NULL, NULL, TRUE, TRUE, &status); in detectAndConvert()
233 if (U_FAILURE(status)) { in detectAndConvert()
234 ALOGE("ucnv_convertEx failed: %d", status); in detectAndConvert()
289 UErrorCode status = U_ZERO_ERROR; in getPreferred() local
293 const char *encname = ucsdet_getName(ucma[i], &status); in getPreferred()
294 int confidence = ucsdet_getConfidence(ucma[i], &status); in getPreferred()
304 int confidence = ucsdet_getConfidence(matches[0], &status); in getPreferred()
319 status = U_ZERO_ERROR; in getPreferred()
320 const char *encname = ucsdet_getName(matches[i], &status); in getPreferred()
321 int confidence = ucsdet_getConfidence(matches[i], &status); in getPreferred()
340 status = U_ZERO_ERROR; in getPreferred()
341 UConverter *conv = ucnv_open(encname, &status); in getPreferred()
343 if (U_FAILURE(status)) { in getPreferred()
344 ALOGV("failed to open %s: %d", encname, status); in getPreferred()
350 status = U_ZERO_ERROR; in getPreferred()
360 UChar32 c = ucnv_getNextUChar(conv, &source, sourceLimit, &status); in getPreferred()
361 if (!U_SUCCESS(status)) { in getPreferred()
428 status = U_ZERO_ERROR; in getPreferred()
430 ucsdet_getName(matches[highestidx], &status), highest); in getPreferred()
438 ucsdet_getName(matches[runnerupidx], &status), runnerup); in getPreferred()