folly/folly/Format.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <folly/Format.h>

#include <cassert>

#include <folly/ConstexprMath.h>
#include <folly/CppAttributes.h>
#include <folly/Portability.h>
#include <folly/container/Array.h>

#include <double-conversion/double-conversion.h>

namespace folly {
namespace detail {

//  ctor for items in the align table
struct format_table_align_make_item {};

//  ctor for items in the conv tables for representing parts of nonnegative
//  integers into ascii digits of length Size, over a given base Base
template <std::size_t Base, std::size_t Size, bool Upper = false>
struct format_table_conv_make_item {};

//  ctor for items in the sign table
struct format_table_sign_make_item {};

//  the tables
FOLLY_STORAGE_CONSTEXPR auto formatAlignTable =;
FOLLY_STORAGE_CONSTEXPR auto formatSignTable =;
FOLLY_STORAGE_CONSTEXPR decltype(formatHexLower) formatHexLower =;
FOLLY_STORAGE_CONSTEXPR decltype(formatHexUpper) formatHexUpper =;
FOLLY_STORAGE_CONSTEXPR decltype(formatOctal) formatOctal =;
FOLLY_STORAGE_CONSTEXPR decltype(formatBinary) formatBinary =;

} // namespace detail

usingnamespacefolly::detail;

void FormatValue<double>::formatHelper(
    fbstring& piece, int& prefixLen, FormatArg& arg) const {}

void FormatArg::initSlow() {}

void FormatArg::validate(Type type) const {}

namespace detail {
void insertThousandsGroupingUnsafe(char* start_buffer, char** end_buffer) {}
} // namespace detail

FormatKeyNotFoundException::FormatKeyNotFoundException(StringPiece key)
    :{}

} // namespace folly