Lines Matching defs:text
24 // returns first $count letters from $text in lowercase
166 // fifth column is the displayed text for links; set below
304 // sort dates descending by default; text ascending
367 private function first(string $text, $count): string
369 return ($count > 0) ? PhpString::substr(PhpString::strtolower($text), 0, $count) : '';
1029 * Return the first part of the text according to the extent given.
1031 * @param string $text
1032 * @param string $extent c? = ? chars, w? = ? words, l? = ? lines, ~? = search up to text/char/symbol
1033 * @param string $more symbol to show if more text
1035 private function shorten(string $text, string $extent, string $more = '... '): string
1041 $result = substr($text, 0, $cnt);
1042 if ($cnt > 0 && strlen($result) < strlen($text)) {
1047 $words = str_word_count($text, 1, '.');
1054 $lines = explode("\n", $text);
1062 $result = strstr($text, (string) $cnt, true);
1065 $result = $text;