OLD | NEW |
1 // Copyright (C) 2016 and later: Unicode, Inc. and others. | 1 // Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /* | 3 /* |
4 ********************************************************************** | 4 ********************************************************************** |
5 * Copyright (C) 1997-2015, International Business Machines | 5 * Copyright (C) 1997-2015, International Business Machines |
6 * Corporation and others. All Rights Reserved. | 6 * Corporation and others. All Rights Reserved. |
7 ********************************************************************** | 7 ********************************************************************** |
8 * | 8 * |
9 * File DIGITLST.CPP | 9 * File DIGITLST.CPP |
10 * | 10 * |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #if !defined(U_USE_STRTOD_L) | 53 #if !defined(U_USE_STRTOD_L) |
54 # if U_PLATFORM_USES_ONLY_WIN32_API | 54 # if U_PLATFORM_USES_ONLY_WIN32_API |
55 # define U_USE_STRTOD_L 1 | 55 # define U_USE_STRTOD_L 1 |
56 # elif defined(U_HAVE_STRTOD_L) | 56 # elif defined(U_HAVE_STRTOD_L) |
57 # define U_USE_STRTOD_L U_HAVE_STRTOD_L | 57 # define U_USE_STRTOD_L U_HAVE_STRTOD_L |
58 # else | 58 # else |
59 # define U_USE_STRTOD_L 0 | 59 # define U_USE_STRTOD_L 0 |
60 # endif | 60 # endif |
61 #endif | 61 #endif |
62 | 62 |
63 #if U_USE_STRTOD_L && !U_PLATFORM_USES_ONLY_WIN32_API | 63 #if U_USE_STRTOD_L |
64 # if U_PLATFORM == U_PF_CYGWIN | 64 # if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN |
65 # include <locale.h> | 65 # include <locale.h> |
66 # else | 66 # else |
67 # include <xlocale.h> | 67 # include <xlocale.h> |
68 # endif | 68 # endif |
69 #endif | 69 #endif |
70 | 70 |
71 // *************************************************************************** | 71 // *************************************************************************** |
72 // class DigitList | 72 // class DigitList |
73 // A wrapper onto decNumber. | 73 // A wrapper onto decNumber. |
74 // Used to be standalone. | 74 // Used to be standalone. |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 void | 1085 void |
1086 DigitList::shiftDecimalRight(int32_t n) { | 1086 DigitList::shiftDecimalRight(int32_t n) { |
1087 fDecNumber->exponent += n; | 1087 fDecNumber->exponent += n; |
1088 internalClear(); | 1088 internalClear(); |
1089 } | 1089 } |
1090 | 1090 |
1091 U_NAMESPACE_END | 1091 U_NAMESPACE_END |
1092 #endif // #if !UCONFIG_NO_FORMATTING | 1092 #endif // #if !UCONFIG_NO_FORMATTING |
1093 | 1093 |
1094 //eof | 1094 //eof |
OLD | NEW |