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
8bd19530
Commit
8bd19530
authored
Feb 11, 2015
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to follow C++ Format's coding conventions
parent
33f85efb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
.travis.yml
.travis.yml
+1
-1
CMakeLists.txt
CMakeLists.txt
+2
-2
biicode/samples/basic.cc
biicode/samples/basic.cc
+3
-4
No files found.
.travis.yml
View file @
8bd19530
...
...
@@ -21,7 +21,7 @@ script:
-
CTEST_OUTPUT_ON_FAILURE=1 make test
-
cd .. && rm -rf build/
# Building with biicode
-
./
biicode/support/travis-build.sh
-
biicode/support/travis-build.sh
after_failure
:
...
...
CMakeLists.txt
View file @
8bd19530
...
...
@@ -61,10 +61,10 @@ if (CPP11_FLAG)
set
(
CMAKE_REQUIRED_FLAGS
${
CPP11_FLAG
}
)
endif
()
if
(
BIICODE
)
if
(
BIICODE
)
include
(
biicode/cmake/biicode.cmake
)
return
()
endif
(
BIICODE
)
endif
(
)
add_library
(
format
${
FMT_SOURCES
}
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
...
...
biicode/samples/basic.c
pp
→
biicode/samples/basic.c
c
View file @
8bd19530
...
...
@@ -11,8 +11,7 @@ class Date {
};
int
main
(
int
argc
,
char
*
argv
[]){
std
::
string
s
=
fmt
::
format
(
"The date is {}"
,
Date
(
2012
,
12
,
9
));
fmt
::
print
(
"Hello, {}!"
,
"world"
);
// uses Python-like format string syntax
fmt
::
printf
(
"
\n
%s"
,
s
);
// uses printf format string syntax
return
0
;
std
::
string
s
=
fmt
::
format
(
"The date is {}"
,
Date
(
2012
,
12
,
9
));
fmt
::
print
(
"Hello, {}!"
,
"world"
);
// uses Python-like format string syntax
fmt
::
printf
(
"
\n
%s"
,
s
);
// uses printf format string syntax
}
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