Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
552d6214
Commit
552d6214
authored
Oct 05, 2017
by
fogo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated bundled fmt to contain printf
parent
dc8ac4c6
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
635 additions
and
0 deletions
+635
-0
include/spdlog/fmt/bundled/printf.cc
include/spdlog/fmt/bundled/printf.cc
+32
-0
include/spdlog/fmt/bundled/printf.h
include/spdlog/fmt/bundled/printf.h
+603
-0
No files found.
include/spdlog/fmt/bundled/printf.cc
0 → 100644
View file @
552d6214
/*
Formatting library for C++
Copyright (c) 2012 - 2016, Victor Zverovich
All rights reserved.
For the license information refer to format.h.
*/
#include "format.h"
#include "printf.h"
namespace
fmt
{
template
<
typename
Char
>
void
printf
(
BasicWriter
<
Char
>
&
w
,
BasicCStringRef
<
Char
>
format
,
ArgList
args
);
FMT_FUNC
int
fprintf
(
std
::
FILE
*
f
,
CStringRef
format
,
ArgList
args
)
{
MemoryWriter
w
;
printf
(
w
,
format
,
args
);
std
::
size_t
size
=
w
.
size
();
return
std
::
fwrite
(
w
.
data
(),
1
,
size
,
f
)
<
size
?
-
1
:
static_cast
<
int
>
(
size
);
}
#ifndef FMT_HEADER_ONLY
template
void
PrintfFormatter
<
char
>
::
format
(
CStringRef
format
);
template
void
PrintfFormatter
<
wchar_t
>
::
format
(
WCStringRef
format
);
#endif // FMT_HEADER_ONLY
}
// namespace fmt
include/spdlog/fmt/bundled/printf.h
0 → 100644
View file @
552d6214
This diff is collapsed.
Click to expand it.
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