/String

A lightweight, dependency-free C++ custom string, with homemade formatting

Primary LanguageC++MIT LicenseMIT

String

A lightweight, dependency-free C++ custom string.

language

Install

Use cmake and add_subdirectory(String), then the files to include are located in STRING_INCLUDES, the files to compile in STRING_SOURCES

How to use

#include <Ark/String.hpp>

String text("Hello, world!");

Details

Compiled with MSVC 15.9 (Win32)

  • Debug mode: sizeof(String) = 8 bytes
  • Release mode: sizeof(String) = 8 bytes
  • all tests are passing

Compiled with MSVC 15.9 (64bits)

  • Debug mode: sizeof(String) = 16 bytes
  • Release mode: sizeof(String) = 16 bytes
  • all tests are passing