Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.charclass

Dark deno-powered completion framework for neovim/Vim8
Very Popular
Go to Latest
function fn.charclass
import { fn } from "https://deno.land/x/ddc_vim@v3.9.0/deps.ts";
const { charclass } = fn;

Return the character class of the first character in {string}. The character class is one of: 0 blank 1 punctuation 2 word character 3 emoji other specific Unicode class The class is used in patterns and word motions. Returns 0 if {string} is not a String.

Parameters

denops: Denops
string: unknown

Returns

Promise<number>