Description
Return an anchor label's selected character count and UTF-16 length.
Communication measurements need an explicit event origin, clock correction, count unit and exposure denominator. Timing and coverage records can be summarized without detecting actual speech, verifying message delivery or determining readability, accessibility or communication quality.
Return an anchor label's selected character count and UTF-16 length.
When to use this tool
Use Anchor Link Label Length when checking the stated communication timing, rate, representation or coverage convention.
How to use the tool and how it works
- Enter label, countCodePoints. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read length, utf16Length. Use the output convention below.
Return an anchor label's selected character count and UTF-16 length. length uses Unicode code points when countCodePoints, otherwise UTF-16 code units; utf16Length always uses code units.1
UTF-8 bytes, UTF-16 code units and Unicode code points are distinct; grapheme boundaries need separate treatment.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| label | Label | Required. Text; maximum UTF-16 length 8192. |
| countCodePoints | Count Code Points | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| length | Length | Required. Safe integer. |
| utf16Length | Utf16 Length | Required. Safe integer. |
{
"input": {
"label": "A🚀",
"countCodePoints": true
},
"output": {
"length": 2,
"utf16Length": 3
}
} Limitations and assumptions
- No grapheme, byte, rendered-width, accessible-name or actual link-target validation is performed.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use actual synchronized media/message records, appropriate text measurement and user evaluation for complete communication or accessibility assessment.
References
-
Calculation and input contract: communication/anchor-link-label-length — tool.io
-
Unicode 17.0: conformance and encoding forms — Unicode Consortium
Similar or alternative tools
- Caption Safe Area Line Height Term
Compare caption line height with a supplied safe-height fraction.
- Message Character Budget Gap
Return a message's length and budget remainder.