├── Readme.md ├── .gitignore ├── .gitmodules ├── .clang-format └── License /Readme.md: -------------------------------------------------------------------------------- 1 | Cafe 2 | ======== 3 | 4 | [![Travis](https://img.shields.io/travis/akemimadoka/Cafe.svg)](https://travis-ci.org/akemimadoka/Cafe) 5 | [![Download](https://api.bintray.com/packages/chino/Cafe/Cafe%3AChino/images/download.svg?version=0.1%3ACafe)](https://bintray.com/chino/Cafe/Cafe%3AChino/0.1%3ACafe/link) 6 | ![License](https://img.shields.io/badge/license-MIT-blue.svg) 7 | 8 | 一个 C++ 通用工具库,使用 MIT 协议开源 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | /build 34 | /.idea 35 | /.vs 36 | /.vscode 37 | 38 | /cmake-build-* 39 | /wslBuild 40 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Cafe.Encoding"] 2 | path = Cafe.Encoding 3 | url = https://github.com/akemimadoka/Cafe.Encoding.git 4 | [submodule "Cafe.ErrorHandling"] 5 | path = Cafe.ErrorHandling 6 | url = https://github.com/akemimadoka/Cafe.ErrorHandling.git 7 | [submodule "Cafe.TextUtils"] 8 | path = Cafe.TextUtils 9 | url = https://github.com/akemimadoka/Cafe.TextUtils.git 10 | [submodule "Cafe.Io"] 11 | path = Cafe.Io 12 | url = https://github.com/akemimadoka/Cafe.Io.git 13 | [submodule "Cafe.Environment"] 14 | path = Cafe.Environment 15 | url = https://github.com/akemimadoka/Cafe.Environment.git 16 | [submodule "Cafe.Core"] 17 | path = Cafe.Core 18 | url = https://github.com/akemimadoka/Cafe.Core.git 19 | -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | AllowShortBlocksOnASingleLine: false 3 | AllowShortCaseLabelsOnASingleLine: false 4 | AllowShortFunctionsOnASingleLine: None 5 | BreakBeforeBraces: Custom 6 | BraceWrapping: 7 | AfterClass: true 8 | AfterControlStatement: true 9 | AfterEnum: true 10 | AfterFunction: true 11 | AfterNamespace: true 12 | AfterObjCDeclaration: true 13 | AfterStruct: true 14 | AfterUnion: true 15 | AfterExternBlock: true 16 | BeforeCatch: true 17 | BeforeElse: true 18 | IndentBraces: false 19 | SplitEmptyFunction: true 20 | SplitEmptyRecord: true 21 | SplitEmptyNamespace: true 22 | Cpp11BracedListStyle: false 23 | FixNamespaceComments: true 24 | Language: Cpp 25 | NamespaceIndentation: All 26 | SpaceAfterCStyleCast: true 27 | Standard: Cpp11 28 | UseTab: ForIndentation 29 | TabWidth: 4 30 | IndentWidth: 4 31 | PointerAlignment: Left 32 | ColumnLimit: 100 33 | AlwaysBreakTemplateDeclarations: Yes 34 | AccessModifierOffset: -4 35 | 36 | ... 37 | -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | Copyright 2019 akemimadoka 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------------------------------------------------------------