unicode-programming/count-characters/julia.md at master · patch/unicode-programming

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

File metadata and controls

21 lines (14 loc) · 428 Bytes

Count characters of a string in Julia

Code points

The core length function returns the number of code points when called on a string.

Grapheme clusters

The UnicodeExtras module provides the length function, which returns the number of grapheme clusters when called on a string.

using UnicodeExtras

count = length(str)