-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also update strpos function help (followup 2a557db)
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "strpos", | ||
"type": "function", | ||
"description": "Return the first matching position of a substring within another string, or -1 if the substring is not found.", | ||
"description": "Return the first matching position of a substring within another string, or 0 if the substring is not found.", | ||
"arguments": [ {"arg":"haystack","description":"string that is to be searched"}, | ||
{"arg":"needle","description":"string to search for"}], | ||
"examples": [ { "expression":"strpos('HELLO WORLD','WORLD')", "returns":"6"}, | ||
{ "expression":"strpos('HELLO WORLD','GOODBYE')", "returns":"-1"} | ||
"examples": [ { "expression":"strpos('HELLO WORLD','WORLD')", "returns":"7"}, | ||
{ "expression":"strpos('HELLO WORLD','GOODBYE')", "returns":"0"} | ||
] | ||
} |