Core Function CSetDel

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> CSetDel( <expression>, <charset>, <case> ) </pre> === Description === Delete all characters found in the charset from a string . === Parameters === ==== expression ====...")
 
(Return Value)
 
(2 intermediate revisions by one user not shown)
Line 25: Line 25:
 
=== Return Value ===
 
=== Return Value ===
  
Success: Returns 1.
+
Success: Returns true.
  
Failure: Returns 0.
+
Failure: Returns false.
  
 
=== Remarks ===
 
=== Remarks ===

Latest revision as of 16:13, 20 June 2015

CSetDel( <expression>, <charset>, <case> )

Contents

Description

Delete all characters found in the charset from a string .

Parameters

expression

The string to use.

charset

A string of chars to compare and delete from the string.

case

Optional; If this param exists the match will be case insensitive regardless of what you place in this param.

Default is case sensitive.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

my $str = "The one";
my $newStr = CSetDel($str, "hn");
println("Before: $str"); // Prints After: The one
println("After: $newStr"); // Prints After: Te oe
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox