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
5b5886a9
Commit
5b5886a9
authored
Jun 08, 2018
by
Remotion
Committed by
Victor Zverovich
Jun 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed line length.
parent
d2bfee13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
include/fmt/ranges.h
include/fmt/ranges.h
+12
-4
No files found.
include/fmt/ranges.h
View file @
5b5886a9
...
...
@@ -165,13 +165,15 @@ void for_each(Tuple &&tup, F &&f) {
template
<
typename
Arg
>
FMT_CONSTEXPR
const
char
*
format_str_quoted
(
bool
add_space
,
const
Arg
&
,
typename
std
::
enable_if
<!
is_like_std_string
<
typename
std
::
decay
<
Arg
>::
type
>::
value
>::
type
*
=
nullptr
)
{
typename
std
::
enable_if
<
!
is_like_std_string
<
typename
std
::
decay
<
Arg
>::
type
>::
value
>::
type
*
=
nullptr
)
{
return
add_space
?
" {}"
:
"{}"
;
}
template
<
typename
Arg
>
FMT_CONSTEXPR
const
char
*
format_str_quoted
(
bool
add_space
,
const
Arg
&
,
typename
std
::
enable_if
<
is_like_std_string
<
typename
std
::
decay
<
Arg
>::
type
>::
value
>::
type
*
=
nullptr
)
{
typename
std
::
enable_if
<
is_like_std_string
<
typename
std
::
decay
<
Arg
>::
type
>::
value
>::
type
*
=
nullptr
)
{
return
add_space
?
"
\"
{}
\"
"
:
"
\"
{}
\"
"
;
}
...
...
@@ -212,7 +214,10 @@ private:
}
internal
::
copy
(
formatting
.
delimiter
,
out
);
}
format_to
(
out
,
internal
::
format_str_quoted
((
formatting
.
add_delimiter_spaces
&&
i
>
0
),
v
),
v
);
format_to
(
out
,
internal
::
format_str_quoted
(
(
formatting
.
add_delimiter_spaces
&&
i
>
0
),
v
),
v
);
++
i
;
}
...
...
@@ -275,7 +280,10 @@ struct formatter<RangeT, Char,
}
internal
::
copy
(
formatting
.
delimiter
,
out
);
}
format_to
(
out
,
internal
::
format_str_quoted
((
formatting
.
add_delimiter_spaces
&&
i
>
0
),
*
it
),
*
it
);
format_to
(
out
,
internal
::
format_str_quoted
(
(
formatting
.
add_delimiter_spaces
&&
i
>
0
),
*
it
),
*
it
);
if
(
++
i
>
formatting
.
range_length_limit
)
{
format_to
(
out
,
" ... <other elements>"
);
break
;
...
...
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