This method is intend to return a string with highlighted acronyms, definitions and abbreviations.

@param string $string The string to highlight words in

@author Benjamin Carl <opensource@clickalicious.de>

@return string The processed string
323755
public function highlightSpecialWords($string)
    {
        // read specialword-table if not already read-in
        if ($this->_specialWordTable === null) {
            $this->_createSpecialWordTable();
        }

        // iterate over possible existing tags
        foreach ($this->_tags as $tag) {
            // get words for tags
            $words = $this->_specialWordTable[$tag];

            // iterate over words as word => description
            foreach ($words as $word => $description) {
                // replace it with template content if word found
                if (mb_strstr($string, $word)) {
                    // get template for tag
                    $tpl = $this->_templates[$tag];

                    // create HTML code
                    $html = str_replace('{$WORD}', $word, str_replace('{$DESC}', $description, $tpl));

                    // insert HTML into given string
                    $string = str_replace($word, $html, $string);
                }
            }
        }

        // return processed string result
        return $string;
    }
803976
public static function ucWords($string)
    {
        $words = explode(' ', $string);
        $words = array_map('self::ucFirst', $words);

        return implode(' ', $words);
    }
216463
public function quoteName($string)
	{
		return $string[0] === static::$QUOTE_CHARACTER || $string[strlen($string) - 1] === static::$QUOTE_CHARACTER ?
			$string : static::$QUOTE_CHARACTER . $string . static::$QUOTE_CHARACTER;
	}
337029
protected function prefixSuffix($string)
    {
        $prefix = ltrim($string) !== $string ? ' ' : '';

        $suffix = rtrim($string) !== $string ? ' ' : '';

        return (array) array($prefix, $suffix);
    }
290083
public function format($string) {
		
		$string = ucwords(str_replace('&', 'and', strtolower($string)));
		
		if( $this->isRemovingSpaces() ) {
			$string	= str_replace(' ', '', $string);
		}
		
		$string	= strtr($string, ' .\'"', '----');
		if( $this->caseProcessing ) {
			if( $this->isCamelCaseProcessing() ) {
				if( $this->caseProcessing == self::LOWERCAMELCASE ) {
					$string = lcfirst($string);
					// } else
					// if( $case == UPPERCAMELCASE ) {
					// $string = ucfirst($string);
				}
			}
		}
		return convertSpecialChars($string);
	}
1183324
public static function ucfirst($string)
    {
        switch (static::strlen($string)) {
            case 0:
                return '';
            case 1:
                return static::strtoupper($string);
            default:
                return static::strtoupper(static::substr($string, 0, 1)) . static::substr($string, 1);
        }
    }
638897
public static function convertStringToPrefix($string) {
    $words = explode(' ', $string);
    $prefix = '';
    foreach ($words as $word) {
      $prefix .= substr($word, 0, 1);
    }
    return strtoupper($prefix);
  }
466092
public static function underscore($string) {
        return static::cache(array(__METHOD__, $string), function() use ($string) {
            return trim(mb_strtolower(str_replace('__', '_', preg_replace('/([A-Z]{1})/', '_$1', preg_replace('/[^_a-z0-9]+/i', '', preg_replace('/[\s]+/', '_', $string))))), '_');
        });
    }
142157
public function toWords(string $string): string
    {
        $words = \trim(\str_replace(['-', '_'], ' ', $string));

        return \ucwords($words);
    }
236724
public function html($string)
    {
        if (!$string) {
            return $string;
        }

        $result = htmlspecialchars($string, $this->htmlSpecialCharsFlags, $this->encoding);
        return $result;
    }
944976
public static function ucTitle($string)
    {
        $sentences = explode('.', self::strToLower($string));
        $string = '';
        foreach ($sentences as $sentence) {
            $sentence = self::trim($sentence);
            if (!empty($string)) {
                $string .= '.';
            }
            if (!is_numeric(mb_substr($sentence, 0, 1, 'UTF-8'))) {
                $sentence = self::ucFirst($sentence);
                if (!empty($string)) {
                    $string .= ' ';
                }
            }
            $string .= $sentence;
        }

        return $string;
    }
84030
private static function output($string)
    {
        if (self::is_cli()) {
            return $string."\n";
        } else {
            $string=trim($string);
            if (!self::$use_pre) {
                return $string;
            }

            return '<pre '.self::$pre_attributes.'>' . $string . '</pre>';
        }
    }
131767
public static function sprintf($string)
	{
		$language = AnService::get('anahita:language');
		$args = func_get_args();
		if (!empty($args)) {
			$args[0] = $language->_($args[0]);
			return call_user_func_array('sprintf', $args);
		}
		return '';
	}
684991
protected function _obscureString($string)
    {
        $len = strlen($string);
        if ($len > 3) {
            return substr($string, 0, 1) . str_repeat('*', $len - 2) . substr($string, -1);
        }

        return str_repeat('*', $len);
    }
549480
private function getStringToCamelCase( $string )
	{
		$words = preg_split( "#[^a-z0-9]#i", $string );
		$words = array_map( 'ucfirst', $words );

		return join( '', $words );
	}
937900
protected function doUnclassify($string)
    {
        $string = str_replace('\\', '_', $string);
        $parts = explode("_", $string);
        $parts = array_map([$this, "underscore"], $parts);

        return implode("-", $parts);
    }
1351278
public static function toCamelCase(string $string): string
    {
        $words = self::_prepStringForCasing($string);

        if (empty($words)) {
            return '';
        }

        $string = array_shift($words) . implode('', array_map([
                static::class,
                'upperCaseFirst'
            ], $words));

        return $string;
    }