chromium/third_party/icu/source/i18n/formatted_string_builder.h

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

#include "unicode/utypes.h"

#if !UCONFIG_NO_FORMATTING
#ifndef __NUMBER_STRINGBUILDER_H__
#define __NUMBER_STRINGBUILDER_H__


#include <cstdint>
#include <type_traits>

#include "cstring.h"
#include "uassert.h"
#include "fphdlimp.h"

U_NAMESPACE_BEGIN

class FormattedValueStringBuilderImpl;

/**
 * A StringBuilder optimized for formatting. It implements the following key
 * features beyond a UnicodeString:
 *
 * <ol>
 * <li>Efficient prepend as well as append.
 * <li>Keeps track of Fields in an efficient manner.
 * </ol>
 *
 * See also FormattedValueStringBuilderImpl.
 *
 * @author sffc (Shane Carr)
 */
class U_I18N_API FormattedStringBuilder : public UMemory {};

static_assert;

constexpr FormattedStringBuilder::Field::Field(uint8_t category, uint8_t field)
    :{}

/**
 * Internal constant for the undefined field for use in FormattedStringBuilder.
 */
constexpr FormattedStringBuilder::Field kUndefinedField =;

/**
 * Internal field to signal "numeric" when fields are not supported in NumberFormat.
 */
constexpr FormattedStringBuilder::Field kGeneralNumericField =;

inline UFieldCategory FormattedStringBuilder::Field::getCategory() const {}

inline int32_t FormattedStringBuilder::Field::getField() const {}

inline bool FormattedStringBuilder::Field::isNumeric() const {}

inline bool FormattedStringBuilder::Field::isUndefined() const {}

inline bool FormattedStringBuilder::Field::operator==(const Field& other) const {}

inline bool FormattedStringBuilder::Field::operator!=(const Field& other) const {}

U_NAMESPACE_END


#endif //__NUMBER_STRINGBUILDER_H__

#endif /* #if !UCONFIG_NO_FORMATTING */