Template:Str find0/doc

The Template:str_find0 returns first appearance of a substring in a string, otherwise returns -1. This template uses sub-template:str sub find which does the routine.

Usage

 * It is zero-based. So no need for extra calculations to use it in other templates.

Limitations

 * Handles strings up to 90 characters.

Performance

 * Very fast on short strings. Uses enhanced algorithm to run the subroutine only when needed.