2 calls to token_scan()

TokenScanTest::testTokenScan in modules/system/system.test
Scans dummy text, then tests the output.
token_replace in includes/token.inc
Replaces all tokens in a given string with appropriate values.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.