Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v5.0.2/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>