jsexecutor class : TrimDQ(string) method

Description

Returns a new string with double quotes removed.

Syntax

instance.TrimDQ(string str)

Arguments

ClassNameDescription
stringstrOriginal string.

Return value

ClassDescription
stringString with double quotes removed.

Sample code

1:

jsexecutor jse = new jsexecutor();

2:

string example = "".DQ + "sample" + "".DQ; // "sample"

3:

example = jse.TrimDQ(example); // sample

Notes

If the arguments start and end with double quotes, the new string with double quotes removed is returned.

If the double quote is on only one side, it will not be deleted. It also does not remove other double quotes in the string.

If double quotes did not delete, a new string is returned that is a copy of the argument.

Links for reference

None.

Copyright © Cooker All rights reserved.