Skip to content

HotbitsZA/StringHelper

Repository files navigation

StringHelper

StringHelper is a compact C++17 utility library from Hotbits focused on practical string manipulation, lightweight binary/text conversions, and base64 helpers.

This repository currently contains the modernized V2 API set:

  • cStringHelperLite_V2
    • header-only trim, case conversion, tokenization, and UTF-8 to Latin-1 style conversion helpers
  • cStringHelper_V2
    • broader string, binary, pattern, padding, and convenience conversion helpers
  • cBase64Helper_V2
    • base64 encode/decode helpers with safer C++17 interfaces

The V2 files were created to replace older non-portable and unsafe behavior with a cleaner C++17-friendly implementation.

Requirements

  • CMake 3.16+
  • C++17 compiler

This project is standalone and does not require any third-party dependencies for the default build.

Build

From the project root:

cmake -S . -B build
cmake --build build

Example binaries are written to:

build/bin/

Example Targets

The default build includes:

  • stringHelperLiteExample_V2.bin
  • base64Example_V2.bin
  • stringHelperExample_V2.bin

What The Examples Show

  • stringHelperLiteExample_V2.bin
    • trimming, replacement, splitting, and UTF-8 conversion
  • base64Example_V2.bin
    • base64 round-trip encoding and decoding
  • stringHelperExample_V2.bin
    • hex/binary conversion, case-insensitive compare, padding, and reversible helper encryption

Project Layout

  • StringHelperLite_V2.h
    • header-only lightweight string helper utilities
  • StringHelper_V2.h
    • main StringHelper V2 declarations
  • StringHelper_V2.cpp
    • main StringHelper V2 implementation
  • Base64Helper_V2.h
    • base64 declarations
  • Base64Helper_V2.cpp
    • base64 implementation
  • examples/
    • runnable sample programs

Notes

  • The older pre-V2 helper files are intentionally not part of this project snapshot.
  • The examples are lightweight smoke-style programs rather than a full unit-test suite.

License

This project is licensed under the GNU GPL v3.0. See LICENSE.

About

StringHelper is a compact C++17 utility library from Hotbits focused on practical string manipulation, lightweight binary/text conversions, and base64 helpers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors