• Home
  • Raw
  • Download

Lines Matching refs:file

183 u_fflush(UFILE *file)  in u_fflush()  argument
185 ufile_flush_translit(file); in u_fflush()
186 if (file->fFile) { in u_fflush()
187 fflush(file->fFile); in u_fflush()
189 else if (file->str.fPos < file->str.fLimit) { in u_fflush()
190 *(file->str.fPos++) = 0; in u_fflush()
196 u_frewind(UFILE *file) in u_frewind() argument
198 u_fflush(file); in u_frewind()
199 ucnv_reset(file->fConverter); in u_frewind()
200 if (file->fFile) { in u_frewind()
201 rewind(file->fFile); in u_frewind()
202 file->str.fLimit = file->fUCBuffer; in u_frewind()
203 file->str.fPos = file->fUCBuffer; in u_frewind()
206 file->str.fPos = file->str.fBuffer; in u_frewind()
211 u_fclose(UFILE *file) in u_fclose() argument
213 u_fflush(file); in u_fclose()
214 ufile_close_translit(file); in u_fclose()
216 if(file->fOwnFile) in u_fclose()
217 fclose(file->fFile); in u_fclose()
220 u_locbund_close(&file->str.fBundle); in u_fclose()
223 ucnv_close(file->fConverter); in u_fclose()
224 uprv_free(file); in u_fclose()
236 u_fgetlocale( UFILE *file) in u_fgetlocale() argument
238 return file->str.fBundle.fLocale; in u_fgetlocale()
242 u_fsetlocale(UFILE *file, in u_fsetlocale() argument
245 u_locbund_close(&file->str.fBundle); in u_fsetlocale()
247 return u_locbund_init(&file->str.fBundle, locale) == 0 ? -1 : 0; in u_fsetlocale()
253 u_fgetcodepage(UFILE *file) in u_fgetcodepage() argument
258 if (file->fConverter) { in u_fgetcodepage()
259 codepage = ucnv_getName(file->fConverter, &status); in u_fgetcodepage()
268 UFILE *file) in u_fsetcodepage() argument
274 if ((file->str.fPos == file->str.fBuffer) && (file->str.fLimit == file->str.fBuffer)) { in u_fsetcodepage()
275 ucnv_close(file->fConverter); in u_fsetcodepage()
276 file->fConverter = ucnv_open(codepage, &status); in u_fsetcodepage()
286 u_fgetConverter(UFILE *file) in u_fgetConverter() argument
288 return file->fConverter; in u_fgetConverter()