Skip to main content
Module

x/dpp_vim/deps.ts>fn.strcharlen

Dark powered plugin manager for Vim/neovim
Latest
function fn.strcharlen
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { strcharlen } = fn;

The result is a Number, which is the number of characters in String {string}. Composing characters are ignored. strchars() can count the number of characters, counting composing characters separately.

Returns 0 if {string} is empty or on error.

Also see strlen(), strdisplaywidth() and strwidth().

Can also be used as a method:

GetText()->strcharlen()

Parameters

denops: Denops
string: unknown

Returns

Promise<number>