Search notes:

vim script: strchars

strchars returns the number of characters in a string.
Use strlen to get the number of bytes.
"
"  ../run_ strlen
"

redir > strchars.out

echo strchars("äöü")
" 3

q
Github repository about-vim, path: /vimscript/functions/strchars.vim

See also

strchars vs strwidth vs strlen vs strdisplaywidth
Vim: built in functions
VIM script

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745530413, '18.117.92.75', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/functions/strchars(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78