JCL Help:WideExtractQuotedStr

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Extracts a string enclosed in quote characters.


Pascal

 function WideExtractQuotedStr(var Src: PWideChar; Quote: WideChar): WideString;


Parameters

Parameters Description
var Src: PWideChar The source string from which to remove quotes.
Quote: WideChar Denotes the character used as a quote.


Return Value

The string without the quotes.


Description

WideExtractQuotedStr removes the Quote characters from the beginning and end of a quoted string, and reduces pairs of Quote characters within the quoted string to a single character. If the first character in Src is not the Quote character, the function returns an empty string. The function copies characters from the Src to the result string until the second solitary Quote character or the first null character in Src. The Src parameter is updated to point to the first character following the quoted string. If the Src string does not contain a matching end Quote character, the Src parameter is updated to point to the terminating null character in Src.


About

Unit

JclWideStrings


Donator

Mike Lischke


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page