Changeset 6057 for trunk/filemanager/tp
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- Location:
- trunk/filemanager/tp/dompdf
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/tp/dompdf/dompdf.php
r3019 r6057 229 229 230 230 if ( isset($opts['t']) ) { 231 $arr = split(',',$opts['t']);231 $arr = preg_split('/,/',$opts['t']); 232 232 $types = array(); 233 233 foreach ($arr as $type) -
trunk/filemanager/tp/dompdf/include/block_frame_decorator.cls.php
r3019 r6057 186 186 187 187 if ( $frame->get_node()->nodeName == "#text") 188 $this->_lines[$this->_cl]["wc"] += count(preg_split( "/\s+/", $frame->get_text()));188 $this->_lines[$this->_cl]["wc"] += count(preg_split('/\s+/', $frame->get_text())); 189 189 190 190 $this->_lines[$this->_cl]["w"] += $w; -
trunk/filemanager/tp/dompdf/include/dompdf.cls.php
r3019 r6057 363 363 //Check if the css file is for an accepted media type 364 364 //media not given then always valid 365 $formedialist = preg_split( "/[\s\n,]/", $link->getAttribute("media"),-1, PREG_SPLIT_NO_EMPTY);365 $formedialist = preg_split('/[\s\n,]/', $link->getAttribute("media"),-1, PREG_SPLIT_NO_EMPTY); 366 366 if ( count($formedialist) > 0 ) { 367 367 $accept = false; -
trunk/filemanager/tp/dompdf/include/stylesheet.cls.php
r3019 r6057 357 357 358 358 // Parse the selector 359 //$s = preg_split( "/([ :>.#+])/", $selector, -1, PREG_SPLIT_DELIM_CAPTURE);359 //$s = preg_split('/([ :>.#+])/', $selector, -1, PREG_SPLIT_DELIM_CAPTURE); 360 360 361 361 $delimiters = array(" ", ">", ".", "#", "+", ":", "["); … … 883 883 */ 884 884 private function _parse_import($url) { 885 $arr = preg_split( "/[\s\n,]/", $url,-1, PREG_SPLIT_NO_EMPTY);885 $arr = preg_split('/[\s\n,]/', $url,-1, PREG_SPLIT_NO_EMPTY); 886 886 $url = array_shift($arr); 887 887 $accept = false; -
trunk/filemanager/tp/dompdf/include/text_frame_reflower.cls.php
r3019 r6057 363 363 // faster than doing a single-pass character by character scan. Heh, 364 364 // yes I took the time to bench it ;) 365 $words = array_flip(preg_split( "/[\s-]+/u",$str, -1, PREG_SPLIT_DELIM_CAPTURE));365 $words = array_flip(preg_split('/[\s-]+/u',$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 366 366 array_walk($words, create_function('&$val,$str', 367 367 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); … … 371 371 372 372 case "pre": 373 $lines = array_flip(preg_split( "/\n/u", $str));373 $lines = array_flip(preg_split('/\n/u', $str)); 374 374 array_walk($lines, create_function('&$val,$str', 375 375 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); … … 398 398 case "pre-wrap": 399 399 // Find the longest word (i.e. minimum length) 400 $lines = array_flip(preg_split( "/\n/", $text));400 $lines = array_flip(preg_split('/\n/', $text)); 401 401 array_walk($lines, create_function('&$val,$str', 402 402 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');'));
Note: See TracChangeset
for help on using the changeset viewer.