widget: Rename API

For consistency.
widget: Add match flags for search regex

For API consistency.
all: Rename API
tests: Fix for API change