textlength

Group: text

Return length of a given text value (in characters).

Syntax

    textlength result-register string-register
    

Examples

.function: main/0
    .name: %iota hello_world

    text %hello_world local "Hello World!"
    print (textlength %iota local %hello_world local)

    -- "Witaj Świecie!" means "Hello World!" in Polish
    text %hello_world local "Witaj Świecie!"
    print (textlength %iota local %hello_world local)

    izero %0 local
    return
.end