Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns the length, in characters, of the input string.
Note
This function counts Unicode code points.
strlen(
source)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
source | string |
✔️ | The string for which to return the length. |
Returns the length, in characters, of the input string.
print length = strlen("hello")
Output
length |
---|
5 |
print length = strlen("⒦⒰⒮⒯⒪")
Output
length |
---|
5 |
print strlen('Çedilla') // the first character is a grapheme cluster
// that requires 2 code points to represent
Output
length |
---|
8 |