strslice

Simple implementation of string slices with some of the strutils ported or wrapped to work on them. String slices offer a performance enhancement when working with large amounts of slices from one base string

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:23

Installation

nimble install strslice
choosenim install strslice
git clone https://github.com/PMunch/strslice

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
strslice - - - - - - -

Source

Repository https://github.com/PMunch/strslice
Homepage https://github.com/PMunch/strslice
Registry Source nimble_official

README

strslice

This is an implementation of string slices that works on a common underlying string shared through a reference instead of copying parts of the string. This has the benefit of not requiring the time and memory of copying parts of the string over and over. The only thing that get's copied is the reference of the underlying string, and two new indices for the start and stop of the string slice. This means that by changing the original string, any string slice that was created from it will be updated as well. The benefit of using string slices comes when copying parts of the string to pass on, for example in a combinatorial parser.

This file is automatically generated from the documentation found in strslice.nim. Use nim doc strslice.nim to get the full documentation.