HELP: pair-value search & replace

Does anyone know to quickly make a multiple search & replace app (in either C or C++)? Am not interested in searching multiple files, just one file. I want to translate a list of unicode characters into something else (pair-value lookup table) ... so it's basically a crude/naive translator!

I just need a quick pseudocode to get me started. Or maybe there's an opensource/free code already written?