We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

std.strlen()

Returns the length of the string. For example, std.strlen("Hello world!"); will return 12 (because the string includes whitespaces and punctuation).

Format

INTEGER
std.strlen(STRING s)

Examples

1
2
3
if (std.strlen(req.http.Cookie) > 1024) {
  unset req.http.Cookie;
}