https://github.com/arapelle/arba-core
C++ core tools.
https://github.com/arapelle/arba-core
cpp cpp-library cpp20 cpp20-library hash uuid
Last synced: 24 days ago
JSON representation
C++ core tools.
- Host: GitHub
- URL: https://github.com/arapelle/arba-core
- Owner: arapelle
- License: mit
- Created: 2020-09-02T13:31:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-11-08T00:17:09.000Z (4 months ago)
- Last Synced: 2025-11-08T02:28:51.982Z (4 months ago)
- Topics: cpp, cpp-library, cpp20, cpp20-library, hash, uuid
- Language: C++
- Homepage:
- Size: 258 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Concept #
C++ core tools
- Host TO World / World TO Host (htow/wtoh)
- Scope-Bound Resource Management (sbrm)
- Trim string
...
# Install #
## Requirements ##
Binaries:
- A C++20 compiler (ex: g++-14)
- CMake 3.26 or later
Testing Libraries (optional):
- [Google Test](https://github.com/google/googletest) 1.14 or later (optional)
## Clone
```
git clone https://github.com/arapelle/arba-core
```
## Use with `conan`
Create the conan package.
```
conan create . --build=missing -c
```
Add a requirement in your conanfile project file.
```python
def requirements(self):
self.requires("arba-core/0.32.0")
```
## Quick Install ##
There is a cmake script at the root of the project which builds the library in *Release* mode and install it (default options are used).
```
cd /path/to/arba-core
cmake -P cmake/scripts/quick_install.cmake
```
Use the following to quickly install a different mode.
```
cmake -P cmake/scripts/quick_install.cmake -- TESTS BUILD Debug DIR /tmp/local
```
## Uninstall ##
There is a uninstall cmake script created during installation. You can use it to uninstall properly this library.
```
cd /path/to/installed-arba-core/
cmake -P uninstall.cmake
```
# How to use
## Example - Trim string
```c++
#include
#include
#include
int main()
{
std::cout << core::trim_view(" __example__ ") << std::endl;
std::cout << "EXAMPLE SUCCESS" << std::endl;
return EXIT_SUCCESS;
}
```
# License
[MIT License](./LICENSE.md) © arba-core