strip_from
This commit is contained in:
parent
0bf484f76c
commit
73fe260aea
1 changed files with 7 additions and 6 deletions
|
@ -64,16 +64,17 @@ function remove_first(string, target, tmp) {
|
|||
return trim(tmp)
|
||||
}
|
||||
|
||||
# TODO parent function
|
||||
|
||||
function strip_function(string, tmp) {
|
||||
split(string, tmp, "(")
|
||||
function strip_from(string, sep, tmp) {
|
||||
split(string, tmp, sep)
|
||||
return trim(tmp[1])
|
||||
}
|
||||
|
||||
function strip_function(string, tmp) {
|
||||
return strip_from(string, "(")
|
||||
}
|
||||
|
||||
function strip_value(string, tmp) {
|
||||
split(string, tmp, "=")
|
||||
return trim(tmp[1])
|
||||
return strip_from(string, "=")
|
||||
}
|
||||
|
||||
function trim(string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue