Skip to content

Commit 1790cff

Browse files
committed
☕ Generate functions
1 parent 62ffb8b commit 1790cff

File tree

2 files changed

+0
-245
lines changed

2 files changed

+0
-245
lines changed

denops_std/function/_generated.ts

Lines changed: 0 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -4632,104 +4632,6 @@ export function match(denops: Denops, ...args: unknown[]): Promise<unknown> {
46324632
return denops.call("match", ...args);
46334633
}
46344634

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-
47334635
/**
47344636
* Defines a pattern to be highlighted in the current window (a
47354637
* "match"). It will be highlighted with {group}. Returns an
@@ -4912,44 +4814,6 @@ export function matchend(denops: Denops, ...args: unknown[]): Promise<unknown> {
49124814
return denops.call("matchend", ...args);
49134815
}
49144816

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-
49534817
/**
49544818
* If {list} is a list of strings, then returns a |List| with all
49554819
* the strings in {list} that fuzzy match {str}. The strings in
@@ -8011,28 +7875,6 @@ export function stridx(denops: Denops, ...args: unknown[]): Promise<unknown> {
80117875
return denops.call("stridx", ...args);
80127876
}
80137877

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-
80367878
/**
80377879
* Return {expr} converted to a String. If {expr} is a Number,
80387880
* Float, String, Blob or a composition of them, then the result
@@ -8171,17 +8013,6 @@ export function strridx(denops: Denops, ...args: unknown[]): Promise<unknown> {
81718013
return denops.call("strridx", ...args);
81728014
}
81738015

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-
81858016
/**
81868017
* The result is a String, which is {string} with all unprintable
81878018
* characters translated into printable characters |'isprint'|.

denops_std/function/vim/_generated.ts

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -253,46 +253,6 @@ export function blob2list(
253253
return denops.call("blob2list", ...args);
254254
}
255255

256-
/** */
257-
export function buffer_exists(denops: Denops): Promise<unknown>;
258-
export function buffer_exists(
259-
denops: Denops,
260-
...args: unknown[]
261-
): Promise<unknown> {
262-
return denops.call("buffer_exists", ...args);
263-
}
264-
265-
/**
266-
* Obsolete name: buffer_name().
267-
*/
268-
export function buffer_name(denops: Denops): Promise<unknown>;
269-
export function buffer_name(
270-
denops: Denops,
271-
...args: unknown[]
272-
): Promise<unknown> {
273-
return denops.call("buffer_name", ...args);
274-
}
275-
276-
/**
277-
* Obsolete name for bufnr("$"): last_buffer_nr().
278-
*/
279-
export function buffer_number(denops: Denops): Promise<unknown>;
280-
export function buffer_number(
281-
denops: Denops,
282-
...args: unknown[]
283-
): Promise<unknown> {
284-
return denops.call("buffer_number", ...args);
285-
}
286-
287-
/** */
288-
export function last_buffer_nr(denops: Denops): Promise<unknown>;
289-
export function last_buffer_nr(
290-
denops: Denops,
291-
...args: unknown[]
292-
): Promise<unknown> {
293-
return denops.call("last_buffer_nr", ...args);
294-
}
295-
296256
/**
297257
* Output {string} as-is, including unprintable characters.
298258
* This can be used to output a terminal code. For example, to
@@ -350,17 +310,6 @@ export function extendnew(
350310
return denops.call("extendnew", ...args);
351311
}
352312

353-
/**
354-
* Obsolete name: file_readable().
355-
*/
356-
export function file_readable(denops: Denops): Promise<unknown>;
357-
export function file_readable(
358-
denops: Denops,
359-
...args: unknown[]
360-
): Promise<unknown> {
361-
return denops.call("file_readable", ...args);
362-
}
363-
364313
/**
365314
* Like |flatten()| but first make a copy of {list}.
366315
*/
@@ -468,18 +417,6 @@ export function gettext(denops: Denops, ...args: unknown[]): Promise<unknown> {
468417
return denops.call("gettext", ...args);
469418
}
470419

471-
/**
472-
* Can also be used as a |method|:
473-
* GetName()->hlexists()
474-
*/
475-
export function highlight_exists(denops: Denops): Promise<unknown>;
476-
export function highlight_exists(
477-
denops: Denops,
478-
...args: unknown[]
479-
): Promise<unknown> {
480-
return denops.call("highlight_exists", ...args);
481-
}
482-
483420
/**
484421
* Returns a List of all the highlight group attributes. If the
485422
* optional {name} is specified, then returns a List with only
@@ -583,19 +520,6 @@ export function hlset(denops: Denops, ...args: unknown[]): Promise<unknown> {
583520
return denops.call("hlset", ...args);
584521
}
585522

586-
/**
587-
* Obsolete name: highlightID().
588-
* Can also be used as a |method|:
589-
* GetName()->hlID()
590-
*/
591-
export function highlightID(denops: Denops): Promise<unknown>;
592-
export function highlightID(
593-
denops: Denops,
594-
...args: unknown[]
595-
): Promise<unknown> {
596-
return denops.call("highlightID", ...args);
597-
}
598-
599523
/**
600524
* Returns the index of an item in {object} where {expr} is
601525
* v:true. {object} must be a |List| or a |Blob|.

0 commit comments

Comments
 (0)