Home
last modified time | relevance | path

Searched refs:text (Results 1 - 25 of 52) sorted by relevance

123

/dokuwiki/inc/
H A Dcompatibility.php13 * @param string $text
16 function ctype_space($text) {
17 if(!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCII chars
18 if(trim($text) === '') return true;
28 * @param string $text
31 function ctype_digit($text) {
32 if(!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCII chars
33 if(preg_match('/^\d+$/', $text)) return true;
H A DMailer.class.php27 protected $text = ''; variable
35 protected $replacements = array('text'=> array(), 'html' => array());
181 * Set the text and HTML body and apply replacements
189 * @param string $text plain text body
190 * @param array $textrep replacements to apply on the text part
192 * @param string $html the HTML body, leave null to create it from $text
195 public function setBody($text, $textrep = null, $htmlrep = null, $html = null, $wrap = true) {
200 // create HTML from text if not given
202 $html = $text;
240 $text = str_replace('@'.strtoupper($key).'@', $substitution, $text); global() variable
271 $this->text = $text; global() variable
379 $text = trim($matches[1]); global() variable
382 $text = ''; global() variable
407 $text = \\dokuwiki\\Utf8\\Clean::deaccent($text); global() variable
408 $text = \\dokuwiki\\Utf8\\Clean::strip($text); global() variable
412 $text = '=?UTF-8?B?'.base64_encode($text).'?='; global() variable
415 $text = ''; global() variable
[all...]
H A Dform.php389 * Create a form element for a textarea containing wiki text.
391 * a name of 'wikitext' and id 'wiki__text'. The text will
394 * @param string $text Text to fill the field with.
400 function form_makeWikiText($text, $attrs=array()) {
401 $elem = array('_elem'=>'wikitext', '_text'=>$text,
435 * The label text will be printed before the input.
461 * The label text will be printed after the input.
486 * Create a form element for a text input element with label.
610 * The list of values can be strings, arrays of (value,text),
619 * @param string[]|array[] $values The list of values can be strings, arrays of (value,text),
645 $text = null; global() variable
696 $text = null; global() variable
1065 $text = $value; global() variable
[all...]
H A Dhttputils.php288 * @param string $text
290 function http_status($code = 200, $text = '') {
333 if($text == '' && isset($stati[$code])) {
334 $text = $stati[$code]; variable
340 header("Status: {$code} {$text}", true);
342 header($server_protocol." {$code} {$text}", true, $code);
344 header("HTTP/1.1 {$code} {$text}", true, $code);
H A Dcommon.php63 * @param string $string line of text
681 * returns true if the text contains any bad words
699 * @param string $text - optional text to check, if not given the globals are used
702 function checkwordblock($text = '') {
714 if(!$text) $text = "$PRE $TEXT $SUF $SUM";
716 // we prepare the text a tiny bit to prevent spammers circumventing URL checks
718 $text = preg_replace( variable
721 $text
1013 $text = preg_replace("/(\\015\\012)|(\\015)/", "\\012", $text); global() variable
1035 $text = str_replace("\\012", "\\015\\012", $text); global() variable
1215 $text = io_readWikiPage(wikiFN($id, $rev), $id, $rev); global() variable
2102 $text = preg_replace('/^(\\/\\/|\\/\\*)[@#]\\s+sourceMappingURL=.*?(\\*\\/)?$/im', '\\\\1\\\\2', $text); global() variable
[all...]
/dokuwiki/inc/Ui/
H A DPageConflict.php14 protected $text; variable
20 * @param string $text wiki text
23 public function __construct($text = '', $summary = '')
25 $this->text = $text; variable
48 $form->setHiddenField('wikitext', $this->text);
59 (new Diff($this->text, false))->show();
H A DPageView.php14 protected $text; variable
19 * @param null|string $text wiki text or null for showing $ID
21 public function __construct($text = null)
23 $this->text = $text; variable
43 if ($this->text !== null || $REV) {
49 if ($this->text !== null) {
56 $html = html_secedit(p_render('xhtml', p_get_instructions($this->text), $info), $secedit);
H A DPageDraft.php29 $text = $draft->getDraftText(); variable
34 (new Diff($text, false))->show();
41 $form->setHiddenField('wikitext', $text);
/dokuwiki/inc/parser/
H A Dcode.php15 * @param string $text
19 public function code($text, $language = null, $filename = '') {
29 $text = str_replace("\n", "\r\n", $text); variable
33 header("Content-Type: text/plain; charset=utf-8");
36 echo trim($text, "\r\n");
46 * @param string $text
50 public function file($text, $language = null, $filename = '') {
51 $this->code($text, $language, $filename);
H A Drenderer.php172 * @param string $text the text to display
175 public function toc_additem($id, $text, $level) {
181 * @param string $text the text to display
185 public function header($text, $level, $pos) {
203 * Render plain text data
205 * @param string $text
207 public function cdata($text) {
382 * Output unformatted $text
[all...]
H A Dmetadata.php9 * Some simplified rendering to $doc is done to gather the page's (text-only) abstract.
109 * Render plain text data
114 * @param $text
116 public function cdata($text)
122 $this->doc .= $text;
124 $this->captured += strlen($text);
134 * @param string $text the text to display
137 public function toc_additem($id, $text, $level)
146 'title' => $text,
[all...]
H A Dxhtml.php144 // check its not a placeholder that indicates actual footnote text is elsewhere
190 * @param string $text the text to display
193 public function toc_additem($id, $text, $level) {
198 $this->toc[] = html_mktocitem($id, $text, $level - $conf['toptoclevel'] + 1);
205 * @param string $text the text to display
209 public function header($text, $level, $pos) {
212 if(blank($text)) return; //skip empty headlines
214 $hid = $this->_headerToLink($text, tru
684 $text = substr($text, 1); global() variable
687 $text = substr($text, 0, -1); global() variable
[all...]
H A Dxhtmlsummary.php39 public function header($text, $level, $pos) {
41 $this->info['sum_pagetitle'] = $text;
45 $this->doc .= $this->_xmlEntities($text);
/dokuwiki/lib/scripts/
H A Dtextselection.js63 * Inserts the given text at the current cursor position or replaces the current
67 * @param {string} text the new text to be pasted
71 * @param {boolean} opts.nosel set true if new text should not be selected
73 function pasteText(selection,text,opts){
78 selection.obj.value.substring(0, selection.start) + text +
83 // Opera replaces \n by \r\n when inserting text.
84 selection.end = selection.start + text.replace(/\r?\n/g, '\r\n').length;
86 selection.end = selection.start + text.length;
113 var text
[all...]
H A Dcookie.js22 var text = [],
36 text.push(encodeURIComponent(key)+'#'+encodeURIComponent(val));
39 jQuery.cookie(this.name, text.join('#'), {expires: 365, path: DOKU_COOKIE_PARAM.path, secure: DOKU_COOKIE_PARAM.secure});
59 var text, parts, i;
63 text = jQuery.cookie(this.name);
64 if(text){
65 parts = text.split('#');
/dokuwiki/inc/Utf8/
H A DAsian.php72 * Surround all Asian words in the given text with the given separator
74 * @param string $text Original text containing asian words
78 public static function separateAsianWords($text, $sep = ' ')
81 $asia = @preg_replace('/(' . self::REGEXP . ')/u', $sep . '\1' . $sep, $text);
82 if (!is_null($asia)) $text = $asia; // recover from regexp falure
84 return $text;
88 * Split the given text into separate parts
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A DCaption.php46 * Handles `<media:text>` captions as defined in Media RSS.
90 * Caption text
95 var $text; variable
103 public function __construct($type = null, $lang = null, $startTime = null, $endTime = null, $text = null)
109 $this->text = $text; variable
170 * Get the text of the caption
176 if ($this->text !== null)
178 return $this->text;
187 * @return string|null Either 'text' o
[all...]
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DOptions.php9 * commands and even generates a help text from this setup.
75 * Sets the help text for the tool itself
85 * Sets the help text for the tools commands itself
110 * @param string $help help text
155 * @param string $help help text for this option
366 $text = ''; variable
377 $text .= $this->colors->wrap('USAGE:', Colors::C_BROWN);
378 $text .= "\n";
379 $text .= ' ' . $this->bin;
382 $text
[all...]
H A DColors.php116 * Returns the given text wrapped in the appropriate color and reset code
118 * @param string $text string to wrap
123 public function wrap($text, $color)
125 return $this->getColorCode($color) . $text . $this->getColorCode('reset');
/dokuwiki/inc/Action/
H A DRevert.php41 $text = ''; variable
44 $text = rawWiki($ID, $REV); variable
45 if (!$text) throw new ActionException(); //something went wrong
50 if (checkwordblock($text)) {
55 saveWikiText($ID, $text, $sum, false);
H A DConflict.php35 $text = con($PRE, $TEXT, $SUF); variable
36 (new Ui\PageConflict($text, $SUM))->show();
/dokuwiki/inc/Parsing/Handler/
H A DPreformatted.php9 protected $text =''; variable
31 $this->text .= "\n";
34 $this->text .= $call[1][0];
37 if (trim($this->text)) {
38 $this->callWriter->writeCall(array('preformatted', array($this->text), $this->pos));
/dokuwiki/inc/Form/
H A DTextareaElement.php12 * @var string the actual text within the area
14 protected $text; variable
18 * @param string $label The label text for this element
37 $this->text = cleanText($value); variable
40 return $this->text;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DRC4.php306 * @param string $text
308 * @return string $text
310 function _crypt($text, $mode)
328 $len = strlen($text);
337 $text[$k] = $text[$k] ^ chr($keyStream[($ksj + $ksi) & 255]);
340 return $text;
/dokuwiki/inc/Extension/
H A DPluginInterface.php78 * @return string wiki text
144 * output text string through the parser, allows dokuwiki markup to be used
147 * @param string $text wiki markup to parse
151 public function render_text($text, $format = 'xhtml');

Completed in 36 milliseconds

123