@@ -4632,104 +4632,6 @@ export function match(denops: Denops, ...args: unknown[]): Promise<unknown> {
4632
4632
return denops . call ( "match" , ...args ) ;
4633
4633
}
4634
4634
4635
- /**
4636
- * :let sepidx = match(line, '[.,;: \t]')
4637
- * Vim doesn't have a strcasestr() function. But you can add
4638
- * "\c" to the pattern to ignore case:
4639
- * :let idx = match(haystack, '\cneedle')
4640
- * If {start} is given, the search starts from byte index
4641
- * {start} in a String or item {start} in a |List|.
4642
- * The result, however, is still the index counted from the
4643
- * first character/item. Example:
4644
- * :echo match("testing", "ing", 2)
4645
- * result is again "4".
4646
- * :echo match("testing", "ing", 4)
4647
- * result is again "4".
4648
- * :echo match("testing", "t", 2)
4649
- * result is "3".
4650
- * For a String, if {start} > 0 then it is like the string starts
4651
- * {start} bytes later, thus "^" will match at {start}. Except
4652
- * when {count} is given, then it's like matches before the
4653
- * {start} byte are ignored (this is a bit complicated to keep it
4654
- * backwards compatible).
4655
- * For a String, if {start} < 0, it will be set to 0. For a list
4656
- * the index is counted from the end.
4657
- * If {start} is out of range ({start} > strlen({expr}) for a
4658
- * String or {start} > len({expr}) for a |List|) -1 is returned.
4659
- * When {count} is given use the {count}'th match. When a match
4660
- * is found in a String the search for the next one starts one
4661
- * character further. Thus this example results in 1:
4662
- * echo match("testing", "..", 0, 2)
4663
- * In a |List| the search continues in the next item.
4664
- * Note that when {count} is added the way {start} works changes,
4665
- * see above.
4666
- * See |pattern| for the patterns that are accepted.
4667
- * The 'ignorecase' option is used to set the ignore-caseness of
4668
- * the pattern. 'smartcase' is NOT used. The matching is always
4669
- * done like 'magic' is set and 'cpoptions' is empty.
4670
- * Note that a match at the start is preferred, thus when the
4671
- * pattern is using "*" (any number of matches) it tends to find
4672
- * zero matches at the start instead of a number of matches
4673
- * further down in the text.
4674
- * Can also be used as a |method|:
4675
- * GetText()->match('word')
4676
- * GetList()->match('word')
4677
- */
4678
- export function strpbrk ( denops : Denops ) : Promise < unknown > ;
4679
- export function strpbrk ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
4680
- return denops . call ( "strpbrk" , ...args ) ;
4681
- }
4682
-
4683
- /**
4684
- * Vim doesn't have a strcasestr() function. But you can add
4685
- * "\c" to the pattern to ignore case:
4686
- * :let idx = match(haystack, '\cneedle')
4687
- * If {start} is given, the search starts from byte index
4688
- * {start} in a String or item {start} in a |List|.
4689
- * The result, however, is still the index counted from the
4690
- * first character/item. Example:
4691
- * :echo match("testing", "ing", 2)
4692
- * result is again "4".
4693
- * :echo match("testing", "ing", 4)
4694
- * result is again "4".
4695
- * :echo match("testing", "t", 2)
4696
- * result is "3".
4697
- * For a String, if {start} > 0 then it is like the string starts
4698
- * {start} bytes later, thus "^" will match at {start}. Except
4699
- * when {count} is given, then it's like matches before the
4700
- * {start} byte are ignored (this is a bit complicated to keep it
4701
- * backwards compatible).
4702
- * For a String, if {start} < 0, it will be set to 0. For a list
4703
- * the index is counted from the end.
4704
- * If {start} is out of range ({start} > strlen({expr}) for a
4705
- * String or {start} > len({expr}) for a |List|) -1 is returned.
4706
- * When {count} is given use the {count}'th match. When a match
4707
- * is found in a String the search for the next one starts one
4708
- * character further. Thus this example results in 1:
4709
- * echo match("testing", "..", 0, 2)
4710
- * In a |List| the search continues in the next item.
4711
- * Note that when {count} is added the way {start} works changes,
4712
- * see above.
4713
- * See |pattern| for the patterns that are accepted.
4714
- * The 'ignorecase' option is used to set the ignore-caseness of
4715
- * the pattern. 'smartcase' is NOT used. The matching is always
4716
- * done like 'magic' is set and 'cpoptions' is empty.
4717
- * Note that a match at the start is preferred, thus when the
4718
- * pattern is using "*" (any number of matches) it tends to find
4719
- * zero matches at the start instead of a number of matches
4720
- * further down in the text.
4721
- * Can also be used as a |method|:
4722
- * GetText()->match('word')
4723
- * GetList()->match('word')
4724
- */
4725
- export function strcasestr ( denops : Denops ) : Promise < unknown > ;
4726
- export function strcasestr (
4727
- denops : Denops ,
4728
- ...args : unknown [ ]
4729
- ) : Promise < unknown > {
4730
- return denops . call ( "strcasestr" , ...args ) ;
4731
- }
4732
-
4733
4635
/**
4734
4636
* Defines a pattern to be highlighted in the current window (a
4735
4637
* "match"). It will be highlighted with {group}. Returns an
@@ -4912,44 +4814,6 @@ export function matchend(denops: Denops, ...args: unknown[]): Promise<unknown> {
4912
4814
return denops . call ( "matchend" , ...args ) ;
4913
4815
}
4914
4816
4915
- /**
4916
- * do it with matchend():
4917
- * :let span = matchend(line, '[a-zA-Z]')
4918
- * :let span = matchend(line, '[^a-zA-Z]')
4919
- * Except that -1 is returned when there are no matches.
4920
- * The {start}, if given, has the same meaning as for |match()|.
4921
- * :echo matchend("testing", "ing", 2)
4922
- * results in "7".
4923
- * :echo matchend("testing", "ing", 5)
4924
- * result is "-1".
4925
- * When {expr} is a |List| the result is equal to |match()|.
4926
- * Can also be used as a |method|:
4927
- * GetText()->matchend('word')
4928
- */
4929
- export function strspn ( denops : Denops ) : Promise < unknown > ;
4930
- export function strspn ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
4931
- return denops . call ( "strspn" , ...args ) ;
4932
- }
4933
-
4934
- /**
4935
- * do it with matchend():
4936
- * :let span = matchend(line, '[a-zA-Z]')
4937
- * :let span = matchend(line, '[^a-zA-Z]')
4938
- * Except that -1 is returned when there are no matches.
4939
- * The {start}, if given, has the same meaning as for |match()|.
4940
- * :echo matchend("testing", "ing", 2)
4941
- * results in "7".
4942
- * :echo matchend("testing", "ing", 5)
4943
- * result is "-1".
4944
- * When {expr} is a |List| the result is equal to |match()|.
4945
- * Can also be used as a |method|:
4946
- * GetText()->matchend('word')
4947
- */
4948
- export function strcspn ( denops : Denops ) : Promise < unknown > ;
4949
- export function strcspn ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
4950
- return denops . call ( "strcspn" , ...args ) ;
4951
- }
4952
-
4953
4817
/**
4954
4818
* If {list} is a list of strings, then returns a |List| with all
4955
4819
* the strings in {list} that fuzzy match {str}. The strings in
@@ -8011,28 +7875,6 @@ export function stridx(denops: Denops, ...args: unknown[]): Promise<unknown> {
8011
7875
return denops . call ( "stridx" , ...args ) ;
8012
7876
}
8013
7877
8014
- /**
8015
- * stridx() works similar to the C function strstr(). When used
8016
- * with a single character it works similar to strchr().
8017
- * Can also be used as a |method|:
8018
- * GetHaystack()->stridx(needle)
8019
- */
8020
- export function strstr ( denops : Denops ) : Promise < unknown > ;
8021
- export function strstr ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
8022
- return denops . call ( "strstr" , ...args ) ;
8023
- }
8024
-
8025
- /**
8026
- * stridx() works similar to the C function strstr(). When used
8027
- * with a single character it works similar to strchr().
8028
- * Can also be used as a |method|:
8029
- * GetHaystack()->stridx(needle)
8030
- */
8031
- export function strchr ( denops : Denops ) : Promise < unknown > ;
8032
- export function strchr ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
8033
- return denops . call ( "strchr" , ...args ) ;
8034
- }
8035
-
8036
7878
/**
8037
7879
* Return {expr} converted to a String. If {expr} is a Number,
8038
7880
* Float, String, Blob or a composition of them, then the result
@@ -8171,17 +8013,6 @@ export function strridx(denops: Denops, ...args: unknown[]): Promise<unknown> {
8171
8013
return denops . call ( "strridx" , ...args ) ;
8172
8014
}
8173
8015
8174
- /**
8175
- * When used with a single character it works similar to the C
8176
- * function strrchr().
8177
- * Can also be used as a |method|:
8178
- * GetHaystack()->strridx(needle)
8179
- */
8180
- export function strrchr ( denops : Denops ) : Promise < unknown > ;
8181
- export function strrchr ( denops : Denops , ...args : unknown [ ] ) : Promise < unknown > {
8182
- return denops . call ( "strrchr" , ...args ) ;
8183
- }
8184
-
8185
8016
/**
8186
8017
* The result is a String, which is {string} with all unprintable
8187
8018
* characters translated into printable characters |'isprint'|.
0 commit comments