Difference between revisions of "Extensions.StringUtil.ReplaceSubString"

From emotive
Jump to navigation Jump to search
(Created page with "Category:StringUtil == Classification == {{ClassificationActivity | ReplaceSubString | Replacing strings | Operations | OTX StringUtil extension | Str...")
 
Line 1: Line 1:
 
[[Category:StringUtil]]
 
[[Category:StringUtil]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | ReplaceSubString | Replacing strings | [[Operations]] | [[StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }}
+
{{ClassificationActivity | ReplaceSubString | Replacing strings | [[Term]] | [[StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[OutOfBoundsException]] | - }}
  
 
== Pseudo-Code Syntax ==
 
== Pseudo-Code Syntax ==

Revision as of 04:04, 8 August 2014

Classification

Name ReplaceSubString
Short Description Replacing strings
Class Term
Extension OTX StringUtil extension
Group StringUtil related terms
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

Pseudo-Code Syntax

String ReplaceSubString(String string, String replacement, Integer index);

Description

ReplaceSubString term replaced the strings with replacement string, starting at the specified position (index) within a strings and returns the result.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
String The replacement string

Properties

Name Data Type Class Default Cardinality Description
String String Term - [1] The original string
Replacement String Term - [1] The string that replaces a portion of the original string starting at the specified position
Index Iteger Term - [1] The zero-based position of the original string, from which starts the replacement

Examples

String result = ReplaceSubString("emotive", "E", 0);
//Returns result = "Emotive"

See also

MatchToRegularExpression
StringConcatenate
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode