Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.charclass

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.charclass
import { fn } from "https://deno.land/x/ddc_vim@v4.1.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>