Lines Matching refs:conv
46 UConverter* conv;
52 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, UErrorCode* error){
72 *conv =NULL;
77 *conv = ucnv_open(*cp,error);
82 ucnv_toUnicode(*conv, &pTarget, target+1, &pStart, start+*signatureLength, NULL, FALSE, error);
131 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,UErrorCode* error){
136 if(conv==NULL || cp==NULL || fileName==NULL){
148 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) {
151 ucnv_close(*conv);
152 *conv=NULL;
204 if(buf->conv){
209 ucnv_setToUCallBack(buf->conv,
219 ucnv_toUnicode(buf->conv,&target,target+(buf->bufCapacity-offset),
242 ucnv_getInvalidChars(buf->conv,context,&len,&error1);
271 ucnv_reset(buf->conv);
276 ucnv_setToUCallBack(buf->conv,
288 ucnv_toUnicode(buf->conv,&target,target+(buf->bufCapacity-offset),
475 buf->conv=NULL;
481 ucbuf_autodetect_fs(in,cp,&buf->conv,&buf->signatureLength,error);
484 ucbuf_autodetect_fs(in,&knownCp,&buf->conv,&buf->signatureLength,error);
486 if(U_SUCCESS(*error) && buf->conv==NULL) {
487 buf->conv=ucnv_open(*cp,error);
490 ucnv_close(buf->conv);
496 if((buf->conv==NULL) && (buf->showWarning==TRUE)){
563 if(buf->conv){
564 ucnv_close(buf->conv);
584 ucnv_resetToUnicode(buf->conv);
598 ucnv_toUnicode(buf->conv, &pTarget, target+1, &pStart, start+numRead, NULL, FALSE, error);
616 return (T_FileStream_size(buf->in)-buf->signatureLength)/ucnv_getMinCharSize(buf->conv);