ICU-954 Fixed some compiler warnings, remove tabs, and simplify ucbuf_getc()

X-SVN-Rev: 4752
This commit is contained in:
George Rhoten 2001-05-22 17:36:43 +00:00
parent 15b4fbebc1
commit 273a9022fc

View File

@ -105,12 +105,7 @@ ucbuf_fillucbuf( UCHARBUF* buf,UErrorCode* err){
/* get a UChar from the stream*/
U_CAPI UChar32 U_EXPORT2
ucbuf_getc(UCHARBUF* buf,UErrorCode* err){
UChar32 c =0;
if(buf->currentPos<buf->bufLimit){
c = *(buf->currentPos);
buf->currentPos++;
return c;
}else{
if(buf->currentPos>=buf->bufLimit){
if(buf->remaining==0){
return U_EOF;
}
@ -118,12 +113,9 @@ ucbuf_getc(UCHARBUF* buf,UErrorCode* err){
if(U_FAILURE(*err)){
return U_EOF;
}
c = *(buf->currentPos);
buf->currentPos++;
return c;
}
return 0;
return *(buf->currentPos++);
}