annotate dep/fmt/src/format.cc @ 346:e65b89bcc528

cmake: curl -> libcurl
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 07:40:47 -0400
parents 4aeffed717ef
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
329
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
1 // Formatting library for C++
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
2 //
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
3 // Copyright (c) 2012 - 2016, Victor Zverovich
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
4 // All rights reserved.
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
5 //
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
6 // For the license information refer to format.h.
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
7
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
8 #include "fmt/format-inl.h"
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
9
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
10 FMT_BEGIN_NAMESPACE
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
11 namespace detail {
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
12
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
13 template FMT_API auto dragonbox::to_decimal(float x) noexcept
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
14 -> dragonbox::decimal_fp<float>;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
15 template FMT_API auto dragonbox::to_decimal(double x) noexcept
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
16 -> dragonbox::decimal_fp<double>;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
17
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
18 #ifndef FMT_STATIC_THOUSANDS_SEPARATOR
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
19 template FMT_API locale_ref::locale_ref(const std::locale& loc);
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
20 template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
21 #endif
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
22
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
23 // Explicit instantiations for char.
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
24
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
25 template FMT_API auto thousands_sep_impl(locale_ref)
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
26 -> thousands_sep_result<char>;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
27 template FMT_API auto decimal_point_impl(locale_ref) -> char;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
28
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
29 template FMT_API void buffer<char>::append(const char*, const char*);
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
30
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
31 template FMT_API void vformat_to(buffer<char>&, string_view,
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
32 typename vformat_args<>::type, locale_ref);
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
33
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
34 // Explicit instantiations for wchar_t.
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
35
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
36 template FMT_API auto thousands_sep_impl(locale_ref)
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
37 -> thousands_sep_result<wchar_t>;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
38 template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
39
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
40 template FMT_API void buffer<wchar_t>::append(const wchar_t*, const wchar_t*);
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
41
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
42 } // namespace detail
4aeffed717ef dep/fmt: add dependency
Paper <paper@paper.us.eu.org>
parents:
diff changeset
43 FMT_END_NAMESPACE