mirror of
https://github.com/DanielSWolf/rhubarb-lip-sync.git
synced 2026-11-21 12:25:08 +00:00
Added cppformat library
Using master version because of issue #129, which isn't fixed in release 1.1.0.
This commit is contained in:
19
lib/cppformat/support/biicode/biicode.conf
Normal file
19
lib/cppformat/support/biicode/biicode.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
# Biicode configuration file
|
||||
|
||||
[paths]
|
||||
# Local directories to look for headers (within block)
|
||||
/
|
||||
|
||||
[dependencies]
|
||||
# Manual adjust file implicit dependencies, add (+), remove (-), or overwrite (=)
|
||||
CMakeLists.txt + cmake/FindSetEnv.cmake
|
||||
format.h = format.cc
|
||||
format.cc - test/* posix.cc
|
||||
support/biicode/sample.cc - test/*
|
||||
|
||||
[mains]
|
||||
# Manual adjust of files that define an executable
|
||||
!test/test-main.cc
|
||||
|
||||
[parent]
|
||||
vitaut/cppformat: 0
|
||||
3
lib/cppformat/support/biicode/ignore.bii
Normal file
3
lib/cppformat/support/biicode/ignore.bii
Normal file
@@ -0,0 +1,3 @@
|
||||
doc/*
|
||||
breathe/*
|
||||
gmock/*
|
||||
17
lib/cppformat/support/biicode/sample.cc
Normal file
17
lib/cppformat/support/biicode/sample.cc
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "vitaut/cppformat/format.h"
|
||||
|
||||
class Date {
|
||||
int year_, month_, day_;
|
||||
public:
|
||||
Date(int year, int month, int day) : year_(year), month_(month), day_(day) {}
|
||||
|
||||
friend std::ostream &operator<<(std::ostream &os, const Date &d) {
|
||||
return os << d.year_ << '-' << d.month_ << '-' << d.day_;
|
||||
}
|
||||
};
|
||||
|
||||
int main() {
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user