string class : PeelDQ() method
Description
Returns a string that removed the double quotes at the beginning and end of the caller.
Syntax
stringInstance.PeelDQ()
Arguments
None
Return value
Class | Description |
string | A string that removed the double quotes at the beginning and end. |
Sample code
1: | string org = "".DQ + "abcbcDDDDDDcbabb" + "".DQ; // org is "abcbcDDDDDDcbabb". |
2: | string result = org.PeelDQ(); // result is abcbcDDDDDDcbabb. |
Double quotes were removed from the string enclosed in double quotes.
Notes
If the caller is not enclosed in double quotes, it returns the same string as the caller.
If there are double quotes only at the beginning or end, it returns the same string as the caller.
Even if it is surrounded by multiple double quotes, only double quotes at the beginning and end will be removed.
Links for reference
None