Thread:Project:Support desk/where i find title-to-url rewriting function?/reply

What you search is done in includes/Title.php. The results are available in MediaWiki in the Title object.