| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * | 3 * |
| 4 * Copyright (C) 1998-2011, International Business Machines | 4 * Copyright (C) 1998-2014, International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ****************************************************************************** | 7 ****************************************************************************** |
| 8 * | 8 * |
| 9 * File ustdio.c | 9 * File ustdio.c |
| 10 * | 10 * |
| 11 * Modification History: | 11 * Modification History: |
| 12 * | 12 * |
| 13 * Date Name Description | 13 * Date Name Description |
| 14 * 11/18/98 stephen Creation. | 14 * 11/18/98 stephen Creation. |
| 15 * 03/12/99 stephen Modified for new C API. | 15 * 03/12/99 stephen Modified for new C API. |
| 16 * 07/19/99 stephen Fixed read() and gets() | 16 * 07/19/99 stephen Fixed read() and gets() |
| 17 ****************************************************************************** | 17 ****************************************************************************** |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #include "unicode/ustdio.h" | 20 #include "unicode/ustdio.h" |
| 21 |
| 22 #if !UCONFIG_NO_CONVERSION |
| 23 |
| 21 #include "unicode/putil.h" | 24 #include "unicode/putil.h" |
| 22 #include "cmemory.h" | 25 #include "cmemory.h" |
| 23 #include "cstring.h" | 26 #include "cstring.h" |
| 24 #include "ufile.h" | 27 #include "ufile.h" |
| 25 #include "ufmt_cmn.h" | 28 #include "ufmt_cmn.h" |
| 26 #include "unicode/ucnv.h" | 29 #include "unicode/ucnv.h" |
| 27 #include "unicode/ustring.h" | 30 #include "unicode/ustring.h" |
| 28 | 31 |
| 29 #include <string.h> | 32 #include <string.h> |
| 30 | 33 |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 /* update number of items read */ | 720 /* update number of items read */ |
| 718 read += dataSize; | 721 read += dataSize; |
| 719 | 722 |
| 720 /* update the current buffer position */ | 723 /* update the current buffer position */ |
| 721 str->fPos += dataSize; | 724 str->fPos += dataSize; |
| 722 } | 725 } |
| 723 while (dataSize != 0 && read < count); | 726 while (dataSize != 0 && read < count); |
| 724 | 727 |
| 725 return read; | 728 return read; |
| 726 } | 729 } |
| 730 #endif |
| OLD | NEW |