]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Perform conversions straight from the stream buffer instead of scanning
authorTim J. Robbins <tjr@FreeBSD.org>
Sat, 22 May 2004 15:41:03 +0000 (15:41 +0000)
committerTim J. Robbins <tjr@FreeBSD.org>
Sat, 22 May 2004 15:41:03 +0000 (15:41 +0000)
commitd6ed810a67fa30e63c4e41b72d7d18da9dfa741b
tree60f061fc81e6e384df239afb039e49b148fa8fdb
parent87275e436a0fb31fea2757532860a3ec993d2cd6
Perform conversions straight from the stream buffer instead of scanning
through byte by byte with mbrtowc(). In the usual case (buffer is big
enough to contain the multibyte character, character does not straddle
buffer boundary) this results in only one call to mbrtowc() for each
wide character read.
lib/libc/stdio/fgetwc.c