Difference between revisions of "SHIP:Sail:search"

From Serious Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{SailFuncTableStart|}}<onlyinclude>
 
{{SailFuncTableStart|}}<onlyinclude>
|{{SailFunc|search}}||{{DataType|Boolean}}||style="text-align:center;"|v5.1.0||Returns {{Reserved|true}} or {{Reserved|false}} depending if the target string is found within the source string or not.</onlyinclude>
+
|{{SailFunc|search}}||{{DataType|Boolean}}||style="text-align:center;"|v5.1.0||style="color:red"|'''Implementation not complete'''<!---Returns {{Reserved|true}} or {{Reserved|false}} depending if the target string is found within the source string or not--->.</onlyinclude>
 
|}
 
|}
 
== See Also: ==
 
== See Also: ==

Latest revision as of 12:08, 10 November 2016

Function Returns Introduced Description
search Boolean v5.1.0 Implementation not complete.

See Also:

Prototype

Boolean search(String src,String tgt);

Parameters/Return Value

Parameter Data Type Description
src String String to search in
tgt String String to find in original
Return Boolean depending on if tgt is found in src or not.

Detailed Description

The search function returns true if target string is found in source string and false if target is not found in source string..

Examples

Example Result Notes
search("hello my name is","ll"); true
search("hello my name is","myname"); false