/**
  * Converts input string to an ASCII based file name prefix
  *
  * @param	string		String to base output on
  * @param	integer		Number of characters in the string
  * @param	string		Character to put in the end of string to merge it with the next value.
  * @return	string		String
  * @deprecated since TYPO3, 4.3, will be removed in TYPO3 4.5, please use the "simulatestatic" sysext directly
  * @todo	Deprecated but still used in the Core!
  */
 function fileNameASCIIPrefix($inTitle, $titleChars, $mergeChar = '.')
 {
     t3lib_div::logDeprecatedFunction();
     $out = $this->csConvObj->specCharsToASCII($this->renderCharset, $inTitle);
     // Get replacement character
     $replacementChar = $this->config['config']['simulateStaticDocuments_replacementChar'];
     $replacementChars = '_\\-' . ($replacementChar != '_' && $replacementChar != '-' ? $replacementChar : '');
     $out = preg_replace('/[^A-Za-z0-9_-]/', $replacementChar, trim(substr($out, 0, $titleChars)));
     $out = preg_replace('/([' . $replacementChars . ']){2,}/', '\\1', $out);
     $out = preg_replace('/[' . $replacementChars . ']?$/', '', $out);
     $out = preg_replace('/^[' . $replacementChars . ']?/', '', $out);
     if (strlen($out)) {
         $out .= $mergeChar;
     }
     return $out;
 }