chromium/third_party/libc++/src/src/ios.cpp

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include <__config>
#include <__locale>
#include <algorithm>
#include <ios>
#include <limits>
#include <memory>
#include <new>
#include <stdlib.h>
#include <string>

#include "include/config_elast.h"

_LIBCPP_PUSH_MACROS
#include <__undef_macros>

_LIBCPP_BEGIN_NAMESPACE_STD

class _LIBCPP_HIDDEN __iostream_category : public __do_message {};

const char* __iostream_category::name() const noexcept {}

string __iostream_category::message(int ev) const {}

const error_category& iostream_category() noexcept {}

// ios_base::failure

ios_base::failure::failure(const string& msg, const error_code& ec) :{}

ios_base::failure::failure(const char* msg, const error_code& ec) :{}

ios_base::failure::~failure() throw() {}

// ios_base locale

const ios_base::fmtflags ios_base::boolalpha;
const ios_base::fmtflags ios_base::dec;
const ios_base::fmtflags ios_base::fixed;
const ios_base::fmtflags ios_base::hex;
const ios_base::fmtflags ios_base::internal;
const ios_base::fmtflags ios_base::left;
const ios_base::fmtflags ios_base::oct;
const ios_base::fmtflags ios_base::right;
const ios_base::fmtflags ios_base::scientific;
const ios_base::fmtflags ios_base::showbase;
const ios_base::fmtflags ios_base::showpoint;
const ios_base::fmtflags ios_base::showpos;
const ios_base::fmtflags ios_base::skipws;
const ios_base::fmtflags ios_base::unitbuf;
const ios_base::fmtflags ios_base::uppercase;
const ios_base::fmtflags ios_base::adjustfield;
const ios_base::fmtflags ios_base::basefield;
const ios_base::fmtflags ios_base::floatfield;

const ios_base::iostate ios_base::badbit;
const ios_base::iostate ios_base::eofbit;
const ios_base::iostate ios_base::failbit;
const ios_base::iostate ios_base::goodbit;

const ios_base::openmode ios_base::app;
const ios_base::openmode ios_base::ate;
const ios_base::openmode ios_base::binary;
const ios_base::openmode ios_base::in;
const ios_base::openmode ios_base::out;
const ios_base::openmode ios_base::trunc;

void ios_base::__call_callbacks(event ev) {}

// locale

locale ios_base::imbue(const locale& newloc) {}

locale ios_base::getloc() const {}

// xalloc
#if defined(_LIBCPP_HAS_C_ATOMIC_IMP) && !defined(_LIBCPP_HAS_NO_THREADS)
atomic<int> ios_base::__xindex_{};
#else
int ios_base::__xindex_ = 0;
#endif

template <typename _Tp>
static size_t __ios_new_cap(size_t __req_size, size_t __current_cap) {}

int ios_base::xalloc() {}

long& ios_base::iword(int index) {}

void*& ios_base::pword(int index) {}

// register_callback

void ios_base::register_callback(event_callback fn, int index) {}

ios_base::~ios_base() {}

// iostate

void ios_base::clear(iostate state) {}

// init

void ios_base::init(void* sb) {}

void ios_base::copyfmt(const ios_base& rhs) {}

void ios_base::move(ios_base& rhs) {}

void ios_base::swap(ios_base& rhs) noexcept {}

void ios_base::__set_badbit_and_consider_rethrow() {}

void ios_base::__set_failbit_and_consider_rethrow() {}

bool ios_base::sync_with_stdio(bool sync) {}

_LIBCPP_END_NAMESPACE_STD

_LIBCPP_POP_MACROS