Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
37f599b1
Commit
37f599b1
authored
Dec 12, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docs
parent
8c2e15ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
doc/api.rst
doc/api.rst
+1
-1
doc/build.py
doc/build.py
+2
-1
include/fmt/format.h
include/fmt/format.h
+6
-4
No files found.
doc/api.rst
View file @
37f599b1
...
@@ -184,7 +184,7 @@ output ``operator<<`` when one is defined for a user-defined type.
...
@@ -184,7 +184,7 @@ output ``operator<<`` when one is defined for a user-defined type.
Output iterator support
Output iterator support
-----------------------
-----------------------
.. doxygenfunction:: fmt::format_to(OutputIt, const S
&, const Args
&...)
.. doxygenfunction:: fmt::format_to(OutputIt, const S
&, const Args
&...)
.. doxygenfunction:: fmt::format_to_n(OutputIt, std::size_t, string_view, const Args&...)
.. doxygenfunction:: fmt::format_to_n(OutputIt, std::size_t, string_view, const Args&...)
.. doxygenstruct:: fmt::format_to_n_result
.. doxygenstruct:: fmt::format_to_n_result
:members:
:members:
...
...
doc/build.py
View file @
37f599b1
...
@@ -93,7 +93,8 @@ def build_docs(version='dev', **kwargs):
...
@@ -93,7 +93,8 @@ def build_docs(version='dev', **kwargs):
FMT_API= \
FMT_API= \
"FMT_BEGIN_NAMESPACE=namespace fmt {{" \
"FMT_BEGIN_NAMESPACE=namespace fmt {{" \
"FMT_END_NAMESPACE=}}" \
"FMT_END_NAMESPACE=}}" \
"FMT_STRING_ALIAS=1"
"FMT_STRING_ALIAS=1" \
"FMT_ENABLE_IF_T(B, T)=T"
EXCLUDE_SYMBOLS = fmt::internal::* StringValue write_str
EXCLUDE_SYMBOLS = fmt::internal::* StringValue write_str
'''
.
format
(
include_dir
,
doxyxml_dir
).
encode
(
'UTF-8'
))
'''
.
format
(
include_dir
,
doxyxml_dir
).
encode
(
'UTF-8'
))
if
p
.
returncode
!=
0
:
if
p
.
returncode
!=
0
:
...
...
include/fmt/format.h
View file @
37f599b1
...
@@ -165,6 +165,8 @@ FMT_END_NAMESPACE
...
@@ -165,6 +165,8 @@ FMT_END_NAMESPACE
# define FMT_USE_TRAILING_RETURN 0
# define FMT_USE_TRAILING_RETURN 0
#endif
#endif
#define FMT_ENABLE_IF_T(B, T) typename std::enable_if<B, T>::type
#ifndef FMT_USE_GRISU
#ifndef FMT_USE_GRISU
# define FMT_USE_GRISU 0
# define FMT_USE_GRISU 0
//# define FMT_USE_GRISU std::numeric_limits<double>::is_iec559
//# define FMT_USE_GRISU std::numeric_limits<double>::is_iec559
...
@@ -3495,9 +3497,9 @@ inline typename std::enable_if<internal::is_output_iterator<OutputIt>::value,
...
@@ -3495,9 +3497,9 @@ inline typename std::enable_if<internal::is_output_iterator<OutputIt>::value,
\endrst
\endrst
*/
*/
template
<
typename
OutputIt
,
typename
S
,
typename
...
Args
>
template
<
typename
OutputIt
,
typename
S
,
typename
...
Args
>
inline
typename
std
::
enable_if
<
inline
FMT_ENABLE_IF_T
(
internal
::
is_string
<
S
>::
value
&&
internal
::
is_string
<
S
>::
value
&&
internal
::
is_output_iterator
<
OutputIt
>::
value
,
OutputIt
>::
type
internal
::
is_output_iterator
<
OutputIt
>::
value
,
OutputIt
)
format_to
(
OutputIt
out
,
const
S
&
format_str
,
const
Args
&
...
args
)
{
format_to
(
OutputIt
out
,
const
S
&
format_str
,
const
Args
&
...
args
)
{
internal
::
check_format_string
<
Args
...
>
(
format_str
);
internal
::
check_format_string
<
Args
...
>
(
format_str
);
typedef
typename
format_context_t
<
OutputIt
,
FMT_CHAR
(
S
)
>::
type
context
;
typedef
typename
format_context_t
<
OutputIt
,
FMT_CHAR
(
S
)
>::
type
context
;
...
@@ -3551,10 +3553,10 @@ inline typename std::enable_if<
...
@@ -3551,10 +3553,10 @@ inline typename std::enable_if<
\endrst
\endrst
*/
*/
template
<
typename
OutputIt
,
typename
S
,
typename
...
Args
>
template
<
typename
OutputIt
,
typename
S
,
typename
...
Args
>
inline
typename
std
::
enable_if
<
inline
FMT_ENABLE_IF_T
(
internal
::
is_string
<
S
>::
value
&&
internal
::
is_string
<
S
>::
value
&&
internal
::
is_output_iterator
<
OutputIt
>::
value
,
internal
::
is_output_iterator
<
OutputIt
>::
value
,
format_to_n_result
<
OutputIt
>
>::
type
format_to_n_result
<
OutputIt
>
)
format_to_n
(
OutputIt
out
,
std
::
size_t
n
,
const
S
&
format_str
,
format_to_n
(
OutputIt
out
,
std
::
size_t
n
,
const
S
&
format_str
,
const
Args
&
...
args
)
{
const
Args
&
...
args
)
{
internal
::
check_format_string
<
Args
...
>
(
format_str
);
internal
::
check_format_string
<
Args
...
>
(
format_str
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment