* echo \Phalcon\Text::camelize('coco_bongo'); //CocoBongo
*
*
* @param string $str
* @return string
*/
public static function camelize($str){ }
/**
* Uncamelize strings which are camelized
*
*
* echo \Phalcon\Text::camelize('CocoBongo'); //coco_bongo
*
*
* @param string $str
* @return string
*/
public static function uncamelize($str){ }
/**
* Adds a number to a string or increment that number if it already is defined
*
*
* echo \Phalcon\Text::increment("a"); // "a_1"
* echo \Phalcon\Text::increment("a_1"); // "a_2"
*
*
* @param string $str
* @param string $separator
* @return string
*/
public static function increment($str, $separator=null){ }
/**
* Generates a random string based on the given type. Type is one of the RANDOM_* constants
*
*
* echo \Phalcon\Text::random(Phalcon\Text::RANDOM_ALNUM); //"aloiwkqz"
*
*
* @param int $type
* @param int $length
* @return string
*/
public static function random($type, $length=null){ }
/**
* Check if a string starts with a given string
*
*
* echo \Phalcon\Text::startsWith("Hello", "He"); // true
* echo \Phalcon\Text::startsWith("Hello", "he"); // false
* echo \Phalcon\Text::startsWith("Hello", "he", false); // true
*
*
* @param string $str
* @param string $start
* @param boolean $ignoreCase
* @return boolean
*/
public static function startsWith($str, $start, $ignoreCase=null){ }
/**
* Check if a string ends with a given string
*
*
* echo \Phalcon\Text::endsWith("Hello", "llo"); // true
* echo \Phalcon\Text::endsWith("Hello", "LLO"); // false
* echo \Phalcon\Text::endsWith("Hello", "LLO", false); // true
*
*
* @param string $str
* @param string $end
* @param boolean $ignoreCase
* @return boolean
*/
public static function endsWith($str, $end, $ignoreCase=null){ }
/**
* Lowercases a string, this function makes use of the mbstring extension if available
*
* @param string $str
* @return string
*/
public static function lower($str){ }
/**
* Uppercases a string, this function makes use of the mbstring extension if available
*
* @param string $str
* @return string
*/
public static function upper($str){ }
}
}