Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stdlib): add new functions in std/text #373

Merged
merged 3 commits into from
Jul 31, 2024

Commits on Jul 30, 2024

  1. feat(stdlib): add new functions in std/text

    - `reverse`: reverses the given text.
    - `is_prefix`: checks if a string is a prefix of another string.
    - `is_suffix`: checks if a string is a suffix of another string.
    
    These addition of `is_prefix` & `is_suffix` complement the existing `contains` function.
    MuhamedMagdi committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    b97e8c1 View commit details
    Browse the repository at this point in the history
  2. refactor: change is_prefix & is_suffix function names

    is_prefix -> starts_with
    is_suffix -> ends_with
    MuhamedMagdi committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    ace421a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa15f13 View commit details
    Browse the repository at this point in the history