Moved function to general module.
Merge branch 'master' of github.com:lfex/lutil