| 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 uprntf_p.c | 9 * File uprntf_p.c |
| 10 * | 10 * |
| 11 * Modification History: | 11 * Modification History: |
| 12 * | 12 * |
| 13 * Date Name Description | 13 * Date Name Description |
| 14 * 11/23/98 stephen Creation. | 14 * 11/23/98 stephen Creation. |
| 15 * 03/12/99 stephen Modified for new C API. | 15 * 03/12/99 stephen Modified for new C API. |
| 16 * 08/07/2003 george Reunify printf implementations | 16 * 08/07/2003 george Reunify printf implementations |
| 17 ****************************************************************************** | 17 ****************************************************************************** |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #include "unicode/utypes.h" | 20 #include "unicode/utypes.h" |
| 21 | 21 |
| 22 #if !UCONFIG_NO_FORMATTING | 22 #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION |
| 23 | 23 |
| 24 #include "unicode/ustring.h" | 24 #include "unicode/ustring.h" |
| 25 #include "unicode/utf16.h" | 25 #include "unicode/utf16.h" |
| 26 #include "uprintf.h" | 26 #include "uprintf.h" |
| 27 #include "ufmt_cmn.h" | 27 #include "ufmt_cmn.h" |
| 28 #include "cmemory.h" | 28 #include "cmemory.h" |
| 29 #include "putilimp.h" | 29 #include "putilimp.h" |
| 30 | 30 |
| 31 /* ANSI style formatting */ | 31 /* ANSI style formatting */ |
| 32 /* Use US-ASCII characters only for formatting */ | 32 /* Use US-ASCII characters only for formatting */ |
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 } | 1580 } |
| 1581 /* delete parsed argument list */ | 1581 /* delete parsed argument list */ |
| 1582 if (arglist != NULL) { | 1582 if (arglist != NULL) { |
| 1583 uprv_free(arglist); | 1583 uprv_free(arglist); |
| 1584 } | 1584 } |
| 1585 /* return # of characters in this format that have been parsed. */ | 1585 /* return # of characters in this format that have been parsed. */ |
| 1586 return (int32_t)(alias - fmt); | 1586 return (int32_t)(alias - fmt); |
| 1587 } | 1587 } |
| 1588 | 1588 |
| 1589 #endif /* #if !UCONFIG_NO_FORMATTING */ | 1589 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| OLD | NEW |