logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

string-length - (strings)

Description

string-length will place the number of bytes in <string> into number <length>. Note that <string> does not need to be null-terminated, meaning it can be a binary or text string. <length> is the number of bytes comprising any such string.

Examples

Variable "len" will be 6: set-string str = "string" string-length str to len Variable "len2" will be 18 - the string has a null character in the middle of it: set-string str2 = "string" "\x00 after null" string-length str2 to len2

Name

string-length - (strings)

Purpose

Get string length.

See Also

Strings concatenate-stringscopy-stringcount-substringdelete-stringlower-stringnew-stringread-splitreplace-stringset-stringsplit-stringstring-lengthtrim-stringupper-stringwrite-string See all documentation $DATE $VERSION GOLF(2gg)

Syntax

string-length <string> to <length>

See Also