String Utils

Stable Version 1.0.3 (O11)
Also available for 10
Published on 1 Feb by 
Created on 18 Jan
Details
A library of string utilities extending the platform string manipulation capabilities
Read More

The following are the string functions provided by this extension 


  • string Reverse(string input)

  Reverse the given input.  

  • bool EndsWith(string input , string search,  bool ignoreCase)

  Determines whether the end of input string instance matches the search string. ignoreCase determines to ignore case or not.

  •  bool StartsWith(string input , string search,  bool ignoreCase)

  Determines whether the start of input string instance matches the search string. ignoreCase determines to ignore case or not.

  •  string Insert(string input ,int startIndex, string search,  bool insert)

  Returns a new string in which the insert string is inserted at a specified index position in the input.

  • string Left(string input ,int length)

Returns a string containing a specified number(length) of characters from the left side of the input.

  • string Right(string input ,int length)

Returns a string containing a specified number(length) of characters from the right side of the input.

  •  string Remove(string input, int startIndex)

  Returns a new string in which all the characters in the input beginning at a specified position(startIndex) and continuing through the last position, have been deleted.

  • string RemoveDuplicateChars(string input)
  •   Returns a new string with all the duplicate characters removed. 

  •  string RemoveWithCount(string input, int startIndex, int count)

Returns a new string in which a specified number of characters (count)  in the input beginning at a specified position (startIndex) have been deleted.

  • string Replace(string input, string search, string replace) 

Returns a new string in which all occurrences of a specified string (search) in the input are replaced with another specified (replace) string.

  • string UpperCaseFirst(string input) 

Returns a new string upper casing the first character of the input.

What’s new (1.0.3)

Added a new method ToTitleCase

string ToTitleCase(string input)

Converts the input string to title case (except for words that are entirely in uppercase, which are considered to be acronyms).

https://docs.microsoft.com/en-us/dotnet/api/system.globalization.textinfo.totitlecase?view=netframework-4.7.2

Reviews (0)
Category
Libraries, Components
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Amal Raj who created this component.
Dependencies
String Utils has no dependencies.
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads