Lines Matching refs:string

36      * Generator string
78 * Get the version string for the generator
80 * @return string
88 * Truncates a string to a certain length at the most sensible point.
89 * First, if there's a '.' character near the end of the string, the string is truncated after this character.
90 * If there is no '.', the string is truncated after the last ' ' character.
91 * If the string is truncated, " ..." is appended.
92 * If the string is already shorter than $length, it is returned unchanged.
94 * @param string $string A string to be truncated.
95 * @param int $length the maximum length the string should be truncated to
96 * @return string the truncated string
98 public static function iTrunc($string, $length)
100 if (strlen($string) <= $length) {
101 return $string;
104 $pos = strrpos($string, ".");
106 $string = substr($string, 0, $length - 4);
107 $pos = strrpos($string, ".");
110 return substr($string, 0, $pos + 1)." ...";
113 $pos = strrpos($string, " ");
115 $string = substr($string, 0, $length - 4);
116 $pos = strrpos($string, " ");
119 return substr($string, 0, $pos)." ...";
122 return substr($string, 0, $length - 4)." ...";
137 * Creates a string containing all additional elements specified in
141 * @param string $indentString a string that will be inserted before every generated line
142 * @return string the XML tags corresponding to $additionalElements
172 * @return string the feed's complete text
182 * @return string the feed cache filename
197 * @param string $filename
232 * @param string $filename optional the filename where a recent version of the feed is saved. If not specified,
254 * @param string $filename optional the filename where a recent version of the feed is saved. If not