Rapid Strings Component | Outsystems

Greetings Folks,

Have published another component 'Rapid Strings' on Forge.This Component provides a set of actions which can be use to work with String Manipulation that are not provided by Outsystem.

https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=5085&ProjectName=Rapid+Strings

Highlights :

  • GetLeft
  • GetRight
  • StartWith
  • EndsWith
  • Reverse
  • Repeat

Description:

  • GetLeft : Returns a sub-string of 'input' starting from left to the number of Integer 'CharPos' position.

    Ex:

    Input   : ABCDEFGH
    CharPos : 03
    Output  : ABC
    ------------------------
    Input   : ABCDEFGH
    CharPos : 5
    Output  : ABCDE


  • GetRight : Returns a sub-string of 'input' starting from right i.e end, to the number of Integer 'CharPos' position.

    Ex:
    Input   : ABCDEFGH
    CharPos : 03
    Output  : FGH
    ------------------------
    Input   : ABCDEFGH
    CharPos : 99
    Output  : ABCDEFGH

    Note : If CharPos is greater than Length of Input, It will return complete string.


  • StartsWith : Determines whether a string begins with the characters of a specified string.
    returns true if the string begins with the characters, and false if not.

    Note: Method is Case-Sensitive

    Ex:
    Input   : "Hello world, welcome to the universe."
    Start : 6
    InputSearchValue : "world"
    Output : True
    ------------------------
    Input   : "Hello world, welcome to the universe."
    Start :  
    InputSearchValue : "world"
    Output : False
    ------------------------
    Input   : "Hello world, welcome to the universe."
    Start :  
    InputSearchValue : "Hell"
    Output : True
    ------------------------
    Input   : "Hello world, welcome to the universe."
    Start :  7
    InputSearchValue : "orl"
    Output : True


  • EndsWith : Determines whether a string ends with the characters of a specified InputSearchValue .
    returns true if the string ends with the characters, and false if not.

    Note: Specify the Length of the string to search. If omitted, the default value is the length of the Input-string

    Ex:
    Input   : "Hello world, welcome to the universe."
    Length :
    InputSearchValue : "rse."
    Output : True
    ------------------------
    Input   : "Hello world, welcome to the universe."
    Length : 11
    InputSearchValue : "world"
    Output : True
    ------------------------
    Input   : "Hello world, welcome to the universe."
    Length :
    InputSearchValue : "world"
    Output : False
    ------------------------
    Input   : "Hello world, welcome to the universe."
    Length :
    InputSearchValue : ", welcome to the universe."
    Output : True


  • Repeat :  returns a new string with a specified number of copies of the string it was called on.
  • Reverse : Reverses a string.


Suggestions are most Welcome !!!

Hope It will help other developers here...

Thanks,

Assif


Hi Assif,

Thanks for the good work. But I was wondering if wouldn't be better include this functionality in one of them instead of creating a new component? Because there are a couple of string manipulation components in the forge.

Regards,

Marcelo