About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/str_uncomment_string.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 str_uncomment_string Context: slangrtl

Synopsis

Remove comments from a string

Syntax

String_Type str_uncomment_string(String_Type s, String_Type beg,
String_Type end)

Description

This function may be used to remove comments from a string s. The parameters, beg and end, are strings of equal length whose corresponding characters specify the begin and end comment characters, respectively. It returns the uncommented string.

Example

The expression

     str_uncomment_string ("Hello (testing) 'example' World", "'(", "')")

returns the string "Hello World".

This routine does not handle multicharacter comment delimiters and it assumes that comments are not nested.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.