issubstring

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Tests whether one string is a substring of another.

Arguments and Return Values

Arguments: Two strings

Return Value: 0 or 1

Usage

Syntax: issubstring(target = STRING, source = STRING)

issubstring() will return 1 if target contains source and 0 otherwise.

Does not work for text buffers, only strings.

Examples

dv> my_text
"The sun was shining on the sea, shining with all it's might"

dv> issubstring(my_text,"might")
1

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools