CSRT-NTUA / AlgoPlus

AlgoPlus is a C++17 library for complex data structures and algorithms
https://csrt-ntua.github.io/AlgoPlus
Apache License 2.0
141 stars 20 forks source link

Add string find-and-replace functions and tests #31

Closed Shu-AFK closed 5 months ago

Shu-AFK commented 5 months ago

This commit introduces two functions in the string algorithms: 'find_and_replace' and 'find_and_replace_regex'. The first function finds all occurrences of a given substring in a string and replaces them with a new substring. The second function does the same but supports regular expression patterns. + Added missing lib in hash_table class