{"id":"runtime--Text.Length","name":"Text.Length","owner":"yeho","package":"runtime.Text","kind":"builtin","signature":"Text.Length(text argument) -> int","description":"Return the length reported by Yeho's text runtime. Do not assume this is a count of user-perceived characters.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"argument","type":"text","description":"Supply argument as text.","rule":"Text"}],"returns":"int","members":[],"tags":["builtin","cpu","text","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1707,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Text.Length","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"text argument = \"argument\"\nint result = Text.Length(argument)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__text_length\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"98f0e32e7be36a7bcaa2c96e42fafbe1c88f51390c11e989260055a1ecf2416e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Text.Length","json":"https://demonhunterlabs.com/reference/items/runtime--Text.Length.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Text.Length.md"}
