/** * Callback for custom SQLite function; creates a substring * * @internal * * @param string $string The string to take a substring of * @param integer $start The one-based position to start the substring at * @param integer $length The length of the substring to take * @return string The substring */ public static function sqliteSubstr($string, $start, $length) { return fUTF8::sub($string, $start - 1, $length); }