ammachado opened a new pull request, #23388: URL: https://github.com/apache/camel/pull/23388
# Description Extract Simple language math and string functions from the monolithic `SimpleFunctionExpression` into dedicated `SimpleLanguageFunctionFactory` implementations, continuing the refactoring started in #23382. - `MathFunctionFactory`: handles `abs`, `floor`, `ceil`, `sum`, `max`, `min`, `average` (both expression and CSimple code-gen paths) - `StringFunctionFactory`: handles `replace`, `substring`, `substringBefore`, `substringAfter`, `substringBetween`, `contains`, `trim`, `val`, `capitalize`, `pad`, `concat`, `quote`, `safeQuote`, `unquote`, `uppercase`, `lowercase`, `length`, `size`, `normalizeWhitespace` (both paths) - Consolidates the full `codeSplitSafe` implementation into `SimpleFunctionHelper`, deprecating the delegation stub on `SimpleFunctionExpression` - Both factories are registered in `SimpleFunctionDispatcher.BUILT_INS` - Reduces `SimpleFunctionExpression` from ~3600 to ~2300 lines _Claude Code on behalf of Adriano Machado_ # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
