Skip to content

Add split usage example - #810

Open
Abod-A wants to merge 1 commit into
thoth-tech:mainfrom
Abod-A:add-split-usage-example
Open

Add split usage example#810
Abod-A wants to merge 1 commit into
thoth-tech:mainfrom
Abod-A:add-split-usage-example

Conversation

@Abod-A

@Abod-A Abod-A commented Aug 5, 2026

Copy link
Copy Markdown

Description

Added a usage example for the SplashKit split utility function. This example demonstrates splitting strings using different delimiter characters, including splitting a CSV string by comma, a sentence by space, and a file path by slash.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Each code file was reviewed to ensure correct syntax and consistent output across all four language versions (C++, Python, C# OOP, C# top-level). The expected output was verified and a screenshot was generated from the Python version.

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • My changes generate no new warnings

Folders and Files Added/Modified

  • Added:
    • public/usage-examples/utilities/split-1-example.cpp
    • public/usage-examples/utilities/split-1-example.py
    • public/usage-examples/utilities/split-1-example-oop.cs
    • public/usage-examples/utilities/split-1-example-top-level.cs
    • public/usage-examples/utilities/split-1-example.txt
    • public/usage-examples/utilities/split-1-example.png

Additional Notes

This usage example covers the split() function from the SplashKit utilities API. The screenshot was generated from the Python version of the code.

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for splashkit failed.

Name Link
🔨 Latest commit 2bc3b12
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/6a72efc561c1280009d55f6f

@AAMIRAU AAMIRAU 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.

Reviewed the changes. The split usage examples are clear, consistent across all four language versions, and demonstrate the function well with different delimiters. Looks good to me.

@ralphweng2023 ralphweng2023 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.

Re-approval of AAMIRAU's review at 2bc3b12. The four language versions match on the three delimiter cases, and check_api.py returns 0 findings on the Python file.

The C# top-level omits using SplashKitSDK; and uses only the static import plus System.Collections.Generic; for List. That matches the corpus pattern where the namespace using is dropped.

Approved.

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.

3 participants