Skip to content

String find and replace program using Boyer-Moore Horspool algorithm programmed in C.

Notifications You must be signed in to change notification settings

emreblgn/Find-and-Replace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Find-and-Replace

String find and replace program using Boyer-Moore Horspool algorithm programmed in C.

The program has 3 main part:

  1. Read the data including file name, the word to be changed, the word to be replaced and case sensitive or not flag.

  2. Boyer-Moore Horspool algorithm.

    • Put the string in the file into an array.
    • Find every words to be changed and replace with new word.
    • Write the array into same file.
  3. Report.

    • Write number of the words changed and process time to screen.

Sample Inputs and Outputs:

Input:

Process-1 and Output-1 (Case sensitive off)

Process-2 and Output-2 (Case sensitive on)

About

String find and replace program using Boyer-Moore Horspool algorithm programmed in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages