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/is_substr.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 is_substr Context: slangrtl

Synopsis

Test for a specified substring within a string.

Syntax

Integer_Type is_substr (String_Type a, String_Type b)

Description

This function may be used to determine if a contains the string b. If it does not, the function returns 0; otherwise it returns the position of the first occurance of b in a.

It is important to remember that the first character of a string corresponds to a position value of 1.

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.