chromium/third_party/icu/source/i18n/number_utils.cpp

// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#if !UCONFIG_NO_FORMATTING

// Allow implicit conversion from char16_t* to UnicodeString for this file:
// Helpful in toString methods and elsewhere.
#define UNISTR_FROM_STRING_EXPLICIT

#include <stdlib.h>
#include <cmath>
#include "number_decnum.h"
#include "number_types.h"
#include "number_utils.h"
#include "charstr.h"
#include "decContext.h"
#include "decNumber.h"
#include "double-conversion.h"
#include "fphdlimp.h"
#include "uresimp.h"
#include "ureslocs.h"

usingnamespaceicu;
usingnamespaceicu::number;
usingnamespaceicu::number::impl;

DoubleToStringConverter;


namespace {

const char16_t*
doGetPattern(UResourceBundle* res, const char* nsName, const char* patternKey, UErrorCode& publicStatus,
             UErrorCode& localStatus) {}

}


const char16_t* utils::getPatternForStyle(const Locale& locale, const char* nsName, CldrPatternStyle style,
                                          UErrorCode& status) {}


DecNum::DecNum() {}

DecNum::DecNum(const DecNum& other, UErrorCode& status)
        :{}

void DecNum::setTo(StringPiece str, UErrorCode& status) {}

void DecNum::setTo(const char* str, UErrorCode& status) {}

void DecNum::setTo(double d, UErrorCode& status) {}

void DecNum::_setTo(const char* str, int32_t maxDigits, UErrorCode& status) {}

void
DecNum::setTo(const uint8_t* bcd, int32_t length, int32_t scale, bool isNegative, UErrorCode& status) {}

void DecNum::normalize() {}

void DecNum::multiplyBy(const DecNum& rhs, UErrorCode& status) {}

void DecNum::divideBy(const DecNum& rhs, UErrorCode& status) {}

bool DecNum::isNegative() const {}

bool DecNum::isZero() const {}

bool DecNum::isSpecial() const {}

bool DecNum::isInfinity() const {}

bool DecNum::isNaN() const {}

void DecNum::toString(ByteSink& output, UErrorCode& status) const {}

#endif /* #if !UCONFIG_NO_FORMATTING */