Skip to content

Implements find and replace algorithms that scan for a character several characters at a time.

License

Notifications You must be signed in to change notification settings

tomboehmer/findandreplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find and Replace

Glibc uses a method for scanning several bytes at a time for the null-terminator in its implementation or strlen. This library generalizes this approach to allow finding/replacing any character in a string:

char const* findchr(char const* begin, char const* end, char needle);
void replacechr(char* begin, char* end, char before, char after);

About

Implements find and replace algorithms that scan for a character several characters at a time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published