/base/update/updater/test/unittest/updater_test/ |
H A D | test_update_binary_abnormal.cpp | 35 constexpr int decimal = 10; in main() local 42 int pipeFd = static_cast<int>(std::strtol(argv[1], nullptr, decimal)); in main()
|
H A D | test_update_binary.cpp | 35 constexpr int decimal = 10; in main() local 42 int pipeFd = static_cast<int>(std::strtol(argv[1], nullptr, decimal)); in main()
|
/base/telephony/sms_mms/utils/ |
H A D | string_utils.cpp | 41 const uint8_t decimal = 10; in HexCharToInt() local 46 return (c - 'A' + decimal); in HexCharToInt() 49 return (c - 'a' + decimal); in HexCharToInt()
|
/base/hiviewdfx/hiview/base/running_status_logger/ |
H A D | running_status_logger.cpp | 116 int decimal = 10; in GetLogWroteDestFile() local 118 index *= decimal; in GetLogWroteDestFile() 127 return GenerateNewestFileName(std::string(((index < decimal) ? "_0" : "_")).append(std::to_string(index))); in GetLogWroteDestFile()
|
/base/hiviewdfx/hiview/base/ |
H A D | event.cpp | 54 const int decimal = 10;
in GetIntValue() local 55 int32_t ret = static_cast<int32_t>(std::strtol(it->second.c_str(), nullptr, decimal));
in GetIntValue()
|
/base/location/services/location_gnss/gnss/source/ |
H A D | string_utils.cpp | 43 const uint8_t decimal = 10; in HexCharToInt() local 48 return (c - 'A' + decimal); in HexCharToInt() 51 return (c - 'a' + decimal); in HexCharToInt()
|
/base/global/i18n_lite/frameworks/i18n/include/ |
H A D | number_data.h | 58 char *decimal = nullptr;
member in OHOS::I18N::NumberData
|
H A D | number_format_impl.h | 49 void AddGroup(char *targetAndSource[], const int len[], const char *decimal, bool hasDec, int decLen) const;
|
/base/hiviewdfx/hicollie/frameworks/native/ |
H A D | xcollie_utils.cpp | 232 const int decimal = 10; in ParsePeerBinderPid() local 270 int serverNum = std::strtol(server.c_str(), nullptr, decimal); in ParsePeerBinderPid() 271 int clientNum = std::strtol(client.c_str(), nullptr, decimal); in ParsePeerBinderPid() 272 int waitNum = std::strtol(wait.c_str(), nullptr, decimal); in ParsePeerBinderPid()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | number_format_impl.cpp | 30 off = ReplaceAndCountOff(strContent, i + off, data->decimal, off);
in ConvertSignAndNum() 135 // convert decimal to char and format
in InnerFormat() 280 void NumberFormatImpl::AddGroup(char *targetAndSource[], const int len[], const char *decimal,
in AddGroup() argument 322 target[addIndex + j] = hasDec ? decimal[j] : '\0';
in AddGroup() 351 if (type == PERCENT) { // percent,the decimal needs to be multiplied by 100.
in Format() 373 if (type == PERCENT) { // percent,the decimal needs to be multiplied by 100.
in FormatNoGroup()
|
H A D | number_data.cpp | 86 std::string decSign = signs[0]; // use array to store num data, first is decimal sign
in InitSign() 90 decimal = I18nNewCharString(td, strlen(td));
in InitSign() 114 for (int i = 0; i < len; i++) { // calculate the format after decimal sign
in CalculateDecLength() 265 I18nFree(static_cast<void *>(decimal));
in ~NumberData() 338 // reset the style's number pattern which is used to format a decimal number
in UpdateNumberFormat()
|
/base/update/packaging_tools/ |
H A D | script_generator.py | 23 from decimal import getcontext
24 from decimal import Decimal
|
/base/hiviewdfx/hiview/plugins/unified_collector/storage/ |
H A D | cpu_storage.cpp | 98 double TruncateDecimalWithNBitPrecision(double decimal, uint32_t precision = DEFAULT_PRECISION_OF_DECIMAL)
in TruncateDecimalWithNBitPrecision() argument 101 return std::floor(decimal * truncateCoefficient) / truncateCoefficient;
in TruncateDecimalWithNBitPrecision()
|