QTP Script to find a function where it is being used in the script

Hi All,

 

I have a requirement where i need to develop a utility to find function/method ( these functions are developed and saved in shared function library)where all it is being used in our scripts. 

For example

a. i search for funcion "Login" in "Script A" ( This script is saved in my local drive) report that this function used in script A. 

b. Replace with new function if it needs to be changed.

 

Can anyone help me here. Please share scripts if you have anything.  

 

Thanks in Advance.