Home
last modified time | relevance | path

Searched refs:DECIMAL_BASE (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/utils/global/time/include/
H A Dtime_util.h31 constexpr int32_t DECIMAL_BASE = 10; variable
67 milliStr[i] = '0' + remainder % DECIMAL_BASE; in DefaultCurrentTimeStr()
68 remainder /= DECIMAL_BASE; in DefaultCurrentTimeStr()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/src/
H A Dlru_cache.cpp24 static constexpr const int DECIMAL_BASE = 10; variable
188 return std::strtol(a.value[LRU_INDEX].c_str(), nullptr, DECIMAL_BASE) > in ReadCacheFromJsonValue()
189 std::strtol(b.value[LRU_INDEX].c_str(), nullptr, DECIMAL_BASE); in ReadCacheFromJsonValue()
/ohos5.0/base/startup/init/services/utils/
H A Dinit_utils.c68 *value = (unsigned int)strtoul(name, 0, DECIMAL_BASE); in StringToUint()
523 int value = (int)strtoul(str, NULL, DECIMAL_BASE); in StringToInt()
671 int base = (positiveHex || negativeHex) ? HEX_BASE : DECIMAL_BASE; in StringToLL()
691 int base = (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) ? HEX_BASE : DECIMAL_BASE; in StringToULL()
/ohos5.0/base/startup/init/services/begetctl/
H A Dservice_control.c56 uint64_t timeout = strtoull(timeBuffer, NULL, DECIMAL_BASE); in main_cmd()
H A Dparam_cmd.c576 InitLogLevel value = (InitLogLevel)strtoul(level, NULL, DECIMAL_BASE); in UpdateInitLogLevel()
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dinit_utils.h43 #define DECIMAL_BASE 10 macro
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/
H A Dlru_cache_disk_handler.cpp184 return std::strtol(a.value[LRU_INDEX].c_str(), nullptr, DECIMAL_BASE) > in ReadCacheFromJsonValue()
185 std::strtol(b.value[LRU_INDEX].c_str(), nullptr, DECIMAL_BASE); in ReadCacheFromJsonValue()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
H A Drdb_query.cpp170 int limit = static_cast<int>(strtol(operation.field_.c_str(), &end, DECIMAL_BASE)); in Limit()
171 int offset = static_cast<int>(strtol(operation.values_[0].c_str(), &end, DECIMAL_BASE)); in Limit()
H A Drdb_query.h103 static constexpr inline uint32_t DECIMAL_BASE = 10; variable
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/cj/src/
H A Dimage_source_impl.cpp29 const int DECIMAL_BASE = 10; variable
160 num = strtol(value.c_str(), &endptr, DECIMAL_BASE); in CheckOrientation()
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/include/
H A Dlru_cache_disk_handler.h28 constexpr const int DECIMAL_BASE = 10; variable
/ohos5.0/foundation/multimodalinput/input/service/key_command/src/
H A Dsetting_datashare.cpp48 constexpr int32_t DECIMAL_BASE { 10 }; variable
86 value = static_cast<int64_t>(strtoll(valueStr.c_str(), nullptr, DECIMAL_BASE)); in GetLongValue()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dpng_image_chunk_utils.cpp43 constexpr auto DECIMAL_BASE = 10; variable
365 const size_t newlength = (DECIMAL_BASE * exifLength) + (*sourcePtr - '0'); in GetExifInfoLen()
H A Dexif_metadata_formatter.cpp591 const size_t DECIMAL_BASE = 10; variable
719 int numerator = decPart * pow(DECIMAL_BASE, decimal.length() - decimal.find(".") - 1); in GetFractionFromStr()
720 int denominator = pow(DECIMAL_BASE, decimal.length() - decimal.find(".") - 1); in GetFractionFromStr()
/ohos5.0/base/startup/init/interfaces/innerkits/fd_holder/
H A Dfd_holder.c180 fds[i] = (int)strtol(fdList[i], NULL, DECIMAL_BASE); in ServiceGetFd()
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/adapter/
H A Dp2p_adapter.cpp39 static constexpr int DECIMAL_BASE = 10; variable
131 …nectConfig.frequency = strtol(configs[P2P_GROUP_CONFIG_INDEX_FREQ].c_str(), nullptr, DECIMAL_BASE); in P2pConnectGroup()
/ohos5.0/foundation/filemanagement/app_file_service/utils/include/b_resources/
H A Db_constants.h57 constexpr int DECIMAL_BASE = 10; // 十进制基数 variable
/ohos5.0/base/startup/init/services/init/
H A Dinit_common_cmds.c193 unsigned long sleepTime = strtoul(ctx->argv[0], NULL, DECIMAL_BASE); in DoSleep()
211 waitSecond = strtoul(ctx->argv[timePos], NULL, DECIMAL_BASE); in DoWait()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_manager.h122 constexpr static int8_t DECIMAL_BASE = 10; variable
H A Dobject_manager.cpp818 sessionIds[sessionId] = strtol(splitKeys[TIME_INDEX].c_str(), &end, DECIMAL_BASE); in ProcessOldEntry()
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Ddrawable_descriptor.cpp76 constexpr int DECIMAL_BASE = 10; variable
103 result = std::strtoul(idStr.c_str(), &endPtr, DECIMAL_BASE); in ConvertStringToUInt32()
/ohos5.0/base/startup/init/services/param/manager/
H A Dparam_server.c492 uint32_t size = (uint32_t)strtoul(value, NULL, DECIMAL_BASE); in LoadOneParamAreaSize_()
/ohos5.0/base/startup/init/services/init/standard/
H A Dinit_cmds.c451 uint64_t timeout = strtoull(splitArgs[1], NULL, DECIMAL_BASE); in DoTimerStart()