string-simple 0.1.0

A library containing some simple string utilities that I use in my other projects.
Documentation
  • Coverage
  • 41.67%
    5 out of 12 items documented5 out of 8 items with examples
  • Size
  • Source code size: 49.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.63 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • KalevGonvick/string-simple
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • KalevGonvick

String Simple

This utility library contains a collection of string functions that I use in my other projects.

How to use

1. Add Dependency

[dependencies]
string-simple = "0.1.0"

2. Use Crate

 use string_simple::builder::StringBuilder;
 const LOOP_COUNT: u8 = 10;

 fn main() {
     let mut new_builder = StringBuilder::new();
     let mut counter = 0;

     while counter < LOOP_COUNT {
         if counter % 2 == 0 {
             new_builder.append("even");
         } else {
             new_builder.append("odd");
         }
         if counter + 1 != LOOP_COUNT {
             new_builder.append(" ");
         }
         counter += 1;
     }
     // result = "even odd even odd..."
     let result = new_builder.build();
 }

Task Checklist

  • 'string builder' struct.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
  • 'replace all' string function.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
  • 'find first' string function.
    • Implementation
    • Test Cases
    • Documentation
    • Benchmark
  • 'append' string function.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
  • 'find all' string function.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark