| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * | 3 * |
| 4 * Copyright (C) 2001-2008, International Business Machines | 4 * Copyright (C) 2001-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 sprintf.c | 9 * File sprintf.c |
| 10 * | 10 * |
| 11 * Modification History: | 11 * Modification History: |
| 12 * | 12 * |
| 13 * Date Name Description | 13 * Date Name Description |
| 14 * 02/08/2001 george Creation. Copied from uprintf.c | 14 * 02/08/2001 george Creation. Copied from uprintf.c |
| 15 * 03/27/2002 Mark Schneckloth Many fixes regarding alignment, null terminatio
n | 15 * 03/27/2002 Mark Schneckloth Many fixes regarding alignment, null terminatio
n |
| 16 * (mschneckloth@atomz.com) and other various problems. | 16 * (mschneckloth@atomz.com) and other various problems. |
| 17 * 08/07/2003 george Reunify printf implementations | 17 * 08/07/2003 george Reunify printf implementations |
| 18 ******************************************************************************* | 18 ******************************************************************************* |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "unicode/utypes.h" | 21 #include "unicode/utypes.h" |
| 22 | 22 |
| 23 #if !UCONFIG_NO_FORMATTING | 23 #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION |
| 24 | 24 |
| 25 #include "unicode/ustdio.h" | 25 #include "unicode/ustdio.h" |
| 26 #include "unicode/ustring.h" | 26 #include "unicode/ustring.h" |
| 27 #include "unicode/putil.h" | 27 #include "unicode/putil.h" |
| 28 | 28 |
| 29 #include "uprintf.h" | 29 #include "uprintf.h" |
| 30 #include "locbund.h" | 30 #include "locbund.h" |
| 31 | 31 |
| 32 #include "cmemory.h" | 32 #include "cmemory.h" |
| 33 #include <ctype.h> | 33 #include <ctype.h> |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 /* parsing error */ | 251 /* parsing error */ |
| 252 if (result < 0) { | 252 if (result < 0) { |
| 253 return result; | 253 return result; |
| 254 } | 254 } |
| 255 /* return # of UChars written */ | 255 /* return # of UChars written */ |
| 256 return written; | 256 return written; |
| 257 } | 257 } |
| 258 | 258 |
| 259 #endif /* #if !UCONFIG_NO_FORMATTING */ | 259 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 260 | 260 |
| OLD | NEW |