Skip to main content
Module

x/denops_std/function/mod.ts>charclass

📚 Standard module for denops.vim
Go to Latest
function charclass
import { charclass } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

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>