JVCL Help:StripQuotes

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Strips quotes from a string if it has quotes around it. Will de-escape embedded quotes if they are properly escaped.

run\JvCsvParse.pas


Pascal

 run\JvCsvParse.pas
 functionStripQuotes(constS1: AnsiString): AnsiString;


Parameters

Parameters Description
const S1: AnsiString Buffer to strip quotes from.

run\JvCsvParse.pas


Description

Modifies a PChar buffer containing a string which may or may not have leading and trailing quotes. Result after call is that the buffer contains only the data that was previously inside the quotes, all leading and trailing whitespace, and the quote characters themselves, are gone. Escaped quote characters (") within the string have been replaced with their literal equivalents (").

run\JvCsvParse.pas


About

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