적용 대상: ✅Microsoft Fabric✅Azure Data Explorer✅Azure Monitor✅Microsoft Sentinel
입력 문자열의 길이를 문자로 반환합니다.
참고 항목
이 함수는 유니코드 코드 포인트를 계산합니다.
구문
strlen(source)
구문 규칙에 대해 자세히 알아봅니다.
매개 변수
| 이름 | Type | 필수 | 설명 |
|---|---|---|---|
| source | string |
✔️ | 길이를 반환할 문자열입니다. |
반품
입력 문자열의 길이를 문자로 반환합니다.
예제
문자 문자열
print length = strlen("hello")
출력
| length |
|---|
| 5 |
문자 및 기호 문자열
print length = strlen("⒦⒰⒮⒯⒪")
출력
| length |
|---|
| 5 |
grapheme이 있는 문자열
print strlen('Çedilla') // the first character is a grapheme cluster
// that requires 2 code points to represent
출력
| length |
|---|
| 8 |