original_string: function initCaseFolding($charset) {
  			// Only process if the case table is not yet loaded:
  		if (is_array($this->caseFolding[$charset])) {
  			return 1;
  		}
  
  			// Use cached version if possible
  		$cacheFile = t3lib_div::getFileAbsFileName('typo3temp/cs/cscase_' . $charset . '.tbl');
  		if ($cacheFile && @is_file($cacheFile)) {
  			$this->caseFolding[$charset] = unserialize(t3lib_div::getUrl($cacheFile));
  			return 2;
  		}
  
  			// init UTF-8 conversion for this charset
  		if (!$this->initCharset($charset)) {
  			return FALSE;
  		}
  
  			// UTF-8 case folding is used as the base conversion table
  		if (!$this->initUnicodeData('case')) {
  			return FALSE;
  		}
  
  		$nochar = chr($this->noCharByteVal);
  		foreach ($this->parsedCharsets[$charset]['local'] as $ci => $utf8) {
  				// reconvert to charset (don't use chr() of numeric value, might be muli-byte)
  			$c = $this->utf8_decode($utf8, $charset);
  
  				// $cc = $this->conv($this->caseFolding['utf-8']['toUpper'][$utf8], 'utf-8', $charset);
  			$cc = $this->utf8_decode($this->caseFolding['utf-8']['toUpper'][$utf8], $charset);
  			if ($cc != '' && $cc != $nochar) {
  				$this->caseFolding[$charset]['toUpper'][$c] = $cc;
  			}
  
  				// $cc = $this->conv($this->caseFolding['utf-8']['toLower'][$utf8], 'utf-8', $charset);
  			$cc = $this->utf8_decode($this->caseFolding['utf-8']['toLower'][$utf8], $charset);
  			if ($cc != '' && $cc != $nochar) {
  				$this->caseFolding[$charset]['toLower'][$c] = $cc;
  			}
  
  				// $cc = $this->conv($this->caseFolding['utf-8']['toTitle'][$utf8], 'utf-8', $charset);
  			$cc = $this->utf8_decode($this->caseFolding['utf-8']['toTitle'][$utf8], $charset);
  			if ($cc != '' && $cc != $nochar) {
  				$this->caseFolding[$charset]['toTitle'][$c] = $cc;
  			}
  		}
  
  			// add the ASCII case table
  		for ($i = ord('a'); $i <= ord('z'); $i++) {
  			$this->caseFolding[$charset]['toUpper'][chr($i)] = chr($i - 32);
  		}
  		for ($i = ord('A'); $i <= ord('Z'); $i++) {
  			$this->caseFolding[$charset]['toLower'][chr($i)] = chr($i + 32);
  		}
  
  		if ($cacheFile) {
  			t3lib_div::writeFileToTypo3tempDir($cacheFile, serialize($this->caseFolding[$charset]));
  		}
  
  		return 3;
  	}
code: function initCaseFolding($charset) {
  			// Only process if the case table is not yet loaded:
  		if (is_array($this->caseFolding[$charset])) {
  			return 1;
  		}
  
  			// Use cached version if possible
  		$cacheFile = t3lib_div::getFileAbsFileName('typo3temp/cs/cscase_' . $charset . '.tbl');
  		if ($cacheFile && @is_file($cacheFile)) {
  			$this->caseFolding[$charset] = unserialize(t3lib_div::getUrl($cacheFile));
  			return 2;
  		}
  
  			// init UTF-8 conversion for this charset
  		if (!$this->initCharset($charset)) {
  			return FALSE;
  		}
  
  			// UTF-8 case folding is used as the base conversion table
  		if (!$this->initUnicodeData('case')) {
  			return FALSE;
  		}
  
  		$nochar = chr($this->noCharByteVal);
  		foreach ($this->parsedCharsets[$charset]['local'] as $ci => $utf8) {
  				// reconvert to charset (don't use chr() of numeric value, might be muli-byte)
  			$c = $this->utf8_decode($utf8, $charset);
  
  				// $cc = $this->conv($this->caseFolding['utf-8']['toUpper'][$utf8], 'utf-8', $charset);
  			$cc = $this->utf8_decode($this->caseFolding['utf-8']['toUpper'][$utf8], $charset);
  			if ($cc != '' && $cc != $nochar) {
  				$this->caseFolding[$charset]['toUpper'][$c] = $cc;
  			}
  
  				// $cc = $this->conv($this->caseFolding['utf-8']['toLower'][$utf8], 'utf-8', $charset);
  			$cc = $this->utf8_decode($this->caseFolding['utf-8']['toLower'][$utf8], $charset);
  			if ($cc != '' && $cc != $nochar) {
  				$this->caseFolding[$charset]['toLower'][$c] = $cc;
  			}
  
  				// $cc = $this->conv($this->caseFolding['utf-8']['toTitle'][$utf8], 'utf-8', $charset);
  			$cc = $this->utf8_decode($this->caseFolding['utf-8']['toTitle'][$utf8], $charset);
  			if ($cc != '' && $cc != $nochar) {
  				$this->caseFolding[$charset]['toTitle'][$c] = $cc;
  			}
  		}
  
  			// add the ASCII case table
  		for ($i = ord('a'); $i <= ord('z'); $i++) {
  			$this->caseFolding[$charset]['toUpper'][chr($i)] = chr($i - 32);
  		}
  		for ($i = ord('A'); $i <= ord('Z'); $i++) {
  			$this->caseFolding[$charset]['toLower'][chr($i)] = chr($i + 32);
  		}
  
  		if ($cacheFile) {
  			t3lib_div::writeFileToTypo3tempDir($cacheFile, serialize($this->caseFolding[$charset]));
  		}
  
  		return 3;
  	}
code_tokens: function initCaseFolding ( $ charset ) { // Only process if the case table is not yet loaded: if ( is_array ( $ this -> caseFolding [ $ charset ] ) ) { return 1 ; } // Use cached version if possible $ cacheFile = t3lib_div :: getFileAbsFileName ( 'typo3temp/cs/cscase_' . $ charset . '.tbl' ) ; if ( $ cacheFile && @ is_file ( $ cacheFile ) ) { $ this -> caseFolding [ $ charset ] = unserialize ( t3lib_div :: getUrl ( $ cacheFile ) ) ; return 2 ; } // init UTF-8 conversion for this charset if ( ! $ this -> initCharset ( $ charset ) ) { return FALSE ; } // UTF-8 case folding is used as the base conversion table if ( ! $ this -> initUnicodeData ( 'case' ) ) { return FALSE ; } $ nochar = chr ( $ this -> noCharByteVal ) ; foreach ( $ this -> parsedCharsets [ $ charset ] [ 'local' ] as $ ci => $ utf8 ) { // reconvert to charset (don't use chr() of numeric value, might be muli-byte) $ c = $ this -> utf8_decode ( $ utf8 , $ charset ) ; // $cc = $this->conv($this->caseFolding['utf-8']['toUpper'][$utf8], 'utf-8', $charset); $ cc = $ this -> utf8_decode ( $ this -> caseFolding [ 'utf-8' ] [ 'toUpper' ] [ $ utf8 ] , $ charset ) ; if ( $ cc != '' && $ cc != $ nochar ) { $ this -> caseFolding [ $ charset ] [ 'toUpper' ] [ $ c ] = $ cc ; } // $cc = $this->conv($this->caseFolding['utf-8']['toLower'][$utf8], 'utf-8', $charset); $ cc = $ this -> utf8_decode ( $ this -> caseFolding [ 'utf-8' ] [ 'toLower' ] [ $ utf8 ] , $ charset ) ; if ( $ cc != '' && $ cc != $ nochar ) { $ this -> caseFolding [ $ charset ] [ 'toLower' ] [ $ c ] = $ cc ; } // $cc = $this->conv($this->caseFolding['utf-8']['toTitle'][$utf8], 'utf-8', $charset); $ cc = $ this -> utf8_decode ( $ this -> caseFolding [ 'utf-8' ] [ 'toTitle' ] [ $ utf8 ] , $ charset ) ; if ( $ cc != '' && $ cc != $ nochar ) { $ this -> caseFolding [ $ charset ] [ 'toTitle' ] [ $ c ] = $ cc ; } } // add the ASCII case table for ( $ i = ord ( 'a' ) ; $ i <= ord ( 'z' ) ; $ i ++ ) { $ this -> caseFolding [ $ charset ] [ 'toUpper' ] [ chr ( $ i ) ] = chr ( $ i - 32 ) ; } for ( $ i = ord ( 'A' ) ; $ i <= ord ( 'Z' ) ; $ i ++ ) { $ this -> caseFolding [ $ charset ] [ 'toLower' ] [ chr ( $ i ) ] = chr ( $ i + 32 ) ; } if ( $ cacheFile ) { t3lib_div :: writeFileToTypo3tempDir ( $ cacheFile , serialize ( $ this -> caseFolding [ $ charset ] ) ) ; } return 3 ; }
docstring: This function initializes the folding table for a charset other than UTF-8.
  This function is automatically called by the case folding functions.
  
  @param	string		Charset for which to initialize case folding.
  @return	integer		Returns FALSE on error, a TRUE value on success: 1 table already loaded, 2, cached version, 3 table parsed (and cached).
  @access private
docstring_tokens: This function initializes the folding table for a charset other than UTF - 8 . This function is automatically called by the case folding functions .