Skip to content

String Manipulation Functions #21

Closed Answered by springcomp
springcomp asked this question in JEP
Discussion options

You must be logged in to vote

String Functions

JEP 14
Author Maxime Labelle, Chris Armstrong (GorillaStack)
Created 13-October-2022
SemVer MINOR
Status Draft
[Discussion #21] #21

Abstract

This JEP introduces a core set of useful string manipulation functions. Those functions are modeled from functions found in popular programming languages such as JavaScript and Python.

Specification

find_first

int find_first(string $subject, string $sub[, int $start[, int $end]])

Given the $subject string, find_first() returns the index of the first occurence where the $sub substring appears in $subject or null.

The $start and $end parameters are optional and allow to select where find_first() must perform its …

Replies: 12 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@springcomp
Comment options

@springcomp
Comment options

Comment options

springcomp
Aug 2, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

springcomp
Aug 2, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

springcomp
Aug 2, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

springcomp
Aug 2, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

springcomp
Aug 2, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

springcomp
Aug 2, 2022
Maintainer Author

You must be logged in to vote
3 replies
@springcomp
Comment options

@springcomp
Comment options

@springcomp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by springcomp
Comment options

You must be logged in to vote
1 reply
@springcomp
Comment options

Comment options

You must be logged in to vote
1 reply
@springcomp
Comment options

Comment options

You must be logged in to vote
1 reply
@springcomp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
JEP
Labels
function Function proposal jep-candidate JEP (Draft) available - please vote!
5 participants