Skip to content

Create strip methods #2

Description

@iliverez

Create a set of strip methods that return a copy of the string with leading, trailing or both whitespace removed.

Additionally, the methods must take an optional const char * array argument. If not empty, then the graphemes in this array will be removed.

The methods to implement are:

  • strip : remove both leading and trailing whitespace
  • lstrip: remove leading whitespace
  • rstrip: remove trailing whitespace

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions