Skip to content

A library containing some simple string utilities that I used in my other projects.

License

Notifications You must be signed in to change notification settings

KalevGonvick/string-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Add more data to benchmark functions for more accurate results.
  • 'string builder' struct.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
    • SIMD?
  • 'replace all' string function.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
    • SIMD?
  • 'find first' string function.
    • Implementation
    • Test Cases
    • Documentation
    • Benchmark
    • SIMD
  • 'append' string function.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
  • 'find all' string function.
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
    • SIMD
  • 'character count' string function
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
    • SIMD
  • 'all possible substring from chars' string function
    • Implementation
    • Test cases
    • Documentation
    • Benchmark
    • SIMD?

About

A library containing some simple string utilities that I used in my other projects.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages