[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/TemplateNormalizations/ -> OptimizeChooseText.php (summary)

(no description)

File Size: 142 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OptimizeChooseText:: (6 methods):
  adjustTextNodes()
  getPrefixLength()
  getTextContent()
  optimizeChoose()
  optimizeLeadingText()
  optimizeTrailingText()


Class: OptimizeChooseText  - X-Ref


adjustTextNodes($childType, $pos, $len = PHP_INT_MAX)   X-Ref
Adjust length of the text nodes of current xsl:choose element's branches

param: string  $childType Either firstChild or lastChild
param: integer $pos
param: integer $len
return: void

getPrefixLength(array $strings)   X-Ref
Compute the number of leading characters common to all strings

param: string[] $strings
return: integer

getTextContent($childType)   X-Ref
Get the text content of the firstChild/lastChild of each branch if they are all text nodes

param: string   $childType Either firstChild or lastChild
return: string[]            List of strings or an empty array

optimizeChoose()   X-Ref
{@inheritdoc}


optimizeLeadingText()   X-Ref
Move common leading text outside of current choose

return: void

optimizeTrailingText()   X-Ref
Move common trailing text outside of current choose

return: void



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1