StringLength
The number of characters in s.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
StringLength✓StringLength(s)the number of Unicode code points in sTyped signatures
| Type | Package | Applies |
|---|---|---|
(string) -> integer | combinatorics | always |
Details
- Counts code points, not UTF-16 units:
a😀bhas 3, not 4 (the emoji is one code point represented as two UTF-16 units) — same convention as ToCharacterCode and compute-engine's ownCharacters.
Examples
About
| Examples | 3 |
|---|---|
| Checked against | Wolfram Language 3 agree |
| Crosswalk | Wolfram Language |
See also: StringTake, ToCharacterCode