Skip to content

Add ArrayList string splitting API - #505

Merged
Frotty merged 2 commits into
masterfrom
codex-lua-collections
Oct 4, 2026
Merged

Frotty merged 2 commits into
masterfrom
codex-lua-collections

Conversation

@Frotty

@Frotty Frotty commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Consumers migrating to specialized collections currently have to allocate a LinkedList when splitting strings. Add string.splitToArray(delimiter) returning ArrayList<string>, while retaining the existing split API.

The new API preserves leading, repeated and trailing empty fields, advances by the complete delimiter, preserves null input and treats an empty delimiter as one unchanged field. The caller owns the returned list.

Validation: grill typecheck --quiet passed; grill test StringUtilsTests --quiet passed 10/10 tests, including null input, empty fields and multi-character delimiters. The null-input regression failed before its fix. No compiler changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T14:20:55.320668Z 3d0b543 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty

Frotty commented Oct 4, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 05d3939b11

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread wurst/util/StringUtils.wurst
@Frotty

Frotty commented Oct 4, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 3d0b5437c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit 110252d into master Oct 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant