[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/JavaScript/ -> RegexpConvertor.php (summary)

(no description)

Copyright: Copyright (c) 2010-2022 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 289 lines (47 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 14 functions

  toJS()
  convertUnicodeCharacters()
  escapeLineTerminators()
  serializeOption()
  serializeCapturingSubpatternStart()
  serializeNonCapturingSubpatternStart()
  serializeCapturingSubpatternEnd()
  serializeNonCapturingSubpatternEnd()
  serializeCharacterClass()
  serializeLookaheadAssertionStart()
  serializeNegativeLookaheadAssertionStart()
  serializeLookaheadAssertionEnd()
  serializeNegativeLookaheadAssertionEnd()
  unfoldUnicodeProperties()

Functions
Functions that are not part of a class:

toJS($regexp, $isGlobal = false)   X-Ref
Convert a PCRE regexp to a JavaScript regexp

return: string           JavaScript regexp
param: string $regexp   PCRE regexp
param: bool   $isGlobal Whether the global flag should be set

convertUnicodeCharacters($str, $inCharacterClass, $dotAll)   X-Ref
Replace Unicode characters and properties in a string

NOTE: does not support \X

return: string                   Modified string
param: string $str              Original string
param: bool   $inCharacterClass Whether this string is in a character class
param: bool   $dotAll           Whether PCRE_DOTALL is set

escapeLineTerminators($regexp)   X-Ref
Escape line terminators in given regexp

return: string         Modified regexp
param: string $regexp Original regexp

serializeOption(array $tok)   X-Ref
No description

serializeCapturingSubpatternStart(array $tok)   X-Ref
No description

serializeNonCapturingSubpatternStart(array $tok)   X-Ref
No description

serializeCapturingSubpatternEnd(array $tok)   X-Ref
No description

serializeNonCapturingSubpatternEnd(array $tok)   X-Ref
No description

serializeCharacterClass(array $tok)   X-Ref
No description

serializeLookaheadAssertionStart(array $tok)   X-Ref
No description

serializeNegativeLookaheadAssertionStart(array $tok)   X-Ref
No description

serializeLookaheadAssertionEnd(array $tok)   X-Ref
No description

serializeNegativeLookaheadAssertionEnd(array $tok)   X-Ref
No description

unfoldUnicodeProperties($str, $inCharacterClass, $dotAll)   X-Ref
Replace Unicode properties in a string

NOTE: does not support \X

return: string                   Modified string
param: string $str              Original string
param: bool   $inCharacterClass Whether this string is in a character class
param: bool   $dotAll           Whether PCRE_DOTALL is set



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1