Skip to content
Snippets Groups Projects
  1. Jan 23, 2023
  2. Jan 18, 2023
  3. Jan 17, 2023
  4. Jan 06, 2023
  5. Dec 22, 2022
  6. Dec 15, 2022
  7. Dec 14, 2022
  8. Dec 13, 2022
  9. Dec 07, 2022
    • Oliver Hader's avatar
      [TASK] Introduce string fragment extraction · f1e1e0bb
      Oliver Hader authored
      When working with variable interpolation and similar scenarios, in
      most cases variables, constants, expressions, ... are embedded in
      a solid string and can only be identified and extracted by the
      corresponding "reader" or "parser".
      
      This string fragment splitter aims to introduce a simpler way for
      extracting and working with these embedded fragments.
      
      Example:
          $pattern = new StringFragmentPattern(
            StringFragmentSplitter::TYPE_EXPRESSION,
            '%[^%]+%'
          );
          $splitter = new StringFragmentSplitter($pattern);
          $collection = $splitter->split(
            'Hello %variable% World!'
            FLAG_UNMATCHED_AS_NULL
          );
      
          // results in having
          // + StringFragment(type: 'raw', value: 'Hello ')
          // + StringFragment(type: 'expression', value: '%variable%')
          // + StringFragment(type: 'raw', value: ' World!')
      
      Resolves: #97553
      Releases: main, 11.5, 10.4
      Change-Id: Ie2b02a247ca884fa44ab7b3ba21214c8ee9bc457
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76947
      
      
      Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
      f1e1e0bb
  10. Dec 06, 2022
  11. Dec 05, 2022
  12. Dec 03, 2022
  13. Dec 01, 2022
  14. Nov 12, 2022
  15. Nov 02, 2022
  16. Oct 19, 2022
  17. Oct 14, 2022
  18. Sep 16, 2022
  19. Sep 13, 2022